feat(exampleSite): add some posts to exampleSite

This commit is contained in:
Dillon
2020-02-01 19:47:58 +08:00
parent 8aa4b6dce6
commit 437ef95e14
25 changed files with 343 additions and 142 deletions

View File

@@ -6,5 +6,5 @@
target="_blank"
{{ end -}}
>
{{- .Text -}}
{{- .Text | safeHTML -}}
</a>

View File

@@ -4,7 +4,7 @@
{{- define "content" -}}
{{- $data := .Data -}}
<div class="warpper archive">
<div class="page archive">
<h2 class="post-title animated pulse faster">
{{- T "all" | humanize}}{{ T .Section | default .Section | humanize -}}
</h2>

View File

@@ -1,7 +1,7 @@
{{- define "title" }}{{ .Title }} | {{ .Site.Title }}{{ end -}}
{{- define "content" -}}
<div class="warpper single">
<div class="page single">
<h1 class="post-title animated pulse faster">
{{- .Title -}}
</h1>

View File

@@ -28,7 +28,7 @@
{{- $name := . -}}
{{- with $.Site.GetPage "taxonomy" (printf "categories/%s" $name) | default ($.Site.GetPage "taxonomy" (printf "categories/%s" ($name | urlize))) -}}
<i class="far fa-folder fa-fw"></i>
<a href="{{ .Permalink }}">{{ $name }}</a>
<a href="{{ .Permalink }}">{{ $name | humanize }}</a>
{{- end -}}
{{- end -}}
</span>