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-04-22 12:50:30 +0300
committerGitHub <noreply@github.com>2020-04-22 12:50:30 +0300
commit3c38d54a87fcc844075c4ee8efc1ce1d85ac5117 (patch)
treef1afda359659fcc392b5dde916b09a17c2b09e0c /layouts/index.html
parenta0ab272f7d22d1ca4dc9a6ceb467a1f6d8dcd8ae (diff)
feat(home): add custom content for home page (#248)
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 96dd11c..b165076 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,10 +1,20 @@
{{- define "content" -}}
+ {{- $params := .Scratch.Get "params" -}}
<div class="page home">
{{- /* Profile */ -}}
{{- if ne .Site.Params.home.profile.enable false -}}
{{- partial "home/profile.html" . -}}
{{- end -}}
+ {{- /* Content */ -}}
+ {{- if .Content -}}
+ <div class="single">
+ <div class="content" id="content">
+ {{- dict "content" .Content "ruby" $params.ruby "fraction" $params.fraction "fontawesome" $params.fontawesome | partial "function/content.html" | safeHTML -}}
+ </div>
+ </div>
+ {{- end -}}
+
{{- /* Posts */ -}}
{{- if ne .Site.Params.home.posts.enable false -}}
{{- /* Paginate */ -}}