mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-06-12 01:47:28 -05:00
Add icons
This commit is contained in:
@ -17,19 +17,26 @@
|
||||
{{ if or .Date (.GetTerms "tags") }}
|
||||
<div class="post-metadata">
|
||||
{{ if .Date }}
|
||||
|
||||
{{ partial "icon.html" "calendar" }}
|
||||
<time datetime="{{ .Date.Format "January 2, 2006" }}" pubdate>
|
||||
{{ .Date.Format "January 2, 2006" }}
|
||||
</time>
|
||||
|
||||
{{ if ne .Lastmod .Date }}
|
||||
<time datetime="{{ .Lastmod.Format "2006-01-02" }}" pubdate>
|
||||
(Modified {{ .Lastmod.Format "January 2, 2006" }})
|
||||
</time>
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
<span class="tags">
|
||||
{{ range (.GetTerms "tags") }}
|
||||
<a href="{{ .Permalink }}">#{{ .LinkTitle }}</a>
|
||||
<span class="tag">
|
||||
{{ partial "icon.html" "tag" }}
|
||||
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
|
||||
</span>
|
||||
{{ end }}
|
||||
</span>
|
||||
</div>
|
||||
|
@ -3,24 +3,33 @@
|
||||
<h1>{{ .Title | markdownify }}</h1>
|
||||
</div>
|
||||
|
||||
{{ if or .Date (.GetTerms "tags") }}
|
||||
<div class="post-metadata">
|
||||
{{ if .Date }}
|
||||
|
||||
{{ partial "icon.html" "calendar" }}
|
||||
<time datetime="{{ .Date.Format "2006-01-02" }}" pubdate>
|
||||
{{ .Date.Format "January 2, 2006" }}
|
||||
</time>
|
||||
|
||||
{{ if ne .Lastmod .Date }}
|
||||
<time datetime="{{ .Lastmod.Format "2006-01-02" }}" pubdate>
|
||||
(Modified {{ .Lastmod.Format "January 2, 2006" }})
|
||||
</time>
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
<span class="tags">
|
||||
{{ range (.GetTerms "tags") }}
|
||||
<a href="{{ .Permalink }}">#{{ .LinkTitle }}</a>
|
||||
<span class="tag">
|
||||
{{ partial "icon.html" "tag" }}
|
||||
<a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
|
||||
</span>
|
||||
{{ end }}
|
||||
</span>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Params.Toc }}
|
||||
<div id="table-of-contents">
|
||||
|
3
layouts/partials/icon.html
Normal file
3
layouts/partials/icon.html
Normal file
@ -0,0 +1,3 @@
|
||||
<svg class="icon" fill="none" stroke="lightgray" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<use href="{{ printf "/feather-sprite.svg#%s" . | relURL }}" />
|
||||
</svg>
|
After Width: | Height: | Size: 189 B |
Reference in New Issue
Block a user