FEAT: Using hugo
This commit is contained in:
20
themes/risotto/layouts/_default/single.html
Normal file
20
themes/risotto/layouts/_default/single.html
Normal file
@@ -0,0 +1,20 @@
|
||||
{{ define "main" }}
|
||||
<header class="content__header">
|
||||
<h1>{{ .Title | markdownify }}</h1>
|
||||
</header>
|
||||
{{ if .Params.toc }}
|
||||
<aside></aside>
|
||||
{{ end }}
|
||||
<div class="content__body">{{ .Content }}</div>
|
||||
<footer class="content__footer"></footer>
|
||||
{{ end }} {{define "aside" }} {{ partial "tags.html" .}} {{ if
|
||||
.Params.description }}
|
||||
<p>{{ .Params.description }}</p>
|
||||
{{ end }} {{ if or (.Params.author) (.Params.date) }}
|
||||
<p>
|
||||
{{ if .Params.author }}By {{ .Params.author }}{{ if .Date }}, {{ end }}{{ end
|
||||
}} {{ if .Date }}{{ .Date.Format "2006-01-02" }}{{ end }}
|
||||
</p>
|
||||
{{ end }} {{ if and (.Params.toc) (.TableOfContents) }}
|
||||
<hr />
|
||||
On this page: {{ .TableOfContents }} {{ end }} {{ end }}
|
||||
Reference in New Issue
Block a user