From fc5f40883138d48af2f75748845d0aa28b03334a Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Tue, 26 Oct 2021 18:50:48 -0500 Subject: [PATCH] Use jam icons instead of feather https://jam-icons.com --- .gitmodules | 8 ++++---- assets/feather | 1 - assets/jam | 1 + layouts/_default/list.html | 2 +- layouts/_default/single.html | 2 +- layouts/_default/summary.html | 2 +- layouts/partials/icon.html | 2 +- layouts/partials/post-metadata.html | 8 ++++---- layouts/taxonomy/list.html | 2 +- 9 files changed, 14 insertions(+), 14 deletions(-) delete mode 160000 assets/feather create mode 160000 assets/jam diff --git a/.gitmodules b/.gitmodules index 16dadbb..89cf429 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,4 +1,4 @@ -[submodule "assets/feather"] - path = assets/feather - url = https://github.com/feathericons/feather.git - branch = master +[submodule "assets/jam"] + path = assets/jam + url = https://github.com/michaelampr/jam.git + branch = master diff --git a/assets/feather b/assets/feather deleted file mode 160000 index 734f3f5..0000000 --- a/assets/feather +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 734f3f51144e383cfdc6d0916831be8d1ad2a749 diff --git a/assets/jam b/assets/jam new file mode 160000 index 0000000..c8501b1 --- /dev/null +++ b/assets/jam @@ -0,0 +1 @@ +Subproject commit c8501b14e0480c8becac58a626e72502bca90084 diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 65774e1..7413a52 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -5,7 +5,7 @@ {{ .Title | markdownify }} {{ with .OutputFormats.Get "rss" }} - {{ partial "icon.html" "rss" }} + {{ partial "icon.html" "rss-feed" }} {{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index a88a497..86d9164 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,7 +2,7 @@

{{ .Title | markdownify }} - {{ if .Draft }}{{ partial "icon.html" "edit" }}{{ end }} + {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}

diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index ecea82a..78af37d 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -6,7 +6,7 @@ {{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }} {{ .Title | markdownify }} - {{ if .Draft }}{{ partial "icon.html" "edit" }}{{ end }} + {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }} {{ partial "post-metadata.html" . }} diff --git a/layouts/partials/icon.html b/layouts/partials/icon.html index 4333241..66aa932 100644 --- a/layouts/partials/icon.html +++ b/layouts/partials/icon.html @@ -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 `` (printf `%s icon` .) $icon }} diff --git a/layouts/partials/post-metadata.html b/layouts/partials/post-metadata.html index 2f4f11d..8d07186 100644 --- a/layouts/partials/post-metadata.html +++ b/layouts/partials/post-metadata.html @@ -11,7 +11,7 @@ {{ if not .Site.Params.repoURL }} {{ if ne .Lastmod .Date }}