diff --git a/archetypes/default.md b/archetypes/default.md index ac36e06..f14e794 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,2 +1,9 @@ -+++ -+++ +--- +title: "{{ replace .Name "-" " " | title }} +date: {{ .Date }} +draft: true +--- + +# + + diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 6d93fd0..061d40c 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,15 +1,9 @@ - {{ partial "head.html" . }} + {{- partial "head.html" . }} -
- {{ partial "header.html" . }} - {{ partial "nav.html" . }} -
- {{ block "main" . }}{{ end }} -
- {{ partial "footer.html" . }} -
+ {{ block "main" . }}{{ end }} + {{ partial "footer.html" . }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index e69de29..ab415d7 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -0,0 +1,18 @@ +{{ block "main" . }} + {{ partial "header.html" . }} + + {{ partial "nav.html" . }} + +
+
+
posts
+ {{ range first 5 .Pages }} +
+

/{{ .Title }}/

+
+

{{ .Summary }}

+
+ {{ end }} +
+
+{{ end }} \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index e69de29..f581c13 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -0,0 +1,10 @@ + \ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 92000ab..9f7805a 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,14 +1,10 @@ - - + + - {{ hugo.Generator }} - - {{ if .Title }}{{ .Title }} | {{ end }} {{ .Site.Title }} - {{- if or .Description .Site.Params.description }} - - {{- end }} + {{ block "title" . }}{{ .Site.Title }}{{ end }} + \ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html index c66c680..d9feeac 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,5 +1,8 @@
- {{- if .Title }}{{ .Title }} | {{ end }} {{ .Site.Title -}} + {{- if .Title }}{{ .Title }} | {{ end }}{{ .Site.Title }} +
+
+ encrypt everything
\ No newline at end of file diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index f95b79b..e105a2f 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -1,10 +1,17 @@ \ No newline at end of file diff --git a/theme.toml b/theme.toml index c77d000..4e56903 100644 --- a/theme.toml +++ b/theme.toml @@ -4,11 +4,11 @@ name = "Apache2" license = "MIT" licenselink = "https://git.fanyx.xyz/fanyx/hugo-theme-apache2/blob/master/LICENSE" -description = "A simple theme based on the HTTPD default site and css." +description = "A simple theme based on the Apache httpd default site and css." homepage = "https://git.fanyx.xyz/fanyx/hugo-theme-apache2/" tags = ["apache2", "httpd"] features = [] -min_version = "0.41.0" +min_version = "0.111.3" [author] name = "fanyx"