You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: exampleSite/content/_index.Rmarkdown
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ title: Home
10
10
11
11
**XMin** is a Hugo theme written by [Yihui Xie](https://yihui.org) in about four hours: half an hour was spent on the Hugo templates, and 3.5 hours were spent on styling. The main motivation for writing this theme was to provide a really minimal example to beginners of Hugo templates. This XMin theme contains about 130 lines of code in total, including the code in HTML templates and CSS (also counting empty lines).
Copy file name to clipboardExpand all lines: exampleSite/content/about.md
+27-30Lines changed: 27 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,59 +7,56 @@ author: Yihui Xie
7
7
8
8
The theme name "XMin" can be interpreted as "**X**ie's **Min**imal theme" (Xie is my last name) or "e**X**tremely **Min**imal theme".
9
9
10
-
# config.toml
10
+
# config.yaml
11
11
12
12
For this example site, I defined permalinks for two sections, `post` and `note`, so that the links to pages under these directories will contain the date info, e.g., `https://xmin.yihui.org/post/2016/02/14/a-plain-markdown-post/`. This is optional, and it is up to your personal taste of URLs.
13
13
14
-
```
15
-
[permalinks]
16
-
post = "/post/:year/:month/:day/:slug/"
17
-
note = "/note/:year/:month/:day/:slug/"
14
+
```yaml
15
+
permalinks:
16
+
note: "/note/:year/:month/:day/:slug/"
17
+
post: "/post/:year/:month/:day/:slug/"
18
18
```
19
19
20
20
You can define the menu through `menu.main`, e.g.,
21
21
22
-
```
23
-
[[menu.main]]
24
-
name = "Home"
25
-
url = "/"
26
-
weight = 1
27
-
[[menu.main]]
28
-
name = "About"
29
-
url = "/about/"
30
-
weight = 2
31
-
[[menu.main]]
32
-
name = "Categories"
33
-
url = "/categories/"
34
-
weight = 3
35
-
[[menu.main]]
36
-
name = "Tags"
37
-
url = "/tags/"
38
-
weight = 4
39
-
[[menu.main]]
40
-
name = "Subscribe"
41
-
url = "/index.xml"
22
+
```yaml
23
+
menu:
24
+
main:
25
+
- name: Home
26
+
url: ""
27
+
weight: 1
28
+
- name: About
29
+
url: "about/"
30
+
weight: 2
31
+
- name: Categories
32
+
url: "categories/"
33
+
weight: 3
34
+
- name: Tags
35
+
url: "tags/"
36
+
weight: 4
37
+
- name: Subscribe
38
+
url: "index.xml"
42
39
```
43
40
44
41
Alternatively, you can add `menu: main` to the YAML metadata of any of your pages, so that these pages will appear in the menu.
45
42
46
43
The page footer can be defined in `.Params.footer`, and the text is treated as Markdown, e.g.,
There are two layout files under `layouts/partials/` that you may want to override: `head_custom.html` and `foot_custom.html`. This is how you inject arbitrary HTML code to the head and foot areas. For example, this site has a file `layouts/partials/foot_custom.html` to support LaTeX math via MathJax and center images automatically:
Copy file name to clipboardExpand all lines: exampleSite/content/note/2017-06-14-another-note.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,6 @@ tags:
9
9
slug: another-note
10
10
---
11
11
12
-
I just discovered [an awesome tutorial](https://apreshill.rbind.io/post/up-and-running-with-blogdown/) on **blogdown** written by Alison. I have to admit this is _the_ best **blogdown** tutorial I have seen so far.
12
+
I just discovered [an awesome tutorial](https://www.apreshill.com/blog/2020-12-new-year-new-blogdown/) on **blogdown** written by Alison. I have to admit this is _the_ best **blogdown** tutorial I have seen so far.
0 commit comments