Use baseof for common base HTML

This commit is contained in:
ItsDrike 2021-08-24 20:06:02 +02:00
parent 9f753226f6
commit e6db609303
No known key found for this signature in database
GPG key ID: B5F6B41F708C3ADD
4 changed files with 19 additions and 16 deletions

View file

@ -0,0 +1,10 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{{ partial "title-item.html" . }}{{ .Site.Title }}</title>
</head>
<body>
{{ block "main" . }}{{ end }}
</body>
</html>

View file

@ -1,9 +1,4 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{{.Title}}</title>
</head>
<body>
{{ define "main" }}
{{ partial "content.html" . }}
<!--Group posts by months-->
@ -20,5 +15,4 @@
{{ partial "list_item.html" . }}
{{ end }}
{{ end }}
</body>
</html>
{{ end }}

View file

@ -1,9 +1,3 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{{.Title}}</title>
</head>
<body>
{{ define "main" }}
{{ partial "content.html" . }}
</body>
</html>
{{ end }}

View file

@ -0,0 +1,5 @@
{{ .Title }} ::
{{ if .Parent }}{{ if not .Parent.IsHome }}
{{ partial "title-item.html" .Parent }}
{{ end }}{{ end }}