-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
bigfa
committed
Nov 13, 2023
1 parent
fb93037
commit 392f1ba
Showing
8 changed files
with
94 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,10 @@ echo "theme = 'notability'" >> hugo.toml | |
|
||
## Release Note | ||
|
||
### 0.2.0 | ||
|
||
- 增加状态文章格式 | ||
|
||
### 0.1.8 | ||
|
||
- 文章内链短代码 | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<article class="post--item post--item__status" itemtype="http://schema.org/Article" itemscope="itemscope"> | ||
<div class="content"> | ||
<header> | ||
{{ $logo := resources.Get "images/avatar.jpeg" }} | ||
<img src="{{ $logo.RelPermalink }}" class="avatar" width="48" height="48" /> | ||
<a datetime='{{.Date.Format "2006-01-02 15:04:01" }}' class="humane--time" href="{{ .Permalink }}" | ||
itemprop="datePublished">{{ | ||
.Date | | ||
time.Format ":date_long" | ||
}}</a> | ||
</header> | ||
<div class="description" itemprop="about"> | ||
<p>{{ .Summary | truncate 60 }}</p> | ||
</div> | ||
</div> | ||
</article> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<article class="articleItem articleItem__withImage"> | ||
{{ if .Content }} | ||
{{ $urls := findRE "<img src=\"[^\"|\\\"]*\"" .Content }} {{ if $urls }} {{ $url :=index ($urls) 0 }} {{ $url | ||
:=(strings.TrimPrefix "<img src=\"" $url) }} | ||
{{ $url := strings.TrimRight " \"" $url }} <img src="{{ $url }}" class="cover" /> {{ end }} {{ end }} | ||
<div class="content"> | ||
<h2 class="title"> | ||
<a href="{{ .Permalink }}"> | ||
{{ .Title }} | ||
</a> | ||
</h2> | ||
<div class="summary">{{ .Summary | truncate 60 }}</div> | ||
<div class="time"><time datetime='{{.Date.Format "2006-01-02 15:04:01" }}' class="humane--time">{{ .Date | ||
| time.Format | ||
":date_long" | ||
}}</time> | ||
{{ if .Params.categories }} | ||
<span class="dot"></span> | ||
{{ range (.GetTerms "categories") }} | ||
<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a> | ||
{{ end }} | ||
{{ end }} | ||
</div> | ||
</div> | ||
</article> |