Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MunifTanjim/minimo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMunif Tanjim <muniftanjim@gmail.com>2021-05-15 18:41:53 +0300
committerMunif Tanjim <muniftanjim@gmail.com>2021-05-15 18:48:10 +0300
commit21d3174839536ff63324660ecfc3f4043628ce8f (patch)
tree5d28b059fbd1bbf520d38d742f86bf4dabb080d3
parentba35b8250b991729f59bb0b10e73ccb0460b10ff (diff)
refactor [icons]: convert to partials
-rw-r--r--assets/svg/author.svg4
-rw-r--r--assets/svg/calendar.svg6
-rw-r--r--assets/svg/category.svg3
-rw-r--r--assets/svg/clock.svg4
-rw-r--r--assets/svg/codepen.svg1
-rw-r--r--assets/svg/edit.svg4
-rw-r--r--assets/svg/email.svg1
-rw-r--r--assets/svg/facebook.svg1
-rw-r--r--assets/svg/git.svg1
-rw-r--r--assets/svg/github.svg3
-rw-r--r--assets/svg/gitlab.svg1
-rw-r--r--assets/svg/google_scholar.svg1
-rw-r--r--assets/svg/heroicons/github.svg3
-rw-r--r--assets/svg/instagram.svg1
-rw-r--r--assets/svg/linkedin.svg1
-rw-r--r--assets/svg/menu.svg5
-rw-r--r--assets/svg/next.svg4
-rw-r--r--assets/svg/prev.svg4
-rw-r--r--assets/svg/rss.svg1
-rw-r--r--assets/svg/search.svg4
-rw-r--r--assets/svg/tag.svg4
-rw-r--r--assets/svg/telegram.svg1
-rw-r--r--assets/svg/twitter.svg4
-rw-r--r--assets/svg/x.svg4
-rw-r--r--assets/svg/youtube.svg5
-rw-r--r--layouts/partials/entry/footer.html2
-rw-r--r--layouts/partials/entry/meta/author.html2
-rw-r--r--layouts/partials/entry/meta/posted-on.html2
-rw-r--r--layouts/partials/entry/meta/reading-time.html2
-rw-r--r--layouts/partials/entry/taxonomy-list.html2
-rw-r--r--layouts/partials/nav/entry_nav.html4
-rw-r--r--layouts/partials/nav/pagination.html4
-rw-r--r--layouts/partials/sidebar/toggler.html4
-rw-r--r--layouts/partials/svg/content/author.svg2
-rw-r--r--layouts/partials/svg/content/calendar.svg4
-rw-r--r--layouts/partials/svg/content/category.svg1
-rw-r--r--layouts/partials/svg/content/clock.svg2
-rw-r--r--layouts/partials/svg/content/codepen.svg5
-rw-r--r--layouts/partials/svg/content/edit.svg2
-rw-r--r--layouts/partials/svg/content/email.svg2
-rw-r--r--layouts/partials/svg/content/facebook.svg1
-rw-r--r--layouts/partials/svg/content/git.svg1
-rw-r--r--layouts/partials/svg/content/github.svg1
-rw-r--r--layouts/partials/svg/content/gitlab.svg1
-rw-r--r--layouts/partials/svg/content/google_scholar.svg1
-rw-r--r--layouts/partials/svg/content/instagram.svg3
-rw-r--r--layouts/partials/svg/content/linkedin.svg3
-rw-r--r--layouts/partials/svg/content/menu.svg3
-rw-r--r--layouts/partials/svg/content/next.svg2
-rw-r--r--layouts/partials/svg/content/prev.svg2
-rw-r--r--layouts/partials/svg/content/rss.svg3
-rw-r--r--layouts/partials/svg/content/search.svg2
-rw-r--r--layouts/partials/svg/content/series.svg6
-rw-r--r--layouts/partials/svg/content/tag.svg2
-rw-r--r--layouts/partials/svg/content/telegram.svg1
-rw-r--r--layouts/partials/svg/content/twitter.svg1
-rw-r--r--layouts/partials/svg/content/x.svg2
-rw-r--r--layouts/partials/svg/content/youtube.svg2
-rw-r--r--layouts/partials/svg/icon.html12
-rw-r--r--layouts/partials/svg/icons.html4
-rw-r--r--layouts/partials/widgets/search.html2
-rw-r--r--layouts/partials/widgets/social_menu.html2
-rw-r--r--layouts/taxonomy/author.terms.html2
63 files changed, 81 insertions, 89 deletions
diff --git a/assets/svg/author.svg b/assets/svg/author.svg
deleted file mode 100644
index 810ad14..0000000
--- a/assets/svg/author.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-<svg viewBox="0 0 24 24">
- <path d="M21,21V20c0-2.76-4-5-9-5s-9,2.24-9,5v1"/>
- <path d="M16,6.37A4,4,0,1,1,12.63,3,4,4,0,0,1,16,6.37Z"/>
-</svg>
diff --git a/assets/svg/calendar.svg b/assets/svg/calendar.svg
deleted file mode 100644
index 06256ca..0000000
--- a/assets/svg/calendar.svg
+++ /dev/null
@@ -1,6 +0,0 @@
-<svg viewBox="0 0 24 24">
- <rect x="3" y="4" width="18" height="18" rx="2" ry="2"/>
- <line x1="16" y1="2" x2="16" y2="6"/>
- <line x1="8" y1="2" x2="8" y2="6"/>
- <line x1="3" y1="10" x2="21" y2="10"/>
-</svg>
diff --git a/assets/svg/category.svg b/assets/svg/category.svg
deleted file mode 100644
index f4b9741..0000000
--- a/assets/svg/category.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-<svg viewBox="0 0 24 24">
- <path d="M22,19a2,2,0,0,1-2,2H4a2,2,0,0,1-2-2V5A2,2,0,0,1,4,3H9l2,3h9a2,2,0,0,1,2,2Z"/>
-</svg>
diff --git a/assets/svg/clock.svg b/assets/svg/clock.svg
deleted file mode 100644
index bc38585..0000000
--- a/assets/svg/clock.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-<svg viewBox="0 0 24 24">
- <circle cx="12" cy="12" r="10"/>
- <polyline points="12 6 12 12 15 15"/>
-</svg>
diff --git a/assets/svg/codepen.svg b/assets/svg/codepen.svg
deleted file mode 100644
index ab2a815..0000000
--- a/assets/svg/codepen.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-codepen"><polygon points="12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2"></polygon><line x1="12" y1="22" x2="12" y2="15.5"></line><polyline points="22 8.5 12 15.5 2 8.5"></polyline><polyline points="2 15.5 12 8.5 22 15.5"></polyline><line x1="12" y1="2" x2="12" y2="8.5"></line></svg> \ No newline at end of file
diff --git a/assets/svg/edit.svg b/assets/svg/edit.svg
deleted file mode 100644
index b8e013e..0000000
--- a/assets/svg/edit.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-<svg viewBox="0 0 24 24">
- <path d="M20 14.66V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5.34" />
- <polygon points="18 2 22 6 12 16 8 16 8 12 18 2" />
-</svg>
diff --git a/assets/svg/email.svg b/assets/svg/email.svg
deleted file mode 100644
index 2af169e..0000000
--- a/assets/svg/email.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-mail"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline></svg> \ No newline at end of file
diff --git a/assets/svg/facebook.svg b/assets/svg/facebook.svg
deleted file mode 100644
index 2570f56..0000000
--- a/assets/svg/facebook.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-facebook"><path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"></path></svg> \ No newline at end of file
diff --git a/assets/svg/git.svg b/assets/svg/git.svg
deleted file mode 100644
index f795f63..0000000
--- a/assets/svg/git.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Git icon</title><path d="M23.546 10.93L13.067.452c-.604-.603-1.582-.603-2.188 0L8.708 2.627l2.76 2.76c.645-.215 1.379-.07 1.889.441.516.515.658 1.258.438 1.9l2.658 2.66c.645-.223 1.387-.078 1.9.435.721.72.721 1.884 0 2.604-.719.719-1.881.719-2.6 0-.539-.541-.674-1.337-.404-1.996L12.86 8.955v6.525c.176.086.342.203.488.348.713.721.713 1.883 0 2.6-.719.721-1.889.721-2.609 0-.719-.719-.719-1.879 0-2.598.182-.18.387-.316.605-.406V8.835c-.217-.091-.424-.222-.6-.401-.545-.545-.676-1.342-.396-2.009L7.636 3.7.45 10.881c-.6.605-.6 1.584 0 2.189l10.48 10.477c.604.604 1.582.604 2.186 0l10.43-10.43c.605-.603.605-1.582 0-2.187"/></svg> \ No newline at end of file
diff --git a/assets/svg/github.svg b/assets/svg/github.svg
deleted file mode 100644
index 64b1745..0000000
--- a/assets/svg/github.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-<svg viewBox="0 0 24 24">
- <path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"/>
-</svg>
diff --git a/assets/svg/gitlab.svg b/assets/svg/gitlab.svg
deleted file mode 100644
index e28ef4c..0000000
--- a/assets/svg/gitlab.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>GitLab icon</title> <path d="M22.65 14.39L12 22.13 1.35 14.39a.84.84 0 0 1-.3-.94l1.22-3.78 2.44-7.51A.42.42 0 0 1 4.82 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.49h8.1l2.44-7.51A.42.42 0 0 1 18.6 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.51L23 13.45a.84.84 0 0 1-.35.94z"/></svg>
diff --git a/assets/svg/google_scholar.svg b/assets/svg/google_scholar.svg
deleted file mode 100644
index 3b37efe..0000000
--- a/assets/svg/google_scholar.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>Google Scholar icon</title><path d="M12 24a7 7 0 1 1 0-14 7 7 0 0 1 0 14zm0-24L0 9.5l4.838 3.94A8 8 0 0 1 12 9a8 8 0 0 1 7.162 4.44L24 9.5z"/></svg> \ No newline at end of file
diff --git a/assets/svg/heroicons/github.svg b/assets/svg/heroicons/github.svg
deleted file mode 100644
index 64b1745..0000000
--- a/assets/svg/heroicons/github.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-<svg viewBox="0 0 24 24">
- <path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"/>
-</svg>
diff --git a/assets/svg/instagram.svg b/assets/svg/instagram.svg
deleted file mode 100644
index 9fdb8e3..0000000
--- a/assets/svg/instagram.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-instagram"><rect x="2" y="2" width="20" height="20" rx="5" ry="5"></rect><path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"></path><line x1="17.5" y1="6.5" x2="17.51" y2="6.5"></line></svg> \ No newline at end of file
diff --git a/assets/svg/linkedin.svg b/assets/svg/linkedin.svg
deleted file mode 100644
index 3953109..0000000
--- a/assets/svg/linkedin.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-linkedin"><path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"></path><rect x="2" y="9" width="4" height="12"></rect><circle cx="4" cy="4" r="2"></circle></svg> \ No newline at end of file
diff --git a/assets/svg/menu.svg b/assets/svg/menu.svg
deleted file mode 100644
index 62d8df4..0000000
--- a/assets/svg/menu.svg
+++ /dev/null
@@ -1,5 +0,0 @@
-<svg viewBox="0 0 24 24">
- <line x1="3" y1="12" x2="21" y2="12" />
- <line x1="3" y1="6" x2="21" y2="6" />
- <line x1="3" y1="18" x2="21" y2="18" />
-</svg>
diff --git a/assets/svg/next.svg b/assets/svg/next.svg
deleted file mode 100644
index 7c4a671..0000000
--- a/assets/svg/next.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-<svg viewBox="0 0 24 24">
- <line x1="4" y1="12" x2="20" y2="12"/>
- <polyline points="14 6 20 12 14 18"/>
-</svg>
diff --git a/assets/svg/prev.svg b/assets/svg/prev.svg
deleted file mode 100644
index 70a21de..0000000
--- a/assets/svg/prev.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-<svg viewBox="0 0 24 24">
- <line x1="20" y1="12" x2="4" y2="12"/>
- <polyline points="10 18 4 12 10 6"/>
-</svg>
diff --git a/assets/svg/rss.svg b/assets/svg/rss.svg
deleted file mode 100644
index c9a1368..0000000
--- a/assets/svg/rss.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-rss"><path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg> \ No newline at end of file
diff --git a/assets/svg/search.svg b/assets/svg/search.svg
deleted file mode 100644
index 9fcd6ec..0000000
--- a/assets/svg/search.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-<svg viewBox="0 0 24 24">
- <circle cx="11" cy="11" r="8" />
- <line x1="21" y1="21" x2="16.65" y2="16.65" />
-</svg>
diff --git a/assets/svg/tag.svg b/assets/svg/tag.svg
deleted file mode 100644
index 2fbab75..0000000
--- a/assets/svg/tag.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-<svg viewBox="0 0 24 24">
- <path d="M20.59,13.41l-7.17,7.17a2,2,0,0,1-2.83,0L2,12V2H12l8.59,8.59A2,2,0,0,1,20.59,13.41Z"/>
- <line x1="7" y1="7" x2="7" y2="7"/>
-</svg>
diff --git a/assets/svg/telegram.svg b/assets/svg/telegram.svg
deleted file mode 100644
index 24e14e5..0000000
--- a/assets/svg/telegram.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>Telegram icon</title><path d="M23.91 3.79L20.3 20.84c-.25 1.21-.98 1.5-2 .94l-5.5-4.07-2.66 2.57c-.3.3-.55.56-1.1.56-.72 0-.6-.27-.84-.95L6.3 13.7l-5.45-1.7c-1.18-.35-1.19-1.16.26-1.75l21.26-8.2c.97-.43 1.9.24 1.53 1.73z"/></svg> \ No newline at end of file
diff --git a/assets/svg/twitter.svg b/assets/svg/twitter.svg
deleted file mode 100644
index cc08797..0000000
--- a/assets/svg/twitter.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
- <title>Twitter icon</title>
- <path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"></path>
-</svg>
diff --git a/assets/svg/x.svg b/assets/svg/x.svg
deleted file mode 100644
index b31a2f6..0000000
--- a/assets/svg/x.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-<svg viewBox="0 0 24 24">
- <line x1="18" y1="6" x2="6" y2="18" />
- <line x1="6" y1="6" x2="18" y2="18" />
-</svg>
diff --git a/assets/svg/youtube.svg b/assets/svg/youtube.svg
deleted file mode 100644
index 26bdda8..0000000
--- a/assets/svg/youtube.svg
+++ /dev/null
@@ -1,5 +0,0 @@
-<svg role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
- <title>YouTube icon</title>
- <path d="M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z" />
- <polygon points="9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02" />
-</svg>
diff --git a/layouts/partials/entry/footer.html b/layouts/partials/entry/footer.html
index e59e136..c002ad6 100644
--- a/layouts/partials/entry/footer.html
+++ b/layouts/partials/entry/footer.html
@@ -4,7 +4,7 @@
{{- if and ( eq .Site.Params.settings.showLastmod true ) ( not ( eq .Lastmod .Date ) ) -}}
{{- $dateFormat := ( .Site.Params.settings.dateFormat | default "2006, Jan 02" ) -}}
<div class='last-updated'>
- {{- partial "svg/icons" "edit" -}}
+ {{- partial "svg/icon" "edit" -}}
<span class='screen-reader-text'>{{ i18n "lastUpdated" }}: </span>
<time class='entry-date' datetime='{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }}'>
{{- .Lastmod.Format $dateFormat -}}
diff --git a/layouts/partials/entry/meta/author.html b/layouts/partials/entry/meta/author.html
index f263810..52cd2fa 100644
--- a/layouts/partials/entry/meta/author.html
+++ b/layouts/partials/entry/meta/author.html
@@ -3,7 +3,7 @@
{{- $lang := ( $.Params.lang | default $.Lang ) -}}
<span class='byline'>
- {{- partial "svg/icons" "author" -}}
+ {{- partial "svg/icon" "author" -}}
<span class='screen-reader-text'> {{ i18n "by" }} </span>
{{- range $i, $authorID := . -}}
diff --git a/layouts/partials/entry/meta/posted-on.html b/layouts/partials/entry/meta/posted-on.html
index 91b84c4..177600c 100644
--- a/layouts/partials/entry/meta/posted-on.html
+++ b/layouts/partials/entry/meta/posted-on.html
@@ -1,6 +1,6 @@
{{- $dateFormat := ( .Site.Params.settings.dateFormat | default "2006, Jan 02" ) -}}
<span class='posted-on'>
- {{- partial "svg/icons" "calendar" -}}
+ {{- partial "svg/icon" "calendar" -}}
<span class='screen-reader-text'>{{ i18n "postedOn" }} </span>
<time class='entry-date' datetime='{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}'>
{{- .Date.Format $dateFormat -}}
diff --git a/layouts/partials/entry/meta/reading-time.html b/layouts/partials/entry/meta/reading-time.html
index 6c3140a..553a209 100644
--- a/layouts/partials/entry/meta/reading-time.html
+++ b/layouts/partials/entry/meta/reading-time.html
@@ -1,6 +1,6 @@
{{ if .Site.Params.settings.showReadingTime }}
<span class='reading-time'>
- {{- partial "svg/icons" "clock" -}}
+ {{- partial "svg/icon" "clock" -}}
{{ i18n "readingTime" .ReadingTime }}
</span>
{{ end }}
diff --git a/layouts/partials/entry/taxonomy-list.html b/layouts/partials/entry/taxonomy-list.html
index ba39632..0f2ffe5 100644
--- a/layouts/partials/entry/taxonomy-list.html
+++ b/layouts/partials/entry/taxonomy-list.html
@@ -4,7 +4,7 @@
{{- $taxonomies := ( index $.Site.Taxonomies $txs ) -}}
<div class='{{ $txs }}'>
- {{- partial "svg/icons" $tx -}}
+ {{- partial "svg/icon" $tx -}}
<span class='screen-reader-text'>{{ ( ( i18n $tx 2 ) | default $txs ) }}: </span>
{{- range $i, $item := ( $.GetTerms $txs ) -}}
{{- if gt $i 0 }}, {{ end -}}
diff --git a/layouts/partials/nav/entry_nav.html b/layouts/partials/nav/entry_nav.html
index 9242df2..350717d 100644
--- a/layouts/partials/nav/entry_nav.html
+++ b/layouts/partials/nav/entry_nav.html
@@ -17,7 +17,7 @@
<div class='prev-entry sep-before'>
<a href='{{ .PrevInSection.Permalink | relURL }}'>
<span aria-hidden='true'>
- {{- partial "svg/icons" "prev" -}}
+ {{- partial "svg/icon" "prev" -}}
{{- print " " ( i18n "previous" ) -}}
</span>
<span class='screen-reader-text'>{{ i18n "previousPost" }}: </span>
@@ -33,7 +33,7 @@
{{- .NextInSection.Title -}}
<span aria-hidden='true'>
{{- print ( i18n "next" ) " " -}}
- {{- partial "svg/icons" "next" -}}
+ {{- partial "svg/icon" "next" -}}
</span>
</a>
</div>
diff --git a/layouts/partials/nav/pagination.html b/layouts/partials/nav/pagination.html
index c7c2988..3d981de 100644
--- a/layouts/partials/nav/pagination.html
+++ b/layouts/partials/nav/pagination.html
@@ -4,7 +4,7 @@
{{ with .Paginator.Prev }}
<a class='page-link prev' href='{{ .URL }}'>
- {{- partial "svg/icons" "prev" -}}
+ {{- partial "svg/icon" "prev" -}}
<span class='screen-reader-text'>{{ i18n "previousPage" }}</span>
</a>
{{ end }}
@@ -37,7 +37,7 @@
{{ with .Paginator.Next }}
<a class='page-link next' href='{{ .URL }}'>
<span class='screen-reader-text'>{{ i18n "nextPage" }}</span>
- {{- partial "svg/icons" "next" -}}
+ {{- partial "svg/icon" "next" -}}
</a>
{{ end }}
diff --git a/layouts/partials/sidebar/toggler.html b/layouts/partials/sidebar/toggler.html
index 491c749..9c04b50 100644
--- a/layouts/partials/sidebar/toggler.html
+++ b/layouts/partials/sidebar/toggler.html
@@ -8,10 +8,10 @@
<button id='sidebar-toggler' class='sidebar-toggler' aria-controls='sidebar'>
<span class='screen-reader-text'>{{ i18n "toggleSidebar" }}</span>
<span class='open'>
- {{- partial "svg/icons" "menu" -}}
+ {{- partial "svg/icon" "menu" -}}
</span>
<span class='close'>
- {{- partial "svg/icons" "x" -}}
+ {{- partial "svg/icon" "x" -}}
</span>
</button>
diff --git a/layouts/partials/svg/content/author.svg b/layouts/partials/svg/content/author.svg
new file mode 100644
index 0000000..deab844
--- /dev/null
+++ b/layouts/partials/svg/content/author.svg
@@ -0,0 +1,2 @@
+<path d="M21,21V20c0-2.76-4-5-9-5s-9,2.24-9,5v1" />
+<path d="M16,6.37A4,4,0,1,1,12.63,3,4,4,0,0,1,16,6.37Z" />
diff --git a/layouts/partials/svg/content/calendar.svg b/layouts/partials/svg/content/calendar.svg
new file mode 100644
index 0000000..a087bd3
--- /dev/null
+++ b/layouts/partials/svg/content/calendar.svg
@@ -0,0 +1,4 @@
+<rect x="3" y="4" width="18" height="18" rx="2" ry="2" />
+<line x1="16" y1="2" x2="16" y2="6" />
+<line x1="8" y1="2" x2="8" y2="6" />
+<line x1="3" y1="10" x2="21" y2="10" />
diff --git a/layouts/partials/svg/content/category.svg b/layouts/partials/svg/content/category.svg
new file mode 100644
index 0000000..8dbf916
--- /dev/null
+++ b/layouts/partials/svg/content/category.svg
@@ -0,0 +1 @@
+<path d="M22,19a2,2,0,0,1-2,2H4a2,2,0,0,1-2-2V5A2,2,0,0,1,4,3H9l2,3h9a2,2,0,0,1,2,2Z" />
diff --git a/layouts/partials/svg/content/clock.svg b/layouts/partials/svg/content/clock.svg
new file mode 100644
index 0000000..13089e6
--- /dev/null
+++ b/layouts/partials/svg/content/clock.svg
@@ -0,0 +1,2 @@
+<circle cx="12" cy="12" r="10" />
+<polyline points="12 6 12 12 15 15" />
diff --git a/layouts/partials/svg/content/codepen.svg b/layouts/partials/svg/content/codepen.svg
new file mode 100644
index 0000000..d546bb2
--- /dev/null
+++ b/layouts/partials/svg/content/codepen.svg
@@ -0,0 +1,5 @@
+<polygon points="12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2" />
+<line x1="12" y1="22" x2="12" y2="15.5" />
+<polyline points="22 8.5 12 15.5 2 8.5" />
+<polyline points="2 15.5 12 8.5 22 15.5" />
+<line x1="12" y1="2" x2="12" y2="8.5" />
diff --git a/layouts/partials/svg/content/edit.svg b/layouts/partials/svg/content/edit.svg
new file mode 100644
index 0000000..5387e65
--- /dev/null
+++ b/layouts/partials/svg/content/edit.svg
@@ -0,0 +1,2 @@
+<path d="M20 14.66V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5.34" />
+<polygon points="18 2 22 6 12 16 8 16 8 12 18 2" />
diff --git a/layouts/partials/svg/content/email.svg b/layouts/partials/svg/content/email.svg
new file mode 100644
index 0000000..8b4ba5b
--- /dev/null
+++ b/layouts/partials/svg/content/email.svg
@@ -0,0 +1,2 @@
+<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z" />
+<polyline points="22,6 12,13 2,6" />
diff --git a/layouts/partials/svg/content/facebook.svg b/layouts/partials/svg/content/facebook.svg
new file mode 100644
index 0000000..b1e5075
--- /dev/null
+++ b/layouts/partials/svg/content/facebook.svg
@@ -0,0 +1 @@
+<path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z" />
diff --git a/layouts/partials/svg/content/git.svg b/layouts/partials/svg/content/git.svg
new file mode 100644
index 0000000..15901ef
--- /dev/null
+++ b/layouts/partials/svg/content/git.svg
@@ -0,0 +1 @@
+<path d="M23.546 10.93L13.067.452c-.604-.603-1.582-.603-2.188 0L8.708 2.627l2.76 2.76c.645-.215 1.379-.07 1.889.441.516.515.658 1.258.438 1.9l2.658 2.66c.645-.223 1.387-.078 1.9.435.721.72.721 1.884 0 2.604-.719.719-1.881.719-2.6 0-.539-.541-.674-1.337-.404-1.996L12.86 8.955v6.525c.176.086.342.203.488.348.713.721.713 1.883 0 2.6-.719.721-1.889.721-2.609 0-.719-.719-.719-1.879 0-2.598.182-.18.387-.316.605-.406V8.835c-.217-.091-.424-.222-.6-.401-.545-.545-.676-1.342-.396-2.009L7.636 3.7.45 10.881c-.6.605-.6 1.584 0 2.189l10.48 10.477c.604.604 1.582.604 2.186 0l10.43-10.43c.605-.603.605-1.582 0-2.187" />
diff --git a/layouts/partials/svg/content/github.svg b/layouts/partials/svg/content/github.svg
new file mode 100644
index 0000000..827f2cc
--- /dev/null
+++ b/layouts/partials/svg/content/github.svg
@@ -0,0 +1 @@
+<path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22" />
diff --git a/layouts/partials/svg/content/gitlab.svg b/layouts/partials/svg/content/gitlab.svg
new file mode 100644
index 0000000..25fba1b
--- /dev/null
+++ b/layouts/partials/svg/content/gitlab.svg
@@ -0,0 +1 @@
+<path d="M22.65 14.39L12 22.13 1.35 14.39a.84.84 0 0 1-.3-.94l1.22-3.78 2.44-7.51A.42.42 0 0 1 4.82 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.49h8.1l2.44-7.51A.42.42 0 0 1 18.6 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.51L23 13.45a.84.84 0 0 1-.35.94z" />
diff --git a/layouts/partials/svg/content/google_scholar.svg b/layouts/partials/svg/content/google_scholar.svg
new file mode 100644
index 0000000..0657dc3
--- /dev/null
+++ b/layouts/partials/svg/content/google_scholar.svg
@@ -0,0 +1 @@
+<path d="M12 24a7 7 0 1 1 0-14 7 7 0 0 1 0 14zm0-24L0 9.5l4.838 3.94A8 8 0 0 1 12 9a8 8 0 0 1 7.162 4.44L24 9.5z" />
diff --git a/layouts/partials/svg/content/instagram.svg b/layouts/partials/svg/content/instagram.svg
new file mode 100644
index 0000000..a5aafc0
--- /dev/null
+++ b/layouts/partials/svg/content/instagram.svg
@@ -0,0 +1,3 @@
+<rect x="2" y="2" width="20" height="20" rx="5" ry="5" />
+<path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z" />
+<line x1="17.5" y1="6.5" x2="17.51" y2="6.5" />
diff --git a/layouts/partials/svg/content/linkedin.svg b/layouts/partials/svg/content/linkedin.svg
new file mode 100644
index 0000000..ed5066d
--- /dev/null
+++ b/layouts/partials/svg/content/linkedin.svg
@@ -0,0 +1,3 @@
+<path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z" />
+<rect x="2" y="9" width="4" height="12" />
+<circle cx="4" cy="4" r="2" />
diff --git a/layouts/partials/svg/content/menu.svg b/layouts/partials/svg/content/menu.svg
new file mode 100644
index 0000000..34a1c98
--- /dev/null
+++ b/layouts/partials/svg/content/menu.svg
@@ -0,0 +1,3 @@
+<line x1="3" y1="12" x2="21" y2="12" />
+<line x1="3" y1="6" x2="21" y2="6" />
+<line x1="3" y1="18" x2="21" y2="18" />
diff --git a/layouts/partials/svg/content/next.svg b/layouts/partials/svg/content/next.svg
new file mode 100644
index 0000000..a15922a
--- /dev/null
+++ b/layouts/partials/svg/content/next.svg
@@ -0,0 +1,2 @@
+<line x1="4" y1="12" x2="20" y2="12" />
+<polyline points="14 6 20 12 14 18" />
diff --git a/layouts/partials/svg/content/prev.svg b/layouts/partials/svg/content/prev.svg
new file mode 100644
index 0000000..d4f5da9
--- /dev/null
+++ b/layouts/partials/svg/content/prev.svg
@@ -0,0 +1,2 @@
+<line x1="20" y1="12" x2="4" y2="12" />
+<polyline points="10 18 4 12 10 6" />
diff --git a/layouts/partials/svg/content/rss.svg b/layouts/partials/svg/content/rss.svg
new file mode 100644
index 0000000..072689e
--- /dev/null
+++ b/layouts/partials/svg/content/rss.svg
@@ -0,0 +1,3 @@
+<path d="M4 11a9 9 0 0 1 9 9" />
+<path d="M4 4a16 16 0 0 1 16 16" />
+<circle cx="5" cy="19" r="1" />
diff --git a/layouts/partials/svg/content/search.svg b/layouts/partials/svg/content/search.svg
new file mode 100644
index 0000000..b70be95
--- /dev/null
+++ b/layouts/partials/svg/content/search.svg
@@ -0,0 +1,2 @@
+<circle cx="11" cy="11" r="8" />
+<line x1="21" y1="21" x2="16.65" y2="16.65" />
diff --git a/layouts/partials/svg/content/series.svg b/layouts/partials/svg/content/series.svg
new file mode 100644
index 0000000..39cd1d7
--- /dev/null
+++ b/layouts/partials/svg/content/series.svg
@@ -0,0 +1,6 @@
+<line x1="8" y1="6" x2="21" y2="6" />
+<line x1="8" y1="12" x2="21" y2="12" />
+<line x1="8" y1="18" x2="21" y2="18" />
+<line x1="3" y1="6" x2="3" y2="6" />
+<line x1="3" y1="12" x2="3" y2="12" />
+<line x1="3" y1="18" x2="3" y2="18" />
diff --git a/layouts/partials/svg/content/tag.svg b/layouts/partials/svg/content/tag.svg
new file mode 100644
index 0000000..36d06aa
--- /dev/null
+++ b/layouts/partials/svg/content/tag.svg
@@ -0,0 +1,2 @@
+<path d="M20.59,13.41l-7.17,7.17a2,2,0,0,1-2.83,0L2,12V2H12l8.59,8.59A2,2,0,0,1,20.59,13.41Z" />
+<line x1="7" y1="7" x2="7" y2="7" />
diff --git a/layouts/partials/svg/content/telegram.svg b/layouts/partials/svg/content/telegram.svg
new file mode 100644
index 0000000..090f7f1
--- /dev/null
+++ b/layouts/partials/svg/content/telegram.svg
@@ -0,0 +1 @@
+<path d="M23.91 3.79L20.3 20.84c-.25 1.21-.98 1.5-2 .94l-5.5-4.07-2.66 2.57c-.3.3-.55.56-1.1.56-.72 0-.6-.27-.84-.95L6.3 13.7l-5.45-1.7c-1.18-.35-1.19-1.16.26-1.75l21.26-8.2c.97-.43 1.9.24 1.53 1.73z" />
diff --git a/layouts/partials/svg/content/twitter.svg b/layouts/partials/svg/content/twitter.svg
new file mode 100644
index 0000000..72f244f
--- /dev/null
+++ b/layouts/partials/svg/content/twitter.svg
@@ -0,0 +1 @@
+<path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z" />
diff --git a/layouts/partials/svg/content/x.svg b/layouts/partials/svg/content/x.svg
new file mode 100644
index 0000000..7a4887b
--- /dev/null
+++ b/layouts/partials/svg/content/x.svg
@@ -0,0 +1,2 @@
+<line x1="18" y1="6" x2="6" y2="18" />
+<line x1="6" y1="6" x2="18" y2="18" />
diff --git a/layouts/partials/svg/content/youtube.svg b/layouts/partials/svg/content/youtube.svg
new file mode 100644
index 0000000..5c1c48d
--- /dev/null
+++ b/layouts/partials/svg/content/youtube.svg
@@ -0,0 +1,2 @@
+<path d="M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z" />
+<polygon points="9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02" />
diff --git a/layouts/partials/svg/icon.html b/layouts/partials/svg/icon.html
new file mode 100644
index 0000000..487cd2e
--- /dev/null
+++ b/layouts/partials/svg/icon.html
@@ -0,0 +1,12 @@
+<svg
+ class="icon"
+ xmlns="http://www.w3.org/2000/svg"
+ viewbox="0 0 24 24"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ stroke-width="2"
+ aria-hidden="true"
+>
+ {{- $icon := print "svg/content/" . ".svg" -}}
+ {{- partialCached $icon . -}}
+</svg>
diff --git a/layouts/partials/svg/icons.html b/layouts/partials/svg/icons.html
deleted file mode 100644
index ce3e270..0000000
--- a/layouts/partials/svg/icons.html
+++ /dev/null
@@ -1,4 +0,0 @@
-<svg class='icon' xmlns='http://www.w3.org/2000/svg' viewbox='0 0 24 24' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' aria-hidden='true'>
- {{ $icon := print "svg/" . ".svg" | resources.Get }}
- {{ $icon.Content | replaceRE `(?s)^.*<svg.*?>(.*)<\/svg>.*$` "$1" | safeHTML }}
-</svg>
diff --git a/layouts/partials/widgets/search.html b/layouts/partials/widgets/search.html
index 267d836..45da5f0 100644
--- a/layouts/partials/widgets/search.html
+++ b/layouts/partials/widgets/search.html
@@ -19,7 +19,7 @@
{{- if eq .Layout "search" -}}
<button type='submit' class='search-submit'>
<span class='screen-reader-text'>{{ i18n "search" }}</span>
- {{- partial "svg/icons" "search" -}}
+ {{- partial "svg/icon" "search" -}}
</button>
{{- end -}}
</form>
diff --git a/layouts/partials/widgets/social_menu.html b/layouts/partials/widgets/social_menu.html
index bf259fc..e3b7952 100644
--- a/layouts/partials/widgets/social_menu.html
+++ b/layouts/partials/widgets/social_menu.html
@@ -29,7 +29,7 @@
{{- i18n "openAccountInNewTab" ( dict "Platform" ( $platform | title ) ) -}}
{{- end -}}
</span>
- {{- partial "svg/icons" $platform -}}
+ {{- partial "svg/icon" $platform -}}
</a>
</li>
{{- end -}}
diff --git a/layouts/taxonomy/author.terms.html b/layouts/taxonomy/author.terms.html
index f656fa3..d234c4d 100644
--- a/layouts/taxonomy/author.terms.html
+++ b/layouts/taxonomy/author.terms.html
@@ -12,7 +12,7 @@
{{- $name := $data.name -}}
<li class='item'>
<h2 class='item-title'>
- {{- partial "svg/icons" "author" -}}
+ {{- partial "svg/icon" "author" -}}
<a href='{{ ( print "authors" "/" ( .Name | urlize ) ) | relLangURL }}'>
{{- $name.display -}}
</a>