Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,32 +33,34 @@ jobs:
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.128.0
HUGO_VERSION: 0.154.5
steps:
- name: Install Hugo CLI
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb

- name: Install Dart Sass
run: sudo snap install dart-sass

- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Setup Pages
id: pages
uses: actions/configure-pages@v5

- name: Install Node.js dependencies
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
- name: Build with Hugo
env:
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
HUGO_ENVIRONMENT: production
run: |
hugo \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
npm_config_yes=true npx pagefind --site 'public' --output-path 'public/pagefind'
npm run build:prod

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down
28 changes: 0 additions & 28 deletions Makefile

This file was deleted.

22 changes: 6 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,20 @@ npm install
4. Build the site:

```bash
npm run build
npm run build:dev
```

5. Start the local server with live reload:

```bash
npm run start
npm run dev:start
```

## Other npm commands for working with a local instance

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

### To run in docker

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

## Updating the theme

Some brief notes on how to update the theme:

From the site root:

```
git submodule init
git submodule update
cd themes/dot-org-hugo-theme
git fetch
git checkout main
git pull origin main
cd ../..
git add themes/dot-org-hugo-theme
git commit -m "Updated submodule to the latest version of dot-org-hugo-theme" -s
git submodule update --init --recursive
```
11 changes: 9 additions & 2 deletions config/_default/hugo.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
######################## default configuration ####################
# Your theme name
theme: dot-org-hugo-theme
theme: "dot-org-hugo-theme"
# Title of your website (required).
title: "FodyDev // Promoting African culture through the opensource."
# Default time zone for time stamps; use any valid tz database name: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
timeZone: "Africa/Douala"
# Defines the minimum amount of words to reddened in a summary
summaryLength: 50

######################## i18n ####################
# Auto-detect Chinese/Japanese/Korean Languages in the content. see: https://gohugo.io/getting-started/configuration/#hascjklanguage
hasCJKLanguage: true
hasCJKLanguage: false
# Set default content directory for multilingual
contentDir: content/en/
# Set fallback if international version is not available
Expand All @@ -23,3 +25,8 @@ privacy:
privacyEnhanced: true
vimeo:
enableDNT: true

markup:
goldmark:
renderer:
unsafe: true
2 changes: 1 addition & 1 deletion config/_default/params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ social_links:
linkedin: "https://www.linkedin.com/company/fodydev/"
mastodon: ""
pinterest: ""
rss: "https://fodydev.org/index.xml"
rss: ""
slack: ""
stackoverflow: ""
threads: ""
Expand Down
4 changes: 3 additions & 1 deletion content/en/_index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Home
description: FodyDev is an opensource organization who wants to promote the building of opensource technologies to valorize the African culture.
showHeader: false
---

# 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.
# This file is used to pass params to the index/home.
4 changes: 3 additions & 1 deletion content/fr/_index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Acceuil
description: FodyDev est une organisation open source qui souhaite encourager le développement de technologies libres pour valoriser la culture africaine.
showHeader: false
---

# 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.
# This file is used to pass params to the index/home.
17 changes: 0 additions & 17 deletions layouts/_default/rss.xml

This file was deleted.

2 changes: 1 addition & 1 deletion layouts/partials/head/custom-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{{ else }}
{{ $options = merge $options (dict "outputStyle" "nested" "enableSourceMap" true) }}
{{ end }}
{{ $style := resources.Get $source | resources.ToCSS $options | resources.PostCSS (dict "config" "postcss.config.js") | resources.Fingerprint "sha512" }}
{{ $style := resources.Get $source | toCSS $options | postCSS (dict "config" "postcss.config.js") | resources.Fingerprint "sha512" }}
{{ if (eq .Kind "home") }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}" media="all">
{{ end }}
Expand Down
Loading