FEAT: Using hugo

This commit is contained in:
2023-11-15 22:10:46 +00:00
parent 3ec95d41e2
commit 13fd272fb2
138 changed files with 1633 additions and 16545 deletions

View 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>

View File

@@ -0,0 +1 @@
<li><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></li>

View 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 }}

View 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 }}