diff options
author | Dillon <dillonzq@outlook.com> | 2020-04-22 12:50:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-22 12:50:30 +0300 |
commit | 3c38d54a87fcc844075c4ee8efc1ce1d85ac5117 (patch) | |
tree | f1afda359659fcc392b5dde916b09a17c2b09e0c /layouts/index.html | |
parent | a0ab272f7d22d1ca4dc9a6ceb467a1f6d8dcd8ae (diff) |
feat(home): add custom content for home page (#248)
Diffstat (limited to 'layouts/index.html')
-rw-r--r-- | layouts/index.html | 10 |
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 */ -}} |