Skip to content

Commit 8de19f0

Browse files
committed
update
1 parent bf276fb commit 8de19f0

File tree

4 files changed

+18
-22
lines changed

4 files changed

+18
-22
lines changed

.github/workflows/hugo.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,19 @@ jobs:
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
@@ -59,6 +63,7 @@ jobs:
5963
--minify \
6064
--baseURL "${{ steps.pages.outputs.base_url }}/"
6165
npm_config_yes=true npx pagefind --site 'public' --output-path 'public/pagefind'
66+
6267
- name: Upload artifact
6368
uses: actions/upload-pages-artifact@v3
6469
with:

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 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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ privacy:
2424
vimeo:
2525
enableDNT: true
2626

27-
+markup:
28-
+ goldmark:
29-
+ renderer:
30-
+ unsafe: true
27+
markup:
28+
goldmark:
29+
renderer:
30+
unsafe: true

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
"description": "",
55
"main": "none.js",
66
"scripts": {
7-
"serve": "hugo --theme=dot-org-hugo-theme",
8-
"build:dev": "hugo --buildDrafts --buildFuture --minify && npx -y pagefind --site public",
7+
"start": "hugo server --disableFastRender --ignoreCache --printI18nWarnings --printMemoryUsage --printPathWarnings --printUnusedTemplates --templateMetrics --templateMetricsHints --gc",
8+
"start:with-pagefind": "hugo --baseURL=/ && npx -y pagefind --site public --output-path static/pagefind && npm start",
9+
"build:dev": "hugo --buildDrafts --buildFuture --baseURL=/ && npx -y pagefind --site public",
910
"build:prod": "hugo --minify && npx -y pagefind --site public"
1011
},
1112
"repository": {

0 commit comments

Comments
 (0)