bit-101 Part 3 + config.toml (hugo.toml)
This commit is contained in:
1
themes/mytheme/layouts/partials/footer.html
Normal file
1
themes/mytheme/layouts/partials/footer.html
Normal file
@@ -0,0 +1 @@
|
||||
<div>This is a footer</div>
|
||||
6
themes/mytheme/layouts/partials/head.html
Normal file
6
themes/mytheme/layouts/partials/head.html
Normal file
@@ -0,0 +1,6 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, initial-scale=1.0">
|
||||
<title>Sum something up</title>
|
||||
</head>
|
||||
5
themes/mytheme/layouts/partials/header.html
Normal file
5
themes/mytheme/layouts/partials/header.html
Normal file
@@ -0,0 +1,5 @@
|
||||
<nav>
|
||||
<a href="/">Home</a>
|
||||
<a href="/page">LL-CAT</a>
|
||||
<a href="/tags">Ports and Apps</a>
|
||||
</nav>
|
||||
16
themes/mytheme/layouts/partials/listitem.html
Normal file
16
themes/mytheme/layouts/partials/listitem.html
Normal file
@@ -0,0 +1,16 @@
|
||||
<li>
|
||||
<h3>
|
||||
<a href="{{ .RelPermalink }}">
|
||||
{{ .Title }}
|
||||
</a>
|
||||
</h3>
|
||||
{{ if .PublishDate }}
|
||||
<p>Date: {{ .PublishDate }}</p>
|
||||
{{ end }}
|
||||
{{ if .Params.Tags }}
|
||||
<p>Tags: {{ partial "tags.html" . -}}
|
||||
{{ end }}
|
||||
{{ if .Summary }}
|
||||
<p>Summary: {{ .Summary }}</p>
|
||||
{{ end }}
|
||||
</li>
|
||||
3
themes/mytheme/layouts/partials/tags.html
Normal file
3
themes/mytheme/layouts/partials/tags.html
Normal file
@@ -0,0 +1,3 @@
|
||||
{{ range .Params.tags }}
|
||||
<a href="{{ add (absURL `tags/`) (.) }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user