diff --git a/config.toml b/config.toml index 9b92e50..29a61f8 100644 --- a/config.toml +++ b/config.toml @@ -4,6 +4,27 @@ title = "My New Hugo Site" theme = "hugo-w2ng" pygmentsStyle="github" +[[menu.main]] + name = "博客" + url = "/blog/" + weight = 2 +[[menu.main]] + name = "飞行手册" + url = "/flight-rules/" + weight = 4 +[[menu.main]] + name = "论文笔记" + url = "/paper-notes/" + weight = 5 +[[menu.main]] + name = "只言片语" + url = "/quote/" + weight = 6 +[[menu.main]] + name = "关于" + url = "/about/" + weight = 3 + [markup] [markup.goldmark] [markup.goldmark.extensions] diff --git a/themes/hugo-w2ng/layouts/_default/baseof.html b/themes/hugo-w2ng/layouts/_default/baseof.html index 1a3a6b1..eb6e00f 100644 --- a/themes/hugo-w2ng/layouts/_default/baseof.html +++ b/themes/hugo-w2ng/layouts/_default/baseof.html @@ -1,11 +1,13 @@ - {{- partial "head.html" . -}} - +{{- partial "head.html" . -}} + + +
{{- partial "header.html" . -}} -
{{- block "main" . }}{{- end }} -
- {{- partial "footer.html" . -}} - - +
+ {{- partial "footer.html" . -}} + + + \ No newline at end of file diff --git a/themes/hugo-w2ng/layouts/_default/single.html b/themes/hugo-w2ng/layouts/_default/single.html index 14b281f..662136f 100644 --- a/themes/hugo-w2ng/layouts/_default/single.html +++ b/themes/hugo-w2ng/layouts/_default/single.html @@ -1,29 +1,8 @@ {{ define "main" }} -
-
- -
-
- -
+

{{ .Title }}

{{ .Content }}
-
+ {{ end }} \ No newline at end of file diff --git a/themes/hugo-w2ng/layouts/partials/header.html b/themes/hugo-w2ng/layouts/partials/header.html index e69de29..f225c54 100644 --- a/themes/hugo-w2ng/layouts/partials/header.html +++ b/themes/hugo-w2ng/layouts/partials/header.html @@ -0,0 +1,13 @@ +
+

Wrong.Wang

+

前进

+ +
\ No newline at end of file