Skip to content

Commit fc8acf8

Browse files
committed
Use Terminal Theme
1 parent 11cdfaf commit fc8acf8

File tree

14 files changed

+153
-80
lines changed

14 files changed

+153
-80
lines changed

.gitmodules

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
[submodule "themes/hugo-theme-m10c"]
2-
path = themes/hugo-theme-m10c
3-
url = https://github.com/vaga/hugo-theme-m10c.git
1+
[submodule "themes/terminal"]
2+
path = themes/terminal
3+
url = https://github.com/panr/hugo-theme-terminal.git

archetypes/default.md

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

archetypes/posts.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
+++
2+
title = "{{ replace .TranslationBaseName "-" " " | title }}"
3+
date = "{{ .Date }}"
4+
#dateFormat = "2006-01-02" # this value can be configured for per-post date formatting
5+
author = ""
6+
authorTwitter = "" # do not include @
7+
cover = ""
8+
tags = ["", ""]
9+
keywords = ["", ""]
10+
description = ""
11+
showFullContent = false
12+
readingTime = false
13+
hideComments = false
14+
+++

backup/hugo-theme-m10c.zip

-5.32 MB
Binary file not shown.

backup/terminal-css.zip

1.1 MB
Binary file not shown.

backup/terminal.zip

5.78 MB
Binary file not shown.

content/posts/new-post.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
+++
2-
date = '2025-05-18T23:14:36+01:00'
3-
draft = false
4-
title = 'New Post'
2+
title = "New Post"
3+
date = "2025-05-19T00:42:21+01:00"
4+
#dateFormat = "2006-01-02" # This value can be configured for per-post date formatting
5+
author = ""
6+
authorTwitter = "" #do not include @
7+
cover = ""
8+
tags = ["", ""]
9+
keywords = ["", ""]
10+
description = ""
11+
showFullContent = false
12+
readingTime = false
13+
hideComments = false
514
+++
615

716
## Introduction

hugo.toml

Lines changed: 103 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,108 @@
1-
baseURL = 'https://www.codelust.dev/'
2-
languageCode = 'en-GB'
3-
title = 'CodeLust'
4-
theme = "hugo-theme-m10c"
5-
6-
[pagination]
7-
pagerSize = 8
8-
9-
[menu]
10-
[[menu.main]]
11-
identifier = "home"
12-
name = "Home"
13-
url = "/"
14-
weight = 1
15-
[[menu.main]]
16-
identifier = "tags"
17-
name = "Tags"
18-
url = "/tags/"
19-
weight = 2
20-
[[menu.main]]
21-
identifier = "about"
22-
name = "About"
23-
url = "/about/"
24-
weight = 3
1+
baseURL = "https://www.codelust.dev/"
2+
languageCode = "en-GB"
3+
title = "CodeLust"
4+
theme = "terminal"
5+
pagination.pagerSize = 5
6+
7+
# Required for Chroma and the custom syntax highlighting.
8+
[markup.highlight]
9+
noClasses = false
2510

2611
[params]
27-
author = "John Doe"
28-
description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
29-
menu_item_separator = " - "
30-
[[params.social]]
31-
icon = "brand-github"
32-
name = "Github"
33-
url = "https://github.com/gohugoio"
34-
[[params.social]]
35-
icon = "brand-x"
36-
name = "X"
37-
url = "https://twitter.com/gohugoio"
38-
[[params.social]]
39-
icon = "brand-mastodon"
40-
name = "Twitter"
41-
url = "https://twitter.com/gohugoio"
42-
43-
# Default theme
44-
# [params.style]
45-
# darkestColor = "#242930"
46-
# darkColor = "#353b43"
47-
# lightColor = "#afbac4"
48-
# lightestColor = "#ffffff"
49-
# primaryColor = "#57cc8a"
50-
51-
# Green theme
52-
# [params.style]
53-
# darkestColor = "#315659"
54-
# darkColor = "#253031"
55-
# lightColor = "#96a879"
56-
# lightestColor = "#fff"
57-
# primaryColor = "#dad865"
58-
59-
# Red theme
60-
# [params.style]
61-
# darkestColor = "#d35050"
62-
# darkColor = "#212121"
63-
# lightColor = "#d6d6d6"
64-
# lightestColor = "#d3d3d3"
65-
# primaryColor = "#ffffff"
12+
# dir name of your main content (default is `content/posts`).
13+
# the list of set content will show up on your index page (baseurl).
14+
contentTypeName = "posts"
15+
16+
# if you set this to 0, only submenu trigger will be visible
17+
showMenuItems = 2
18+
19+
# show selector to switch language
20+
showLanguageSelector = false
21+
22+
# set theme to full screen width
23+
fullWidthTheme = false
24+
25+
# center theme with default width
26+
centerTheme = false
27+
28+
# if your resource directory contains an image called `cover.(jpg|png|webp)`,
29+
# then the file will be used as a cover automatically.
30+
# With this option you don't have to put the `cover` param in a front-matter.
31+
autoCover = true
32+
33+
# set post to show the last updated
34+
# If you use git, you can set `enableGitInfo` to `true` and then post will automatically get the last updated
35+
showLastUpdated = false
36+
37+
# Provide a string as a prefix for the last update date. By default, it looks like this: 2020-xx-xx [Updated: 2020-xx-xx] :: Author
38+
# updatedDatePrefix = "Updated"
39+
40+
# whether to show a page's estimated reading time
41+
# readingTime = false # default
42+
43+
# whether to show a table of contents
44+
# can be overridden in a page's front-matter
45+
# Toc = false # default
46+
47+
# set title for the table of contents
48+
# can be overridden in a page's front-matter
49+
# TocTitle = "Table of Contents" # default
50+
51+
# Set date/time format for posts
52+
# This will impact the date/time displayed on
53+
# index.html, the posts list page, and on posts themselves
54+
# This value can also be configured per-post on front matter
55+
# If you have any issues with the timezone rendering differently
56+
# than you expected, please ensure your timezone is correctly set
57+
# on your server.
58+
# This value can be customized according to Hugo documentation:
59+
# https://gohugo.io/functions/time/format/
60+
# Default value (no changes needed):
61+
# dateFormat = "2006-01-02"
62+
# Example format, with date, time, and timezone abbreviation:
63+
# dateFormat = "2006-01-02 3:04:06 PM MST"
64+
65+
66+
[params.twitter]
67+
# set Twitter handles for Twitter cards
68+
# see https://developer.twitter.com/en/docs/tweets/optimize-with-cards/guides/getting-started#card-and-content-attribution
69+
# do not include @
70+
creator = ""
71+
site = ""
72+
73+
[languages]
74+
[languages.en]
75+
languageName = "English"
76+
title = "Terminal"
77+
78+
[languages.en.params]
79+
subtitle = "A simple, retro theme for Hugo"
80+
owner = ""
81+
keywords = ""
82+
copyright = ""
83+
menuMore = "Show more"
84+
readMore = "Read more"
85+
readOtherPosts = "Read other posts"
86+
newerPosts = "Newer posts"
87+
olderPosts = "Older posts"
88+
missingContentMessage = "Page not found..."
89+
missingBackButtonLabel = "Back to home page"
90+
minuteReadingTime = "min read"
91+
words = "words"
92+
93+
[languages.en.params.logo]
94+
logoText = "Terminal"
95+
logoHomeLink = "/"
96+
97+
[languages.en.menu]
98+
[[languages.en.menu.main]]
99+
identifier = "about"
100+
name = "About"
101+
url = "/about"
102+
[[languages.en.menu.main]]
103+
identifier = "showcase"
104+
name = "Showcase"
105+
url = "/showcase"
66106

67107
[caches]
68108
[caches.assets]

readme.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,23 @@ Code, Coffee, Metal
55

66
> [!NOTE]
77
> to create a new post, execute `hugo new content content/posts/new-post.md`
8+
> <br/>
9+
> the post template can be updated in `archetypes/posts.md`
810
911
```markdown
1012
+++
11-
title = 'My New Post'
12-
date = 2025-05-18T23:02:01+01:00
13-
draft = true
13+
title = "New Post"
14+
date = "2025-05-19T00:42:21+01:00"
15+
#dateFormat = "2006-01-02" # this value can be configured for per-post date formatting
16+
author = ""
17+
authorTwitter = "" # do not include @
18+
cover = ""
19+
tags = ["", ""]
20+
keywords = ["", ""]
21+
description = ""
22+
showFullContent = false
23+
readingTime = false
24+
hideComments = false
1425
+++
1526

1627
## Introduction
@@ -23,7 +34,6 @@ Visit the [CodeLust](https://www.codelust.dev/) website!
2334
<br/>
2435

2536
> [!NOTE]
26-
> to launch a local server, execute `hugo server`
27-
> optionally, add the `--buildDrafts` or `-D` flag, to include drafts
37+
> to launch a local server, execute `hugo server -t terminal`
2838
2939
<br/>

static/favicon.png

209 Bytes
Loading

0 commit comments

Comments
 (0)