Skip to content

Commit b9d2df3

Browse files
committed
Add Thoughts and Essays section
New posts can now be generated from template (Hugo archetypes) using ```sh hugo new thoughts/2-post-name/index.md ``` to generate a "Thoughts" post or ```sh hugo new essays/name-of-essay/index.md ``` to generate an essay.
1 parent 7d9cbf4 commit b9d2df3

File tree

109 files changed

+102
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+102
-5
lines changed

archetypes/essays.md

Lines changed: 13 additions & 0 deletions

archetypes/posts.md

Lines changed: 14 additions & 0 deletions

archetypes/thoughts.md

Lines changed: 16 additions & 0 deletions

config.toml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
# THIS IS THE CONFIGURATION FILE FOR HUGO.
22

3-
# This is what goes in <html lang="">
4-
languageCode = 'en'
3+
4+
languageCode = 'en' # This is what goes in <html lang="">
55
baseURL = 'https://dandylyons.net'
66
title = 'Daniel Lyons'
77

8-
98
# This defines how dates are formatted
109
defaultContentLanguage = "en-gb"
1110

@@ -36,6 +35,9 @@ theme = "hugo-blog-awesome"
3635
# path = "github.com/hugo-sid/hugo-blog-awesome"
3736
# disable = false
3837

38+
[frontmatter]
39+
format = "yaml"
40+
3941
[taxonomies]
4042
series = "series" # blog series
4143
topics = "topics"
@@ -70,7 +72,7 @@ theme = "hugo-blog-awesome"
7072
[Languages.en-gb]
7173
languageName = "English"
7274
languageCode = "en-gb"
73-
contentDir = "content/en"
75+
contentDir = "content/en-gb"
7476
weight = 1
7577

7678
[Languages.en-gb.menu]
@@ -91,11 +93,21 @@ theme = "hugo-blog-awesome"
9193
name = 'Projects'
9294
url = '/projects/'
9395
weight = 30
96+
[[Languages.en-gb.menu.main]]
97+
# pageRef="projects"
98+
name = 'Thoughts'
99+
url = '/thoughts/'
100+
weight = 40
101+
# [[Languages.en-gb.menu.main]]
102+
# # pageRef="essays"
103+
# name = 'Essays'
104+
# url = '/essays/' # Added URL for Essays menu item
105+
# weight = 50
94106
[[Languages.en-gb.menu.main]]
95107
# pageRef="projects"
96108
name = 'Notes'
97109
url = 'https://dandylyons.github.io/notes'
98-
weight = 40
110+
weight = 60
99111

100112
[Languages.en-gb.params]
101113
sitename = "Daniel Lyons"

content/en-gb/essays/_index.md

Lines changed: 1 addition & 0 deletions
Lines changed: 27 additions & 0 deletions
File renamed without changes.

0 commit comments

Comments
 (0)