diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 5f8e2ec..6d93fd0 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,11 +1,15 @@ - - {{- partial "head.html" . -}} + + {{ partial "head.html" . }} + - {{- partial "header.html" . -}} -
- {{- block "main" . }}{{- end }} -
- {{- partial "footer.html" . -}} +
+ {{ partial "header.html" . }} + {{ partial "nav.html" . }} +
+ {{ block "main" . }}{{ end }} +
+ {{ partial "footer.html" . }} +
diff --git a/layouts/index.html b/layouts/_default/index.html similarity index 100% rename from layouts/index.html rename to layouts/_default/index.html diff --git a/layouts/about/index.html b/layouts/about/index.html new file mode 100644 index 0000000..41b8269 --- /dev/null +++ b/layouts/about/index.html @@ -0,0 +1,3 @@ +{{ define "main" }} + +{{ end }} \ No newline at end of file diff --git a/layouts/partials/base.html b/layouts/partials/base.html deleted file mode 100644 index e69de29..0000000 diff --git a/layouts/partials/head.html b/layouts/partials/head.html index e69de29..92000ab 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -0,0 +1,14 @@ + + + + + + {{ hugo.Generator }} + + {{ if .Title }}{{ .Title }} | {{ end }} {{ .Site.Title }} + {{- if or .Description .Site.Params.description }} + + {{- end }} + + + \ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html index e69de29..c66c680 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -0,0 +1,5 @@ +
+
+ {{- if .Title }}{{ .Title }} | {{ end }} {{ .Site.Title -}} +
+
\ No newline at end of file diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html new file mode 100644 index 0000000..f95b79b --- /dev/null +++ b/layouts/partials/nav.html @@ -0,0 +1,10 @@ + \ No newline at end of file diff --git a/theme.toml b/theme.toml index 42c82b8..c77d000 100644 --- a/theme.toml +++ b/theme.toml @@ -3,19 +3,13 @@ name = "Apache2" license = "MIT" -licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE" -description = "" -homepage = "http://example.com/" -tags = [] +licenselink = "https://git.fanyx.xyz/fanyx/hugo-theme-apache2/blob/master/LICENSE" +description = "A simple theme based on the HTTPD default site and css." +homepage = "https://git.fanyx.xyz/fanyx/hugo-theme-apache2/" +tags = ["apache2", "httpd"] features = [] min_version = "0.41.0" [author] - name = "" - homepage = "" - -# If porting an existing theme -[original] - name = "" - homepage = "" - repo = "" + name = "fanyx" + homepage = "https://fanyx.xyz" \ No newline at end of file