From fc65972aafd1b98cff94a1122db3fe3f91ac6a7d Mon Sep 17 00:00:00 2001 From: Snow Date: Sun, 6 Mar 2022 15:50:00 +0800 Subject: [PATCH] modify theme. --- .gitignore | 3 ++- assets/icons/cloud.svg | 5 +++++ assets/icons/rainbow.svg | 6 ++++++ assets/icons/toc.svg | 6 ++++++ assets/scss/partials/widgets.scss | 9 +++++++++ layouts/partials/widget/archives.html | 4 ++-- layouts/partials/widget/categories.html | 2 +- layouts/partials/widget/tag-cloud.html | 4 ++-- layouts/partials/widget/toc.html | 4 ++-- 9 files changed, 35 insertions(+), 8 deletions(-) create mode 100644 assets/icons/cloud.svg create mode 100644 assets/icons/rainbow.svg create mode 100644 assets/icons/toc.svg diff --git a/.gitignore b/.gitignore index 9ff142d..0e2e8f6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ +.DS_store public resources assets/jsconfig.json -.hugo_build.lock \ No newline at end of file +.hugo_build.lock diff --git a/assets/icons/cloud.svg b/assets/icons/cloud.svg new file mode 100644 index 0000000..701db46 --- /dev/null +++ b/assets/icons/cloud.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/assets/icons/rainbow.svg b/assets/icons/rainbow.svg new file mode 100644 index 0000000..45c5fb6 --- /dev/null +++ b/assets/icons/rainbow.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/assets/icons/toc.svg b/assets/icons/toc.svg new file mode 100644 index 0000000..1657f67 --- /dev/null +++ b/assets/icons/toc.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/assets/scss/partials/widgets.scss b/assets/scss/partials/widgets.scss index 42cfcc2..c32e002 100644 --- a/assets/scss/partials/widgets.scss +++ b/assets/scss/partials/widgets.scss @@ -12,6 +12,15 @@ } } +.widget:not(:last-of-type):after { + content: ""; + width: 100px; + height: 2px; + background-color: var(--body-text-color); + display: block; + margin-top: var(--section-separation); +} + /* Tag cloud widget */ .tagCloud { .tagCloud-tags { diff --git a/layouts/partials/widget/archives.html b/layouts/partials/widget/archives.html index 1f2abc5..71eeac4 100644 --- a/layouts/partials/widget/archives.html +++ b/layouts/partials/widget/archives.html @@ -5,7 +5,7 @@ {{- $archivesPage := index $query 0 -}}
- {{ partial "helper/icon" "infinity" }} + {{ partial "helper/icon" "archives" }}

{{ T "widget.archives.title" }}

@@ -32,4 +32,4 @@
{{- else -}} {{- warnf "Archives page not found. Create a page with layout: archives." -}} -{{- end -}} \ No newline at end of file +{{- end -}} diff --git a/layouts/partials/widget/categories.html b/layouts/partials/widget/categories.html index 10c8a35..b5c4de6 100644 --- a/layouts/partials/widget/categories.html +++ b/layouts/partials/widget/categories.html @@ -2,7 +2,7 @@ {{- $limit := default 10 .Params.limit -}}
- {{ partial "helper/icon" "categories" }} + {{ partial "helper/icon" "rainbow" }}

{{ T "widget.categoriesCloud.title" }}

diff --git a/layouts/partials/widget/tag-cloud.html b/layouts/partials/widget/tag-cloud.html index e64e5e2..82b2dc0 100644 --- a/layouts/partials/widget/tag-cloud.html +++ b/layouts/partials/widget/tag-cloud.html @@ -2,7 +2,7 @@ {{- $limit := default 10 .Params.limit -}}
- {{ partial "helper/icon" "tag" }} + {{ partial "helper/icon" "cloud" }}

{{ T "widget.tagCloud.title" }}

@@ -13,4 +13,4 @@ {{ end }} -
\ No newline at end of file +
diff --git a/layouts/partials/widget/toc.html b/layouts/partials/widget/toc.html index e311de3..4ab9f54 100644 --- a/layouts/partials/widget/toc.html +++ b/layouts/partials/widget/toc.html @@ -1,7 +1,7 @@ {{ if (.Context.Scratch.Get "TOCEnabled") }}
- {{ partial "helper/icon" "hash" }} + {{ partial "helper/icon" "toc" }}

{{ T "article.tableOfContents" }}

@@ -9,4 +9,4 @@ {{ .Context.TableOfContents }}
-{{ end }} \ No newline at end of file +{{ end }}