feat(home): add custom content for home page (#248)
This commit is contained in:
@@ -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 */ -}}
|
||||
|
||||
Reference in New Issue
Block a user