modify theme.

This commit is contained in:
Snow 2022-03-06 15:50:00 +08:00
parent 8f5164b5b9
commit fc65972aaf
9 changed files with 35 additions and 8 deletions

3
.gitignore vendored
View File

@ -1,4 +1,5 @@
.DS_store
public
resources
assets/jsconfig.json
.hugo_build.lock
.hugo_build.lock

5
assets/icons/cloud.svg Normal file
View File

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-cloud-storm" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M7 18a4.6 4.4 0 0 1 0 -9a5 4.5 0 0 1 11 2h1a3.5 3.5 0 0 1 0 7h-1"></path>
<polyline points="13 14 11 18 14 18 12 22"></polyline>
</svg>

After

Width:  |  Height:  |  Size: 442 B

6
assets/icons/rainbow.svg Normal file
View File

@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-rainbow" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M22 17c0 -5.523 -4.477 -10 -10 -10s-10 4.477 -10 10" />
<path d="M18 17a6 6 0 1 0 -12 0" />
<path d="M14 17a2 2 0 1 0 -4 0" />
</svg>

After

Width:  |  Height:  |  Size: 432 B

6
assets/icons/toc.svg Normal file
View File

@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-license" width="44" height="44" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M15 21h-9a3 3 0 0 1 -3 -3v-1h10v2a2 2 0 0 0 4 0v-14a2 2 0 1 1 2 2h-2m2 -4h-11a3 3 0 0 0 -3 3v11"></path>
<line x1="9" y1="7" x2="13" y2="7"></line>
<line x1="9" y1="11" x2="13" y2="11"></line>
</svg>

After

Width:  |  Height:  |  Size: 504 B

View File

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

View File

@ -5,7 +5,7 @@
{{- $archivesPage := index $query 0 -}}
<section class="widget archives">
<div class="widget-icon">
{{ partial "helper/icon" "infinity" }}
{{ partial "helper/icon" "archives" }}
</div>
<h2 class="widget-title section-title">{{ T "widget.archives.title" }}</h2>
@ -32,4 +32,4 @@
</section>
{{- else -}}
{{- warnf "Archives page not found. Create a page with layout: archives." -}}
{{- end -}}
{{- end -}}

View File

@ -2,7 +2,7 @@
{{- $limit := default 10 .Params.limit -}}
<section class="widget tagCloud">
<div class="widget-icon">
{{ partial "helper/icon" "categories" }}
{{ partial "helper/icon" "rainbow" }}
</div>
<h2 class="widget-title section-title">{{ T "widget.categoriesCloud.title" }}</h2>

View File

@ -2,7 +2,7 @@
{{- $limit := default 10 .Params.limit -}}
<section class="widget tagCloud">
<div class="widget-icon">
{{ partial "helper/icon" "tag" }}
{{ partial "helper/icon" "cloud" }}
</div>
<h2 class="widget-title section-title">{{ T "widget.tagCloud.title" }}</h2>
@ -13,4 +13,4 @@
</a>
{{ end }}
</div>
</section>
</section>

View File

@ -1,7 +1,7 @@
{{ if (.Context.Scratch.Get "TOCEnabled") }}
<section class="widget archives">
<div class="widget-icon">
{{ partial "helper/icon" "hash" }}
{{ partial "helper/icon" "toc" }}
</div>
<h2 class="widget-title section-title">{{ T "article.tableOfContents" }}</h2>
@ -9,4 +9,4 @@
{{ .Context.TableOfContents }}
</div>
</section>
{{ end }}
{{ end }}