Updated hugo site
This commit is contained in:
@@ -8,8 +8,12 @@
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
{{ block "main" . }}
|
||||
{{ end }}
|
||||
<header>{{ partial "header.html" }}</header>
|
||||
<main>
|
||||
{{ block "main" . }}
|
||||
{{ end }}
|
||||
</main>
|
||||
<footer>{{ partial "footer.html" }}</footer>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
1
layouts/_partials/footer.html
Normal file
1
layouts/_partials/footer.html
Normal file
@@ -0,0 +1 @@
|
||||
<p>This is the footer</p>
|
||||
1
layouts/_partials/header.html
Normal file
1
layouts/_partials/header.html
Normal file
@@ -0,0 +1 @@
|
||||
<p>This is the header</p>
|
||||
Binary file not shown.
@@ -1,15 +1,10 @@
|
||||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
{{ $chapters := where .Site.AllPages "Params.tags" .Params.tags }}
|
||||
|
||||
{{ range sort $chapters "Params.chapterno" "asc" }}
|
||||
{{ if ne .Params.chapterno "00" }}
|
||||
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
{{ $chapters := where .Site.AllPages "Params.tags" .Params.tags }}
|
||||
{{ range sort $chapters "Params.chapterno" "asc" }}
|
||||
{{ if gt .Params.chapterno 0 }}
|
||||
<li><a href="{{ .Permalink }}">{{ .Params.chapterno }}. {{ .Title }}</a></li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user