Skip to content

Commit 765f712

Browse files
committed
[ admin ] MVP for moving to HugoBlox
Lots have changed since I last got this website to succesfully build. Thankfully, trying to write my own theme means that debugging this theme was feasible. Is it completely fixed? No, not at all (for example, the `blog` section renders horribly at the moment). But this seems to be partially my fault; partially due to incompabilities/differences to do with the new templates, hugo functions, and how metadata is embedded in posts; and partially to do with that -- at the time of writing this commit -- the new version of the theme has not reached feature parity with the old version, due to the author moving to TailwindCSS for everything: > /!\ Caution > > The Tailwind module currently only supports the card view. Help > contribute by migrating the other views from the Bootstrap module. (https://docs.hugoblox.com/getting-started/page-builder/#listing-view) But it builds for now (at least locally). And a building website is much, _much_ better than a stun-locked old website.
1 parent 032c6d6 commit 765f712

File tree

58 files changed

+606
-462
lines changed

Some content is hidden

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

58 files changed

+606
-462
lines changed
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

config/_default/hugo.yaml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,29 @@ removePathAccents: true
3232

3333

3434
############################
35-
## COLLECTIONS
35+
## PAGE OPTIONS
3636
############################
3737

38+
# https://github.com/HugoBlox/theme-blog/blob/main/config/_default/hugo.yaml
39+
cascade:
40+
# Blog post options
41+
- _target:
42+
path: /post/**
43+
kind: page
44+
pager: true
45+
editable: true
46+
hide_date: false
47+
show_date_updated: true
48+
reading_time: false
49+
commentable: false
50+
show_related: true
51+
share: false
52+
# Just use Breadcrumb for navigation on blog post pages?
53+
show_breadcrumb: false
54+
header:
55+
navbar:
56+
enable: true
57+
3858
### # https://docs.hugoblox.com/reference/page-features/#how-to-configure-a-page-collection
3959
### cascade:
4060
### # Configure blog posts
@@ -59,7 +79,7 @@ removePathAccents: true
5979
############################
6080

6181
# get latest update info from git?
62-
enableGitInfo: true
82+
enableGitInfo: false
6383

6484
# summary length in words
6585
summaryLength: 30

config/_default/menus.yaml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,17 @@
55

66
main:
77
- name: Home
8-
url: '#about'
8+
url: /
99
weight: 10
1010

11-
- name: Recent posts
12-
url: '#posts'
13-
weight: 20
14-
15-
- name: Experience
16-
url: '#experience'
17-
weight: 30
11+
### FIXME: the 'collection' block is upset with something
12+
### - name: Recent posts
13+
### url: /#posts
14+
### weight: 20
15+
###
16+
### - name: Experience
17+
### url: /#experience
18+
### weight: 30
1819

1920
# - name: Projects
2021
# url: '#projects'
@@ -25,15 +26,17 @@ main:
2526
## weight: 50
2627

2728
- name: Blog
28-
url: 'blog'
29+
# url: blog/
30+
url: post/
2931
weight: 50
3032

31-
- name: Coursework
32-
url: 'coursework-archive'
33-
weight: 90
33+
### FIXME: the 'collection' block is upset with something
34+
### - name: Coursework
35+
### url: coursework-archive/
36+
### weight: 90
3437

3538
- name: PhD progress
36-
url: '/en/post/writing-up-a-phd/'
39+
url: /en/post/writing-up-a-phd/
3740
weight: 100
3841

3942

content/en/_index.md

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
---
2+
# Leave the homepage title empty to use the site title
3+
title: ""
4+
date: 2025-06-17
5+
type: landing
6+
7+
design:
8+
# Default section spacing
9+
spacing: "6rem"
10+
11+
12+
# see https://hugoblox.com/blocks/
13+
sections:
14+
- block: resume-biography-3
15+
content:
16+
# Choose a user profile to display (a folder name within `content/authors/`)
17+
username: thomas-e-hansen
18+
text: ""
19+
## # Show a call-to-action button under your biography? (optional)
20+
## button:
21+
## text: Download CV
22+
## url: uploads/resume.pdf
23+
# for now, leave this commented out; don't know how to nicely adjust the
24+
# background
25+
### design:
26+
### css_class: dark
27+
### background:
28+
### color: black
29+
## image:
30+
## # Add your image background to `assets/media/`.
31+
## filename: stacked-peaks.svg
32+
## filters:
33+
## brightness: 1.0
34+
## size: cover
35+
## position: center
36+
## parallax: false
37+
38+
## - block: markdown
39+
## content:
40+
## title: '📚 My Research'
41+
## subtitle: ''
42+
## text: |-
43+
## Use this area to speak to your mission. I'm a research scientist in the
44+
## Moonshot team at DeepMind. I blog about machine learning, deep learning,
45+
## and moonshots.
46+
##
47+
## I apply a range of qualitative and quantitative methods to
48+
## comprehensively investigate the role of science and technology in the
49+
## economy.
50+
##
51+
## Please reach out to collaborate 😃
52+
## design:
53+
## columns: '1'
54+
55+
### - block: resume-experience
56+
### content:
57+
### username: thomas-e-hansen
58+
### design:
59+
### date_format: 'January 2006'
60+
### is_education_first: false
61+
###
62+
### - block: collection
63+
### content:
64+
### filters:
65+
### folders:
66+
### - post
67+
### design:
68+
### spacing:
69+
### padding: ['3rem', 0, '6rem', 0]
70+
71+
## - block: collection
72+
## id: papers
73+
## content:
74+
## title: Featured Publications
75+
## filters:
76+
## folders:
77+
## - publication
78+
## featured_only: true
79+
## design:
80+
## view: article-grid
81+
## columns: 2
82+
###
83+
## - block: collection
84+
## content:
85+
## title: Recent Publications
86+
## text: ""
87+
## filters:
88+
## folders:
89+
## - publication
90+
## exclude_featured: false
91+
## design:
92+
## view: citation
93+
###
94+
## - block: collection
95+
## id: talks
96+
## content:
97+
## title: Recent & Upcoming Talks
98+
## filters:
99+
## folders:
100+
## - event
101+
## design:
102+
## view: article-grid
103+
## columns: 1
104+
###
105+
## - block: collection
106+
## id: posts
107+
## content:
108+
## title: Recent Posts
109+
## subtitle: ''
110+
## text: ''
111+
## # Page type to display. E.g. post, talk, publication...
112+
## page_type: post
113+
## # Choose how many pages you would like to display (0 = all pages)
114+
## count: 3
115+
## # Filter on criteria
116+
## filters:
117+
## author: ""
118+
## category: ""
119+
## tag: ""
120+
## exclude_featured: false
121+
## exclude_future: false
122+
## exclude_past: false
123+
## publication_type: ""
124+
## # Choose how many pages you would like to offset by
125+
## offset: 0
126+
## # Page order: descending (desc) or ascending (asc) date.
127+
## order: desc
128+
## design:
129+
## # Choose a layout view
130+
## ##view: date-title-summary
131+
## view: card
132+
## # Reduce spacing
133+
## spacing:
134+
## padding: [0, 0, 0, 0]
135+
---

content/en/authors/_index.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
# To publish author profile pages, remove all the `_build` and `cascade` settings below.
3+
_build:
4+
render: never
5+
cascade:
6+
_build:
7+
render: never
8+
list: always
9+
---

content/en/authors/thomas-e-hansen/_index.md

Lines changed: 61 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -2,71 +2,83 @@
22
# Display name
33
title: Thomas Ekström Hansen
44

5-
# Username (this should match the folder name)
6-
authors:
7-
- thomas-e-hansen
5+
# Full name for SEO
6+
first_name: Thomas Ekström
7+
last_name: Hansen
8+
9+
## # Username (this should match the folder name)
10+
## authors:
11+
## - thomas-e-hansen
812

913
# Is this the primary user of the site?
1014
superuser: true
1115

16+
## # GH-style status emoji
17+
## status:
18+
## icon:
19+
1220
# Role/position
1321
role: Research fellow in Computer Science
1422

1523
# Organizations/Affiliations
1624
organizations:
17-
- name: University of St Andrews
18-
url: "https://www.st-andrews.ac.uk/computer-science/"
25+
- name: University of St Andrews
26+
url: https://www.st-andrews.ac.uk/computer-science/
1927

20-
# Short bio (displayed in user profile at end of posts)
21-
bio: My interests include information visualisation, formal methods,
22-
and low-level programming.
28+
## # Short bio (displayed in user profile at end of posts)
29+
## bio: My interests include information visualisation, formal methods,
30+
## and low-level programming.
2331

2432
interests:
25-
- Information visualisation
26-
- Systems/Low-level programming
27-
- Computer security
28-
- Formal methods
29-
- Data ethics
30-
- Type systems
33+
- Information visualisation
34+
- Systems/Low-level programming
35+
- Formal methods
36+
- Type systems
3137

3238
education:
33-
courses:
34-
- course: PhD in Computer Science
39+
- area: PhD in Computer Science
3540
institution: University of St Andrews
36-
year: 2020-2024
37-
- course: MSci (Hons) in Computer Science
41+
date_start: 2020-09-27
42+
end_date: 2024-09-26
43+
summary: |
44+
Explored different ways of improving confidence in software correctness,
45+
from dependent types, to diagrammatic reasoning, to property based
46+
testing and unit test methodologies. Rather than deploying these as
47+
standalone tools, my thesis explored how they might be used in
48+
conjunction, covering each other's deficits and challenges.
49+
- area: Integrated Masters (MSci Hons) in Computer Science
3850
institution: University of St Andrews
39-
year: 2015-2020
51+
start_date: 2015-09-07
52+
end_date: 2020-06-30
53+
summary: |
54+
First Class / with Distinction
55+
56+
My Final project was on DVFS, energy savings, and scheduling in
57+
Assymetric Multicore Processors (AMPs), and was done using the gem5
58+
simulator.
59+
60+
Courses included: Operating Systems programming, Information
61+
Visualisation, Computer Architecture, Logic and Software Verification,
62+
Concurrency and Multicore Architectures, Constraint Programming, Data
63+
Encoding.
4064
4165
# Social/Academic Networking
42-
# For available icons, see: https://sourcethemes.com/academic/docs/page-builder/#icons
43-
# For an email link, use "fas" icon pack, "envelope" icon, and a link in the
44-
# form "mailto:[email protected]" or "#contact" for contact widget.
45-
social:
46-
- icon: briefcase
47-
icon_pack: fas
48-
link: "mailto:[email protected]"
49-
- icon: linkedin
50-
icon_pack: fab
51-
link: https://www.linkedin.com/in/thomas-e-hansen-5b4908138
52-
- icon: github
53-
icon_pack: fab
54-
link: https://github.com/CodingCellist
55-
- icon: envelope
56-
icon_pack: fas
57-
link: "mailto:[email protected]"
58-
- icon: user-lock
59-
icon_pack: fas
60-
# we need `..` here bc otherwise it defaults to `/en/uploads`
61-
link: ../uploads/pubkey.asc
62-
# Link to a PDF of your resume/CV from the About widget.
63-
# To enable, copy your resume/CV to `static/files/cv.pdf` and uncomment the lines below.
64-
# - icon: cv
65-
# icon_pack: ai
66-
# link: files/cv.pdf
67-
68-
# Enter email to display Gravatar (if Gravatar enabled in Config)
69-
email: ""
66+
# For available icons, see: https://docs.hugoblox.com/tutorial/landing-page-pro/step-2/#resume--resume-pro-icons
67+
profiles:
68+
# from assets/icons/custom/<filename>.svg
69+
- icon: "custom/briefcase-solid"
70+
url: 'mailto:[email protected]'
71+
label: Work email
72+
- icon: brands/linkedin
73+
url: 'https://www.linkedin.com/in/thomas-e-hansen-5b4908138'
74+
- icon: brands/github
75+
url: 'https://github.com/CodingCellist'
76+
- icon: at-symbol
77+
url: 'mailto:[email protected]'
78+
label: Non-work email
79+
- icon: "custom/user-lock-solid"
80+
# we need `..` here bc otherwise it defaults to `/en/uploads`
81+
url: '../uploads/pubkey.asc'
7082

7183
# Organizational groups that you belong to (for People widget)
7284
# Set this to `[]` or comment out if you are not using People widget.
@@ -75,6 +87,8 @@ email: ""
7587
#- Visitors
7688
---
7789

90+
## About Me
91+
7892
I am currently doing a PhD in Computer Science on
7993
[something along the lines of combining Type Theory and Formal Methods](../uploads/phd-proposal.pdf)
8094
(although this may change over the course of the project), supervised by

0 commit comments

Comments
 (0)