Skip to content

Commit 851531d

Browse files
committed
Apply .GITIGNORE, Part 2
1 parent ff62f98 commit 851531d

File tree

10 files changed

+244
-0
lines changed

10 files changed

+244
-0
lines changed

.github/workflows/hugo.yaml

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
name: Deploy Hugo Site To GitHub Pages
2+
3+
on:
4+
# run on pushes, targeting the default branch
5+
push:
6+
branches:
7+
- main
8+
9+
# allow the workflow to be started manually from the GitHub Actions tab
10+
workflow_dispatch:
11+
12+
# set permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# allow only one concurrent deployment, skipping runs queued between the run in progress and the latest run queued
19+
# however, do not cancel in-progress runs, in order to allow these production deployments to complete
20+
concurrency:
21+
group: "pages"
22+
cancel-in-progress: false
23+
24+
# default to bash shell
25+
defaults:
26+
run:
27+
shell: bash
28+
29+
jobs:
30+
build:
31+
runs-on: ubuntu-latest
32+
env:
33+
HUGO_VERSION: 0.147.3
34+
HUGO_ENVIRONMENT: production
35+
TZ: Europe/London
36+
steps:
37+
- name: Install Hugo CLI
38+
run: |
39+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
40+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
41+
- name: Install Dart SASS
42+
run: sudo snap install dart-sass
43+
- name: Check Out Solution
44+
uses: actions/checkout@v4
45+
with:
46+
submodules: recursive
47+
fetch-depth: 0
48+
- name: Configure Pages
49+
id: pages
50+
uses: actions/configure-pages@v5
51+
- name: Install Node.JS Dependencies
52+
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
53+
- name: Restore Cache
54+
id: cache-restore
55+
uses: actions/cache/restore@v4
56+
with:
57+
path: |
58+
${{ runner.temp }}/hugo_cache
59+
key: hugo-${{ github.run_id }}
60+
restore-keys:
61+
hugo-
62+
- name: Configure Git
63+
run: git config core.quotepath false
64+
- name: Build With Hugo
65+
run: |
66+
hugo \
67+
--gc \
68+
--minify \
69+
--baseURL "${{ steps.pages.outputs.base_url }}/" \
70+
--cacheDir "${{ runner.temp }}/hugo_cache"
71+
- name: Save Cache
72+
id: cache-save
73+
uses: actions/cache/save@v4
74+
with:
75+
path: |
76+
${{ runner.temp }}/hugo_cache
77+
key: ${{ steps.cache-restore.outputs.cache-primary-key }}
78+
- name: Upload Pages Artefact
79+
uses: actions/upload-pages-artifact@v3
80+
with:
81+
path: ./public
82+
83+
deploy:
84+
environment:
85+
name: github-pages
86+
url: ${{ steps.deployment.outputs.page_url }}
87+
runs-on: ubuntu-latest
88+
needs: build
89+
steps:
90+
- name: Deploy To GitHub Pages
91+
id: deployment
92+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# generated files
2+
/public/
3+
/resources/_gen/
4+
/assets/jsconfig.json
5+
hugo.log
6+
hugo_stats.json
7+
8+
# executables
9+
hugo.exe
10+
hugo.darwin
11+
hugo.linux
12+
13+
# temporary files
14+
/.hugo_build.lock

.gitmodules

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

CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
www.codelust.dev

archetypes/default.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
+++
2+
date = '{{ .Date }}'
3+
draft = true
4+
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
5+
+++

backup/hugo-theme-m10c.zip

5.32 MB
Binary file not shown.

content/posts/new-post.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
+++
2+
date = '2025-05-18T23:14:36+01:00'
3+
draft = true
4+
title = 'New Post'
5+
+++
6+
7+
## Introduction
8+
9+
This is **bold** text, and this is *emphasized* text.
10+
11+
Visit the [CodeLust](https://www.codelust.dev/) website!

hugo.toml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
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
25+
26+
[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"
66+
67+
[caches]
68+
[caches.assets]
69+
dir = ':cacheDir/assets'
70+
maxAge = -1
71+
[caches.getcsv]
72+
dir = ':cacheDir/:project'
73+
maxAge = -1
74+
[caches.getjson]
75+
dir = ':cacheDir/:project'
76+
maxAge = -1
77+
[caches.getresource]
78+
dir = ':cacheDir/:project'
79+
maxAge = -1
80+
[caches.images]
81+
dir = ':cacheDir/images'
82+
maxAge = -1
83+
[caches.misc]
84+
dir = ':cacheDir/:project'
85+
maxAge = -1
86+
[caches.modules]
87+
dir = ':cacheDir/modules'
88+
maxAge = -1

readme.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# www.codelust.dev
2+
Code, Coffee, Metal
3+
4+
<br/>
5+
6+
> [!NOTE]
7+
> to create a new post, execute `hugo new content content/posts/new-post.md`
8+
9+
```markdown
10+
+++
11+
title = 'My New Post'
12+
date = 2025-05-18T23:02:01+01:00
13+
draft = true
14+
+++
15+
16+
## Introduction
17+
18+
This is **bold** text, and this is *emphasized* text.
19+
20+
Visit the [CodeLust](https://www.codelust.dev/) website!
21+
```
22+
23+
<br/>
24+
25+
> [!NOTE]
26+
> to launch a local server, execute `hugo server`
27+
> optionally, add the `--buildDrafts` or `-D` flag, to include drafts
28+
29+
<br/>

themes/hugo-theme-m10c

Submodule hugo-theme-m10c added at 862c6e9

0 commit comments

Comments
 (0)