Use jam icons instead of feather

https://jam-icons.com
This commit is contained in:
BBaoVanC 2021-10-26 18:50:48 -05:00
parent 9e5a8e6785
commit fc5f408831
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
9 changed files with 14 additions and 14 deletions

6
.gitmodules vendored
View File

@ -1,4 +1,4 @@
[submodule "assets/feather"]
path = assets/feather
url = https://github.com/feathericons/feather.git
[submodule "assets/jam"]
path = assets/jam
url = https://github.com/michaelampr/jam.git
branch = master

@ -1 +0,0 @@
Subproject commit 734f3f51144e383cfdc6d0916831be8d1ad2a749

1
assets/jam Submodule

@ -0,0 +1 @@
Subproject commit c8501b14e0480c8becac58a626e72502bca90084

View File

@ -5,7 +5,7 @@
{{ .Title | markdownify }}
<span class="rss-link">
{{ with .OutputFormats.Get "rss" }}
<a href="{{ .Permalink }}">{{ partial "icon.html" "rss" }}</a>
<a href="{{ .Permalink }}">{{ partial "icon.html" "rss-feed" }}</a>
{{ end }}
</span>
</h1>

View File

@ -2,7 +2,7 @@
<div class="post-title">
<h1>
{{ .Title | markdownify }}
{{ if .Draft }}{{ partial "icon.html" "edit" }}{{ end }}
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
</h1>
</div>

View File

@ -6,7 +6,7 @@
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
{{ if .Draft }}{{ partial "icon.html" "edit" }}{{ end }}
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
</h2>
{{ partial "post-metadata.html" . }}

View File

@ -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 }}

View File

@ -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>

View File

@ -6,7 +6,7 @@
{{ if eq .Kind "term" }}
<span class="rss-link">
{{ with .OutputFormats.Get "rss" }}
<a href="{{ .Permalink }}">{{ partial "icon.html" "rss" }}</a>
<a href="{{ .Permalink }}">{{ partial "icon.html" "rss-feed" }}</a>
{{ end }}
</span>
{{ end }}