-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
张文兵
committed
Mar 8, 2024
1 parent
5a35df9
commit 0f3cc78
Showing
5 changed files
with
48 additions
and
23 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
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 |
---|---|---|
@@ -1,23 +1,25 @@ | ||
{{ with .Date }} | ||
<h5>{{ partial "docs/date" (dict "Date" . "Format" $.Site.Params.BookDateFormat) }}</h5> | ||
{{ end }} | ||
|
||
{{ range $taxonomy, $_ := .Site.Taxonomies }} | ||
{{ with $terms := $.GetTerms $taxonomy }} | ||
<div> | ||
{{ range $n, $term := $terms }}{{ if $n }}, {{ end }} | ||
<a href="{{ $term.RelPermalink }}">{{ $term.Title }}</a> | ||
{{- end }} | ||
</div> | ||
<div class="book-post-meta"> | ||
{{ with .Date }} | ||
<span class="book-post-meta-date">{{ partial "docs/date" (dict "Date" . "Format" $.Site.Params.BookDateFormat) }}</span> | ||
{{ end }} | ||
{{ range $taxonomy, $key := .Site.Taxonomies }} | ||
{{ with $terms := $.GetTerms $taxonomy }} | ||
<span class="book-post-meta-separator-{{ $taxonomy }}"> | </span> | ||
<span class="book-post-meta-{{ $taxonomy }}"> | ||
{{ range $n, $term := $terms }}{{ if $n }}, {{ end }} | ||
<a href="{{ $term.RelPermalink }}">{{ $term.Title }}</a> | ||
{{- end }} | ||
</span> | ||
{{ end }} | ||
{{ end }} | ||
{{ end }} | ||
|
||
{{ if .Params.image }} | ||
<p> | ||
{{ with .Resources.GetMatch .Params.image }} | ||
<img src={{ .RelPermalink }} /> | ||
{{ else }} | ||
<img src={{ .Params.image | relURL }} /> | ||
{{ if .Params.image }} | ||
<p> | ||
{{ with .Resources.GetMatch .Params.image }} | ||
<img src={{ .RelPermalink }} /> | ||
{{ else }} | ||
<img src={{ .Params.image | relURL }} /> | ||
{{ end }} | ||
</p> | ||
{{ end }} | ||
</p> | ||
{{ end }} | ||
</div> |
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