Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDillon <dillonzq@outlook.com>2020-02-01 14:47:58 +0300
committerDillon <dillonzq@outlook.com>2020-02-01 14:47:58 +0300
commit437ef95e14ed568fd26fd45a950561b8588da024 (patch)
treefec451fca1e817db9918f4fcd84c2af06a2fa47f /layouts
parent8aa4b6dce6da9601411c7caa07e6352c98ddc4f4 (diff)
feat(exampleSite): add some posts to exampleSite
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/_markup/render-link.html2
-rw-r--r--layouts/_default/section.html2
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/_default/summary.html2
-rw-r--r--layouts/index.html2
-rw-r--r--layouts/posts/single.html4
-rw-r--r--layouts/taxonomy/list.html6
-rw-r--r--layouts/taxonomy/terms.html4
8 files changed, 12 insertions, 12 deletions
diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html
index cb9f027..d3224c2 100644
--- a/layouts/_default/_markup/render-link.html
+++ b/layouts/_default/_markup/render-link.html
@@ -6,5 +6,5 @@
target="_blank"
{{ end -}}
>
- {{- .Text -}}
+ {{- .Text | safeHTML -}}
</a> \ No newline at end of file
diff --git a/layouts/_default/section.html b/layouts/_default/section.html
index 78a693e..a6f7aac 100644
--- a/layouts/_default/section.html
+++ b/layouts/_default/section.html
@@ -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>
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index cdc44ca..4eebf85 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -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>
diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html
index c67a5da..a5df4e5 100644
--- a/layouts/_default/summary.html
+++ b/layouts/_default/summary.html
@@ -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>
diff --git a/layouts/index.html b/layouts/index.html
index ad26191..20bef9d 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -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" -}}
diff --git a/layouts/posts/single.html b/layouts/posts/single.html
index 38fe8fb..93799af 100644
--- a/layouts/posts/single.html
+++ b/layouts/posts/single.html
@@ -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>
diff --git a/layouts/taxonomy/list.html b/layouts/taxonomy/list.html
index 7f5baa0..55a92b7 100644
--- a/layouts/taxonomy/list.html
+++ b/layouts/taxonomy/list.html
@@ -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>&nbsp;{{ .Title }}
+ <i class="far fa-folder-open fa-fw"></i>&nbsp;{{ humanize .Title }}
{{- else if eq $taxonomy "tag" -}}
- <i class="fas fa-tag fa-fw"></i>&nbsp;{{ .Title }}
+ <i class="fas fa-tag fa-fw"></i>&nbsp;{{ humanize .Title }}
{{- else -}}
{{- printf "%s - %s" (T $taxonomy | default (humanize $taxonomy)) .Title -}}
{{- end -}}
diff --git a/layouts/taxonomy/terms.html b/layouts/taxonomy/terms.html
index 38679fe..db17ffc 100644
--- a/layouts/taxonomy/terms.html
+++ b/layouts/taxonomy/terms.html
@@ -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>