Hello World!
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="{{ block "description" . }}{{ with .Page.Description }}{{ . }}{{ else }}{{ .Page.Title }}{{ end }}{{ end }}">
|
||||
<meta name="author" content="{{ block "author" . }}{{ .Site.Params.author }}{{ end }}">
|
||||
|
||||
<!-- Open Graph -->
|
||||
<meta property="og:title" content="{{ block "og_title" . }}{{ .Page.Title }}{{ end }}">
|
||||
<meta property="og:description" content="{{ block "og_description" . }}{{ with .Page.Description }}{{ . }}{{ else }}{{ .Page.Title }}{{ end }}{{ end }}">
|
||||
<meta property="og:type" content="{{ block "og_type" . }}website{{ end }}">
|
||||
<meta property="og:url" content="{{ .Page.Permalink }}">
|
||||
|
||||
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
|
||||
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
main {
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
padding: 0 1rem;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
</style>
|
||||
|
||||
{{ block "head" . }}{{ end }}
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<main>
|
||||
{{ block "main" . }}{{ end }}
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,15 @@
|
||||
{{ define "main" }}
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
<hr>
|
||||
|
||||
{{ range .Pages.ByDate }}
|
||||
<a href="{{ .RelPermalink }}"><h2>{{ .Date.Format "2006-01-02" }}</h2></a>
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
<hr>
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
@@ -0,0 +1,8 @@
|
||||
{{ define "title" }}SWP - {{ .Page.Title }}{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
<h2>{{ .Date.Format "2006-01-02" }}</h2>
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user