summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReorx <novoreorx@gmail.com>2022-04-14 15:19:21 +0800
committerReorx <novoreorx@gmail.com>2022-04-14 15:19:21 +0800
commitdbbf9f81a1cd4163a29a992bdcaf1cf7d386ddec (patch)
tree1a1c8449d21ae0c9555581523fb8dbe26bd331c6
parentd94f895296276385313b14ebb230a77124918b18 (diff)
fix homeInfoParams style, add docs to menu
-rw-r--r--assets/css/common/header.css4
-rw-r--r--assets/css/common/post-single.css4
-rw-r--r--assets/css/core/reset.css7
-rw-r--r--exampleSite/config.yml25
4 files changed, 21 insertions, 19 deletions
diff --git a/assets/css/common/header.css b/assets/css/common/header.css
index 10de31e..ca40bcc 100644
--- a/assets/css/common/header.css
+++ b/assets/css/common/header.css
@@ -7,6 +7,10 @@
margin-inline-end: auto;
line-height: var(--header-height);
}
+.nav ul {
+ margin: 0;
+ padding: 0;
+}
.logo a {
display: block;
diff --git a/assets/css/common/post-single.css b/assets/css/common/post-single.css
index f90c8cd..ff6758a 100644
--- a/assets/css/common/post-single.css
+++ b/assets/css/common/post-single.css
@@ -332,6 +332,10 @@ h6:hover .anchor {
padding: 10px 15px 5px 35px;
}
+.toc ul {
+ margin: 0;
+ padding: 0;
+}
.toc li ul {
margin-inline-start: 20px;
}
diff --git a/assets/css/core/reset.css b/assets/css/core/reset.css
index dfb1caa..7027379 100644
--- a/assets/css/core/reset.css
+++ b/assets/css/core/reset.css
@@ -63,17 +63,12 @@ p {
margin-bottom: 0;
}
-ul {
- padding: 0;
-}
-
a {
text-decoration: none;
}
body,
-figure,
-ul {
+figure {
margin: 0;
}
diff --git a/exampleSite/config.yml b/exampleSite/config.yml
index dc58fc0..6c0c0bd 100644
--- a/exampleSite/config.yml
+++ b/exampleSite/config.yml
@@ -24,21 +24,18 @@ languages:
weight: 1
menu:
main:
+ - name: Docs
+ url: docs
+ weight: 1
+ - name: Tags
+ url: tags/
+ weight: 4
- name: Archive
url: archives
weight: 5
- name: Search
url: search/
weight: 10
- - name: Tags
- url: tags/
- weight: 10
- - name: Categories
- url: categories/
- weight: 10
- - name: Icons
- url: icons/
- weight: 10
- name: "@Author"
url: "https://reorx.com"
@@ -125,12 +122,14 @@ params:
homeInfoParams:
Title: "PaperModX"
- Content: >
- Welcome to demo of hugo's theme PaperModX.
+ Content: |
+ Welcome to demo of hugo's theme PaperModX.
+
+ - **PaperModX** is a simple but fast and responsive theme with useful feature-set that enhances UX.
- - **PaperModX** is a simple but fast and responsive theme with useful feature-set that enhances UX.
+ - PaperModX is based on theme [PaperMod](https://github.com/adityatelange/hugo-PaperMod).
- - PaperModX is based on theme [PaperMod](https://github.com/adityatelange/hugo-PaperMod).
+ To get started, please head to the [Docs](docs).
socialIcons:
- name: github-simple