Basic setup
This commit is contained in:
@@ -1,2 +1,3 @@
|
|||||||
public/
|
public/
|
||||||
|
resources/
|
||||||
.hugo_build.lock
|
.hugo_build.lock
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
body {
|
||||||
|
font-family: system-ui, sans-serif;
|
||||||
|
margin: 0;
|
||||||
|
background-color: red;
|
||||||
|
}
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
<!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>
|
||||||
|
|
||||||
|
{{ with resources.Get "sass/main.scss" | toCSS }}
|
||||||
|
<link rel="stylesheet" href="{{ .RelPermalink }}">
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ block "head" . }}{{ end }}
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<main>
|
||||||
|
{{ block "main" . }}{{ end }}
|
||||||
|
</main>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
{{ define "main" }}
|
||||||
|
|
||||||
|
{{ .Content }}
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
{{ range .Pages.ByDate }}
|
||||||
|
<a href="{{ .RelPermalink }}"><h2>{{ .Date.Format "2006-01-02" }}</h2></a>
|
||||||
|
{{ .Content }}
|
||||||
|
{{ 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