FEAT: Using hugo
This commit is contained in:
36
themes/risotto/layouts/_default/baseof.html
Normal file
36
themes/risotto/layouts/_default/baseof.html
Normal file
@@ -0,0 +1,36 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{- site.Language.Lang -}}">
|
||||
|
||||
<head>
|
||||
{{- partial "head.html" . -}}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="page">
|
||||
|
||||
<header class="page__header">
|
||||
{{- partial "header.html" . -}}
|
||||
</header>
|
||||
|
||||
<section class="page__body">
|
||||
{{- block "main" . }}{{- end }}
|
||||
</section>
|
||||
|
||||
<section class="page__aside">
|
||||
<div class="aside__about">
|
||||
{{- partial "about.html" . -}}
|
||||
</div>
|
||||
<hr>
|
||||
<div class="aside__content">
|
||||
{{- block "aside" . }}{{- end }}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<footer class="page__footer">
|
||||
{{- partial "footer.html" . -}}
|
||||
</footer>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
1
themes/risotto/layouts/_default/li.html
Normal file
1
themes/risotto/layouts/_default/li.html
Normal file
@@ -0,0 +1 @@
|
||||
<li><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></li>
|
||||
12
themes/risotto/layouts/_default/list.html
Normal file
12
themes/risotto/layouts/_default/list.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{{ define "main" }}
|
||||
<h1 id="{{ .Title | urlize }}">{{ .Title | markdownify }}</h1>
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
<ul>
|
||||
{{ range .Pages.ByDate.Reverse }} {{ .Render "li" }} {{ end }}
|
||||
</ul>
|
||||
|
||||
{{ end }} {{define "aside" }} {{ if .Params.description }}
|
||||
<p>{{ .Params.description }}</p>
|
||||
{{ end }} {{ end }}
|
||||
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