Skip to content

Commit 032c6d6

Browse files
committed
[ admin ] Very close to working again
The contents of the post where I'm complaining that this theme constantly breaks and needs micro-managing still somewhat hold, but it also turns out that in my (increasingly insane) ambition to write my own little theme, I have unearthed just enough of the arcane lore to (maybe?) fix this! None of the content currently renders. But hey, it actually builds!
1 parent 24e9b91 commit 032c6d6

File tree

17 files changed

+194
-249
lines changed

17 files changed

+194
-249
lines changed

config/_default/hugo.yaml

Lines changed: 32 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,23 @@ removePathAccents: true
3535
## COLLECTIONS
3636
############################
3737

38-
# https://docs.hugoblox.com/reference/page-features/#how-to-configure-a-page-collection
39-
cascade:
40-
# Configure blog posts
41-
- _target:
42-
path: /post/**
43-
pager: true
44-
editable: false
45-
reading_time: false
46-
commentable: false
47-
show_related: true
48-
# whether to show a path-like thing at the top
49-
show_breadcrumb: false
50-
share: false
51-
# whether to show the menu-/nav-bar at the top of each blog page
52-
header:
53-
navbar:
54-
enable: true
38+
### # https://docs.hugoblox.com/reference/page-features/#how-to-configure-a-page-collection
39+
### cascade:
40+
### # Configure blog posts
41+
### - _target:
42+
### path: /post/**
43+
### pager: true
44+
### editable: false
45+
### reading_time: false
46+
### commentable: false
47+
### show_related: true
48+
### # whether to show a path-like thing at the top
49+
### show_breadcrumb: false
50+
### share: false
51+
### # whether to show the menu-/nav-bar at the top of each blog page
52+
### header:
53+
### navbar:
54+
### enable: true
5555

5656

5757
############################
@@ -75,15 +75,20 @@ footnotereturnlinkcontents: <sup>^</sup>
7575
ignoreFiles: [\.ipynb$, .ipynb_checkpoints$, \.Rmd$, \.Rmarkdown$, _cache$]
7676

7777
permalinks:
78-
tags: '/tag/:slug/'
79-
categories: '/category/:slug/'
80-
publication_types: '/publication-type/:slug/'
78+
authors: '/author/:slug'
79+
### tags: '/tag/:slug/'
80+
### categories: '/category/:slug/'
81+
### publication_types: '/publication-type/:slug/'
8182

8283
disableAliases: true
8384

8485
outputs:
85-
### home: [HTML, RSS, headers, redirects, backlinks]
86-
home: [HTML, RSS]
86+
### ### home: [HTML, RSS, headers, redirects, backlinks]
87+
### home: [HTML, RSS]
88+
### section: [HTML, RSS]
89+
# 'headers' and 'redirects' are apparently a netlify thing!
90+
# (https://docs.hugoblox.com/reference/troubleshooting/#error-failed-to-resolve-output-format)
91+
home: [HTML, RSS, backlinks]
8792
section: [HTML, RSS]
8893

8994
imaging:
@@ -95,12 +100,14 @@ timeout: 600000
95100

96101
taxonomies:
97102
tag: tags
98-
category: categories
103+
### category: categories
99104
publication_type: publication_types
100105
author: authors
101106

102107
markup:
103108
_merge: deep
109+
highlight:
110+
lineNos: false
104111

105112
related:
106113
lineNos: false
@@ -116,6 +123,6 @@ security:
116123
_merge: deep
117124
sitemap:
118125
_merge: deep
119-
minify:
120-
_merge: deep
126+
### minify:
127+
### _merge: deep
121128

config/_default/languages.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
en:
88
# Uncomment for multi-lingual sites, and move English content into `en` sub-folder.
99
contentDir: content/en
10+
languageCode: en-gb
1011
params:
11-
languageCode: en-gb
1212
description: "Thomas Ekström Hansen's personal website"
1313

1414
da:

config/_default/menus.da.yaml

Lines changed: 0 additions & 43 deletions
This file was deleted.

config/_default/module.yaml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,24 @@
77
imports:
88
## - path: github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify
99
## - path: github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-reveal
10-
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5
11-
### - path: github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind
10+
### - path: github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5
11+
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind
1212

13+
# Install any Hugo Blox within the `hugo-blox/blox/` folder
14+
mounts:
15+
- source: hugo-blox/blox/community
16+
target: layouts/partials/blox/community/
17+
includeFiles: '**.html'
18+
- source: hugo-blox/blox/all-access
19+
target: layouts/partials/blox/
20+
includeFiles: '**.html'
21+
- source: hugo-blox/blox
22+
target: assets/dist/community/blox/
23+
includeFiles: '**.css'
24+
- source: layouts
25+
target: layouts
26+
- source: assets
27+
target: assets
1328

1429
### # Install any Hugo Blox within the `hugo-blox/blox/` folder
1530
### mounts:

config/_default/params.yaml

Lines changed: 97 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,37 @@
77
# Appearance
88

99
appearance:
10-
# The settings below seem to still work but have gotten obliterated from the
11-
# docs and replaced by "Just DIY with custom CSS 4head" -_-
10+
mode: system
11+
color: emerald
12+
### # The settings below seem to still work but have gotten obliterated from the
13+
### # docs and replaced by "Just DIY with custom CSS 4head" -_-
1214

13-
theme_day: coffee
14-
theme_night: dark
15+
### theme_day: coffee
16+
### theme_night: dark
1517

16-
font: minimal
18+
### font: minimal
1719

18-
# XS | S | M | L | XL
19-
font_size: L
20+
### # XS | S | M | L | XL
21+
### font_size: L
2022

2123

2224
# Site header
2325

2426
header:
2527
navbar:
2628
enable: true
27-
align: l
28-
show_logo: true
29-
show_language: true
30-
show_day_night: true
29+
blox: "navbar"
30+
fixed_to_top: true
3131
show_search: true
32-
highlight_active_link: true
32+
show_theme_chooser: true
33+
logo:
34+
text: Thomas Ekström Hansen
35+
### align: l
36+
### show_logo: true
37+
### show_language: true
38+
### show_day_night: true
39+
### show_search: true
40+
### highlight_active_link: true
3341

3442

3543
# Site Footer
@@ -52,66 +60,91 @@ locale:
5260
date_format: 'Mon, 2 Jan 2006'
5361
# NOTE: **must** refer to 15:04 or 3:04 PM
5462
time_format: '15:04'
55-
address_format: en-gb
63+
### address_format: en-gb
64+
65+
66+
# SEO
67+
marketing:
68+
seo:
69+
site_type: Person
70+
local_business_type: ''
71+
org_name: ''
72+
description: 'Personal website for Thomas E. Hansen. Software developer, functional programmer, hiking enthusiast, occasional cello player.'
73+
twitter: ''
74+
analytics:
75+
google_analytics: ''
76+
baidu_tongji: ''
77+
plausible: ''
78+
fathom: ''
79+
pirsch: ''
80+
verification:
81+
google: ''
82+
baidu: ''
5683

5784

5885
# Site features
5986

6087
features:
61-
syntax_highlighter:
62-
theme_light: github-light
63-
theme_dark: dracula
64-
65-
# LaTeX math rendering?
6688
math:
6789
enable: true
68-
6990
privacy_pack:
7091
enable: false
7192

72-
# TODO: ? Unsure what this does
73-
## repository:
74-
## url: 'https://github.com/<username>/<repository>'
75-
## content_dir: content
76-
## branch: main
77-
78-
avatar:
79-
# gravatar.com?
80-
gravatar: false
81-
shape: circle
82-
83-
comment:
84-
provider: '' # blank to disable
85-
## disqus:
86-
## shortname: ''
87-
## show_count: true
88-
## commento:
89-
## url: ''
90-
## giscus: # TODO: This might be interesting, but honestly, do I want it?
91-
## repo: ''
92-
## repo_id: ''
93-
## category: ''
94-
## category_id: ''
95-
# TODO: If I _do_ decide to enable commenting, see:
96-
# * https://docs.hugoblox.com/reference/page-features/#how-to-configure-a-page-collection
97-
# * https://docs.hugoblox.com/reference/comments/#choose-where-users-can-comment
98-
# * https://gohugo.io/content-management/front-matter/#cascade
99-
100-
search:
101-
provider: # blank to disable
102-
103-
map:
104-
provider: '' # blank to disable
105-
## api_key: ''
106-
## zoom: 15
107-
108-
109-
extensions:
110-
cms:
111-
branch: main
112-
local_backend: false
113-
# https://jpswalsh.github.io/academicons/
114-
# (for the SciHub raven!)
115-
academicons:
116-
enable: true
93+
### features:
94+
### syntax_highlighter:
95+
### theme_light: github-light
96+
### theme_dark: dracula
97+
###
98+
### # LaTeX math rendering?
99+
### math:
100+
### enable: true
101+
###
102+
### privacy_pack:
103+
### enable: false
104+
###
105+
### # TODO: ? Unsure what this does
106+
### ## repository:
107+
### ## url: 'https://github.com/<username>/<repository>'
108+
### ## content_dir: content
109+
### ## branch: main
110+
###
111+
### avatar:
112+
### # gravatar.com?
113+
### gravatar: false
114+
### shape: circle
115+
###
116+
### comment:
117+
### provider: '' # blank to disable
118+
### ## disqus:
119+
### ## shortname: ''
120+
### ## show_count: true
121+
### ## commento:
122+
### ## url: ''
123+
### ## giscus: # TODO: This might be interesting, but honestly, do I want it?
124+
### ## repo: ''
125+
### ## repo_id: ''
126+
### ## category: ''
127+
### ## category_id: ''
128+
### # TODO: If I _do_ decide to enable commenting, see:
129+
### # * https://docs.hugoblox.com/reference/page-features/#how-to-configure-a-page-collection
130+
### # * https://docs.hugoblox.com/reference/comments/#choose-where-users-can-comment
131+
### # * https://gohugo.io/content-management/front-matter/#cascade
132+
###
133+
### search:
134+
### provider: # blank to disable
135+
###
136+
### map:
137+
### provider: '' # blank to disable
138+
### ## api_key: ''
139+
### ## zoom: 15
140+
###
141+
###
142+
### extensions:
143+
### cms:
144+
### branch: main
145+
### local_backend: false
146+
### # https://jpswalsh.github.io/academicons/
147+
### # (for the SciHub raven!)
148+
### academicons:
149+
### enable: true
117150

content/da/publication/_index.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
---
22
title: Publications
3+
cms_exclude: true
34

45
# View.
5-
# 1 = List
6-
# 2 = Compact
7-
# 3 = Card
8-
# 4 = Citation
9-
view: 4
6+
view: citation
107

118
# Optional header image (relative to `static/media/` folder).
12-
header:
13-
caption: ""
14-
image: ""
9+
## banner:
10+
## caption: ''
11+
## image: ''
1512
---

0 commit comments

Comments
 (0)