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"] [submodule "assets/jam"]
path = assets/feather path = assets/jam
url = https://github.com/feathericons/feather.git url = https://github.com/michaelampr/jam.git
branch = master 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 }} {{ .Title | markdownify }}
<span class="rss-link"> <span class="rss-link">
{{ with .OutputFormats.Get "rss" }} {{ with .OutputFormats.Get "rss" }}
<a href="{{ .Permalink }}">{{ partial "icon.html" "rss" }}</a> <a href="{{ .Permalink }}">{{ partial "icon.html" "rss-feed" }}</a>
{{ end }} {{ end }}
</span> </span>
</h1> </h1>

View File

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

View File

@ -6,7 +6,7 @@
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }} {{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
{{ if .Draft }}{{ partial "icon.html" "edit" }}{{ end }} {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
</h2> </h2>
{{ partial "post-metadata.html" . }} {{ 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 := $icon_resource.Content }}
{{ $icon = replaceRE `<svg` `<svg class="icon"` $icon }} {{ $icon = replaceRE `<svg` `<svg class="icon"` $icon }}
{{ $icon = replaceRE `</svg>` (printf `<title>%s icon</title></svg>` .) $icon }} {{ $icon = replaceRE `</svg>` (printf `<title>%s icon</title></svg>` .) $icon }}

View File

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

View File

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