feat(exampleSite): add some posts to exampleSite
This commit is contained in:
@@ -6,5 +6,5 @@
|
||||
target="_blank"
|
||||
{{ end -}}
|
||||
>
|
||||
{{- .Text -}}
|
||||
{{- .Text | safeHTML -}}
|
||||
</a>
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{{- define "content" -}}
|
||||
{{- if eq .Site.Params.home_mode "post" -}}
|
||||
<div class="warpper">
|
||||
<div class="page">
|
||||
{{- partial "home/profile.html" . -}}
|
||||
|
||||
{{- $paginator := where .Site.RegularPages "Type" "posts" -}}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
{{- $author := .Params.author | default .Site.Author.name -}}
|
||||
{{- $author_link := .Params.author_link | default .Site.Author.link | default .Site.BaseURL -}}
|
||||
|
||||
<article class="warpper">
|
||||
<article class="page">
|
||||
<h1 class="post-title animated flipInX">{{ .Title }}</h1>
|
||||
|
||||
<div class="post-meta">
|
||||
@@ -19,7 +19,7 @@
|
||||
{{- range . -}}
|
||||
{{- $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>
|
||||
<i class="far fa-folder fa-fw"></i><a href="{{ .Permalink }}">{{ $name | humanize }}</a>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
</span>
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
{{- end -}}
|
||||
|
||||
{{- define "content" -}}
|
||||
<div class="warpper archive">
|
||||
<div class="page archive">
|
||||
<h2 class="post-title animated pulse faster">
|
||||
{{- $taxonomy := .Data.Singular -}}
|
||||
{{- if eq $taxonomy "category" -}}
|
||||
<i class="far fa-folder-open fa-fw"></i> {{ .Title }}
|
||||
<i class="far fa-folder-open fa-fw"></i> {{ humanize .Title }}
|
||||
{{- else if eq $taxonomy "tag" -}}
|
||||
<i class="fas fa-tag fa-fw"></i> {{ .Title }}
|
||||
<i class="fas fa-tag fa-fw"></i> {{ humanize .Title }}
|
||||
{{- else -}}
|
||||
{{- printf "%s - %s" (T $taxonomy | default (humanize $taxonomy)) .Title -}}
|
||||
{{- end -}}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{{- define "title" -}}
|
||||
{{- T "all" | humanize}}{{ T .Data.Plural | default .Data.Plural | humanize }} | {{ .Site.Title -}}
|
||||
{{- T "all" | humanize }}{{ T .Data.Plural | default .Data.Plural | humanize }} | {{ .Site.Title -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "content" -}}
|
||||
@@ -7,7 +7,7 @@
|
||||
{{- $terms := .Data.Terms.ByCount -}}
|
||||
{{- $type := .Type -}}
|
||||
|
||||
<div class="warpper archive">
|
||||
<div class="page archive">
|
||||
<h2 class="post-title animated pulse faster">
|
||||
{{- T "all" | humanize}}{{ T $taxonomies | default $taxonomies | humanize -}}
|
||||
</h2>
|
||||
|
||||
Reference in New Issue
Block a user