Skip to content

Commit 7758165

Browse files
committed
Hugo
1 parent c4867a4 commit 7758165

27 files changed

Lines changed: 199 additions & 151 deletions

.editorconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
root = true
2+
[{*.{md,py,js,css,toml},.editorconfig}]
3+
indent_style = tab
4+
[{*.{yaml,yml,json,html}}]
5+
indent_style = space
6+
indent_size = 2

.github/workflows/deploy.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
name: Deploy
22
on:
33
push:
4-
paths: ["content/**", "static/**", "langs/**", "templates/**", "config.toml"]
4+
paths: ["archetypes/**", "assets/**", "content/**", "data/**", "demo/**", "i18n/**", "layouts/**", "static/**", "themes/**", "hugo.toml"]
55
branches: [main]
66
pull_request:
7-
paths: ["content/**", "static/**", "langs/**", "templates/**", "config.toml"]
7+
paths: ["archetypes/**", "assets/**", "content/**", "data/**", "demo/**", "i18n/**", "layouts/**", "static/**", "themes/**", "hugo.toml"]
88
workflow_dispatch:
99

1010
env:
11+
HUGO_VERSION: 0.147.8
1112
# Build directory where the website will run its build. Use the dot (period) to use current.
1213
builddir: .
1314
# Output directory where built files will deploy. This also will be used on Pagefind search generation.
1415
outdir: HTML
1516

17+
# Default to bash
1618
defaults:
1719
run:
1820
shell: bash
21+
1922
jobs:
2023
build-and-deploy:
2124
runs-on: ubuntu-latest
@@ -24,12 +27,17 @@ jobs:
2427
uses: actions/checkout@v4
2528
with:
2629
submodules: recursive
30+
fetch-depth: 0
2731
- name: Install
28-
uses: taiki-e/install-action@zola
32+
run: |
33+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
34+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
2935
- name: Install Python Requirements
3036
run: pip install pagefind[extended]
3137
- name: Build
32-
run: zola -r "${{ env.builddir }}" build
38+
run: |
39+
cd ${{ env.builddir }}
40+
hugo \
3341
# Ignore below name if you do not use pagefind.
3442
- name: Generate Pagefind Search
3543
run: python -m pagefind --site ${{ env.outdir }}

.gitmodules

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

.hugo_build.lock

Whitespace-only changes.

build.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
@echo off
2-
title Building
3-
zola build
2+
title building
3+
hugo
44
pause

config.toml

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

config/_default/markup.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[goldmark]
2+
[goldmark.extensions]
3+
[goldmark.extensions.typographer]
4+
disable = true
5+
[goldmark.renderer]
6+
unsafe = true
7+
[highlight]
8+
codeFences = false

content/articles/_index.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
+++
22
title = "Articles"
3-
template = "section_paginated.html"
4-
page_template = "blogpage.html"
5-
sort_by = "update_date"
6-
paginate_by = 10
73
+++
84
# Articles
95
Here I will share useful articles.

content/articles/free-web-host-providers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@ Choosing the best provider will depend entirely on your specific requirements an
5151
* Choose GitHub if you want a reliable uptime experience, faster web load times, and are comfortable with your content being visible to the public.
5252
* Choose GitHub if you want to automate your builds, write in Markdown files for deployment, and don’t require a database. You can utilize static site generators to build and deploy your site automatically.
5353
* Choose InfinityFree if you want to keep your content hidden from the public, utilize CMS software, work with databases, and use server-side languages like PHP. It offers 5 GB of storage space for free, with the option to upgrade to premium plans for additional features.
54-
55-
You can also use GitHub to build your website through a static site generator, and then have the FTP GitHub action uploaded to the server using FTP, with addition of GitHub's secrets feature to securely store usernames and passwords.
54+
55+
You can also use GitHub to build your website through a static site generator, and then have the FTP GitHub action uploaded to the server using FTP, with addition of GitHub's secrets feature to securely store usernames and passwords.

content/articles/hugo-about.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Due to its flexible framework, multilingual support, and powerful taxonomy syste
1919
* And many more features!
2020

2121
## Notes
22-
* Hugo is not simple as [Cobalt](@/articles/cobalt-about.md) and [Zola](@/articles/zola-about.md), but it provides many more features and full multilingual / taxonomy support.
22+
* Hugo is not simple as [Cobalt]({{% relref "cobalt-about.md" %}}) and [Zola]({{% relref "zola-about.md" %}}), but it provides many more features and full multilingual / taxonomy support.
2323
* Because of Zola's easy templating engine, it could become one of the world's most popular static site generators in the future.
2424
* Learning Hugo will take time, especially with its vast documentation and professional features.
2525

0 commit comments

Comments
 (0)