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

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/data/description.html')
-rw-r--r--layouts/partials/data/description.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/layouts/partials/data/description.html b/layouts/partials/data/description.html
new file mode 100644
index 0000000..5531ab5
--- /dev/null
+++ b/layouts/partials/data/description.html
@@ -0,0 +1,11 @@
+{{- with .Description -}}
+ {{- . -}}
+{{- else -}}
+ {{- if .IsPage -}}
+ {{- .Summary -}}
+ {{- else -}}
+ {{- with .Site.Params.subtitle -}}
+ {{- . -}}
+ {{- end -}}
+ {{- end -}}
+{{- end -}} \ No newline at end of file