Skip to content

Commit 8b806e3

Browse files
authored
patch: updated submodule to latest version of dot-org-hugo-theme (#8)
1 parent 6f8fbec commit 8b806e3

12 files changed

Lines changed: 8134 additions & 13338 deletions

File tree

.github/workflows/hugo.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,32 +33,34 @@ jobs:
3333
build:
3434
runs-on: ubuntu-latest
3535
env:
36-
HUGO_VERSION: 0.128.0
36+
HUGO_VERSION: 0.154.5
3737
steps:
3838
- name: Install Hugo CLI
3939
run: |
4040
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
4141
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
42+
4243
- name: Install Dart Sass
4344
run: sudo snap install dart-sass
45+
4446
- name: Checkout
4547
uses: actions/checkout@v4
4648
with:
4749
submodules: recursive
50+
4851
- name: Setup Pages
4952
id: pages
5053
uses: actions/configure-pages@v5
54+
5155
- name: Install Node.js dependencies
5256
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
5357
- name: Build with Hugo
5458
env:
5559
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
5660
HUGO_ENVIRONMENT: production
5761
run: |
58-
hugo \
59-
--minify \
60-
--baseURL "${{ steps.pages.outputs.base_url }}/"
61-
npm_config_yes=true npx pagefind --site 'public' --output-path 'public/pagefind'
62+
npm run build:prod
63+
6264
- name: Upload artifact
6365
uses: actions/upload-pages-artifact@v3
6466
with:

Makefile

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

README.md

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,20 @@ npm install
4343
4. Build the site:
4444

4545
```bash
46-
npm run build
46+
npm run build:dev
4747
```
4848

4949
5. Start the local server with live reload:
5050

5151
```bash
52-
npm run start
52+
npm run dev:start
5353
```
5454

5555
## Other npm commands for working with a local instance
5656

57-
- `npm run dev:start` - Starts the local dev environment using exampleSite
58-
- `npm run dev:start:with-pagefind` - Starts the local dev environment using exampleSite with working pagefind search
59-
- `npm run dev:build` - Builds the site using exampleSite
57+
- `npm run dev:start` - Starts the local dev environment (without pagefind)
58+
- `npm run dev:build` - Builds the site for dev environment
59+
- `npm run dev:prod` - Builds the site for prod envirionment
6060

6161
### To run in docker
6262

@@ -72,18 +72,8 @@ If modifying the theme files, you should never edit the theme that is imported v
7272

7373
## Updating the theme
7474

75-
Some brief notes on how to update the theme:
76-
7775
From the site root:
7876

7977
```
80-
git submodule init
81-
git submodule update
82-
cd themes/dot-org-hugo-theme
83-
git fetch
84-
git checkout main
85-
git pull origin main
86-
cd ../..
87-
git add themes/dot-org-hugo-theme
88-
git commit -m "Updated submodule to the latest version of dot-org-hugo-theme" -s
78+
git submodule update --init --recursive
8979
```

config/_default/hugo.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
######################## default configuration ####################
22
# Your theme name
3-
theme: dot-org-hugo-theme
3+
theme: "dot-org-hugo-theme"
44
# Title of your website (required).
55
title: "FodyDev // Promoting African culture through the opensource."
66
# Default time zone for time stamps; use any valid tz database name: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
77
timeZone: "Africa/Douala"
8+
# Defines the minimum amount of words to reddened in a summary
9+
summaryLength: 50
810

911
######################## i18n ####################
1012
# Auto-detect Chinese/Japanese/Korean Languages in the content. see: https://gohugo.io/getting-started/configuration/#hascjklanguage
11-
hasCJKLanguage: true
13+
hasCJKLanguage: false
1214
# Set default content directory for multilingual
1315
contentDir: content/en/
1416
# Set fallback if international version is not available
@@ -23,3 +25,8 @@ privacy:
2325
privacyEnhanced: true
2426
vimeo:
2527
enableDNT: true
28+
29+
markup:
30+
goldmark:
31+
renderer:
32+
unsafe: true

config/_default/params.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ social_links:
2626
linkedin: "https://www.linkedin.com/company/fodydev/"
2727
mastodon: ""
2828
pinterest: ""
29-
rss: "https://fodydev.org/index.xml"
29+
rss: ""
3030
slack: ""
3131
stackoverflow: ""
3232
threads: ""

content/en/_index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
2+
title: Home
3+
description: FodyDev is an opensource organization who wants to promote the building of opensource technologies to valorize the African culture.
24
showHeader: false
35
---
46

5-
# FodyDev is an opensource organization who wants to promote the building of opensource technologies to valorize the African culture. We believe that, in working openly we can have archieve more.
7+
# This file is used to pass params to the index/home.

content/fr/_index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
2+
title: Acceuil
3+
description: FodyDev est une organisation open source qui souhaite encourager le développement de technologies libres pour valoriser la culture africaine.
24
showHeader: false
35
---
46

5-
# FodyDev est une organisation open source qui souhaite encourager le développement de technologies libres pour valoriser la culture africaine. Nous croyons qu’en travaillant de manière ouverte, nous pouvons accomplir plus.
7+
# This file is used to pass params to the index/home.

layouts/_default/rss.xml

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

layouts/partials/head/custom-head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{{ else }}
77
{{ $options = merge $options (dict "outputStyle" "nested" "enableSourceMap" true) }}
88
{{ end }}
9-
{{ $style := resources.Get $source | resources.ToCSS $options | resources.PostCSS (dict "config" "postcss.config.js") | resources.Fingerprint "sha512" }}
9+
{{ $style := resources.Get $source | toCSS $options | postCSS (dict "config" "postcss.config.js") | resources.Fingerprint "sha512" }}
1010
{{ if (eq .Kind "home") }}
1111
<link rel="stylesheet" href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}" media="all">
1212
{{ end }}

0 commit comments

Comments
 (0)