feat(style): adjust style of header, tags and dynamic-to-top button

This commit is contained in:
Dillon
2020-03-14 14:42:12 +08:00
parent d8bfd23ace
commit 3d9aad3205
23 changed files with 146 additions and 130 deletions

View File

@@ -56,7 +56,7 @@
{{- /* Dynamic to top button */ -}}
<a href="#" class="dynamic-to-top animated faster" id="dynamic-to-top">
<span>&nbsp;</span>
<i class="fas fa-chevron-up fa-fw"></i>
</a>
{{- /* Load JavaScript scripts and CSS */ -}}

View File

@@ -29,15 +29,14 @@
</span>
{{- with .Params.categories -}}
&nbsp;<span class="post-category">
&nbsp;
<span class="post-category">
{{- T "included" -}}
{{- range . -}}
&nbsp;
<span>
<a href="{{ `/categories/` | relLangURL }}{{ urlize .}}">
<i class="far fa-folder fa-fw"></i>{{ . | humanize }}
</a>
</span>
{{- range $index, $value := . -}}
{{- if gt $index 0 }}&nbsp;{{ end -}}
<a href="{{ `/categories/` | relLangURL }}{{ urlize $value }}">
<i class="far fa-folder fa-fw"></i>{{ $value | humanize }}
</a>
{{- end -}}
</span>
{{- end -}}
@@ -57,12 +56,10 @@
<a href="{{ .RelPermalink }}">{{ T "readMore" }}</a>
{{- with .Params.tags -}}
<div class="post-tags">
{{- range . -}}
&nbsp;<span>
<a href="{{ `/tags/` | relLangURL }}{{ urlize .}}">
<i class="fas fa-tag fa-fw"></i>{{ . }}
</a>
</span>
<i class="fas fa-tags fa-fw"></i>&nbsp;
{{- range $index, $value := . -}}
{{- if gt $index 0 }},&nbsp;{{ end -}}
<a href="{{ `/tags/` | relLangURL }}{{ urlize $value }}">{{ $value }}</a>
{{- end -}}
</div>
{{- end -}}