diff options
author | Dillon <dillonzq@outlook.com> | 2020-04-21 17:55:06 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-21 17:55:06 +0300 |
commit | f14301c395ffd63ef72625bf8bfe887fa211d013 (patch) | |
tree | 367e8f5a699a0b1df5d142f0ae259c9d6dd9de3f /layouts/_default/single.html | |
parent | 8a0e61085cfc2f2d1a342697c73b10cbc1d27a68 (diff) |
feat: improve configuration (#245)
* feat: improve configuration
* fix: fix partials/footer.html error
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r-- | layouts/_default/single.html | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 4f19da8..cf0815a 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,18 +1,21 @@ {{- define "title" }}{{ .Title }} | {{ .Site.Title }}{{ end -}} {{- define "content" -}} + {{- $params := .Scratch.Get "params" -}} <div class="page single special"> {{- /* Title */ -}} <h1 class="single-title animated pulse faster"> {{- .Title -}} </h1> - {{- with .Params.subtitle -}} + + {{- /* Subtitle */ -}} + {{- with $params.subtitle -}} <h2 class="single-subtitle">{{ . }}</h2> {{- end -}} {{- /* Content */ -}} <div class="content" id="content"> - {{- partial "function/content.html" .Content | safeHTML -}} + {{- dict "content" .Content "ruby" $params.ruby "fraction" $params.fraction "fontawesome" $params.fontawesome | partial "function/content.html" | safeHTML -}} </div> </div> {{- end -}} |