1
0
mirror of https://github.com/BBaoVanC/bobatheme.git synced 2025-06-22 05:07:31 -05:00

Use jam icons instead of feather

https://jam-icons.com
This commit is contained in:
2021-10-26 18:50:48 -05:00
parent 9e5a8e6785
commit fc5f408831
9 changed files with 14 additions and 14 deletions

@ -1,4 +1,4 @@
{{ $icon_resource := resources.Get (printf "feather/icons/%s.svg" .) }}
{{ $icon_resource := resources.Get (printf "jam/icons/%s.svg" .) }}
{{ $icon := $icon_resource.Content }}
{{ $icon = replaceRE `<svg` `<svg class="icon"` $icon }}
{{ $icon = replaceRE `</svg>` (printf `<title>%s icon</title></svg>` .) $icon }}

@ -11,7 +11,7 @@
{{ if not .Site.Params.repoURL }}
{{ if ne .Lastmod .Date }}
<span class="post-meta-item">
{{ partial "icon.html" "edit-2" }}
{{ partial "icon.html" "pencil" }}
<time datetime="{{ .Lastmod.Format "2006-01-02" }}" pubdate>
{{ i18n "long_date" (dict "Date" .Lastmod "Data" .Site.Data) }}
</time>
@ -22,14 +22,14 @@
{{ with .Params.author }}
<span class="post-meta-item">
{{ partial "icon.html" "user" }}
{{ partial "icon.html" "user-circle" }}
{{ . }}
</span>
{{ end }}
{{ if .IsTranslated }}
<span class="post-meta-item">
{{ partial "icon.html" "globe" }}
{{ partial "icon.html" "world" }}
{{ range .Translations }}
<a href="{{ .Permalink }}">{{ .Language }}</a>
{{ end }}
@ -46,7 +46,7 @@
{{ if .Site.Params.repoURL }}
{{ with .GitInfo }}
<span class="post-meta-item">
{{ partial "icon.html" "git-commit" }}
{{ partial "icon.html" "branch" }}
<a href="{{ (printf "%s/commit/%s" $.Site.Params.repoURL .Hash) | absURL }}">
<code>{{ .AbbreviatedHash }}</code>
</a>