Skip to content

Commit 5bda058

Browse files
committed
setup hugo blog
1 parent 1d80350 commit 5bda058

File tree

1,292 files changed

+95929
-154
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,292 files changed

+95929
-154
lines changed

.github/workflows/hugo.yaml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# Sample workflow for building and deploying a Hugo site to GitHub Pages
2+
name: Deploy Hugo site to Pages
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
push:
7+
branches: ["main"]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Sets 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 latest queued.
19+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20+
concurrency:
21+
group: "pages"
22+
cancel-in-progress: false
23+
24+
# Default to bash
25+
defaults:
26+
run:
27+
shell: bash
28+
29+
jobs:
30+
# Build job
31+
build:
32+
runs-on: ubuntu-latest
33+
env:
34+
HUGO_VERSION: 0.141.0
35+
steps:
36+
- name: Install Hugo CLI
37+
run: |
38+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
39+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
40+
- name: Install Dart Sass
41+
run: sudo snap install dart-sass
42+
- name: Checkout
43+
uses: actions/checkout@v4
44+
with:
45+
submodules: recursive
46+
fetch-depth: 0
47+
- name: Setup Pages
48+
id: pages
49+
uses: actions/configure-pages@v5
50+
- name: Install Node.js dependencies
51+
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
52+
- name: Build with Hugo
53+
env:
54+
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
55+
HUGO_ENVIRONMENT: production
56+
TZ: America/Los_Angeles
57+
run: |
58+
hugo \
59+
--gc \
60+
--minify \
61+
--baseURL "${{ steps.pages.outputs.base_url }}/"
62+
- name: Upload artifact
63+
uses: actions/upload-pages-artifact@v3
64+
with:
65+
path: ./public
66+
67+
# Deployment job
68+
deploy:
69+
environment:
70+
name: github-pages
71+
url: ${{ steps.deployment.outputs.page_url }}
72+
runs-on: ubuntu-latest
73+
needs: build
74+
steps:
75+
- name: Deploy to GitHub Pages
76+
id: deployment
77+
uses: actions/deploy-pages@v4

.github/workflows/static.yml

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

.gitmodules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[submodule "themes/blowfish"]
2+
path = themes/blowfish
3+
url = https://github.com/nunocoracao/blowfish.git
4+
branch = main

.hugo_build.lock

Whitespace-only changes.

CNAME

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
solumath.cz
2-
rubbergod.solumath.cz

README.md

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

assets/background.jpg

519 KB
Loading

assets/pfp.gif

274 KB
Loading

config/_default/hugo.toml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# -- Site Configuration --
2+
# Refer to the theme docs for more details about each of these parameters.
3+
# https://blowfish.page/docs/getting-started/
4+
5+
theme = "blowfish" # UNCOMMENT THIS LINE
6+
baseURL = "https://solumath.cz/"
7+
defaultContentLanguage = "en"
8+
9+
# pluralizeListTitles = "true" # hugo function useful for non-english languages, find out more in https://gohugo.io/getting-started/configuration/#pluralizelisttitles
10+
11+
enableRobotsTXT = true
12+
summaryLength = 0
13+
14+
buildDrafts = false
15+
buildFuture = false
16+
17+
enableEmoji = true
18+
19+
googleAnalytics = "G-VVJTL3H543"
20+
21+
[pagination]
22+
pagerSize = 100
23+
24+
[imaging]
25+
anchor = 'Center'
26+
27+
[taxonomies]
28+
tag = "tags"
29+
category = "categories"
30+
author = "authors"
31+
series = "series"
32+
33+
[sitemap]
34+
changefreq = 'daily'
35+
filename = 'sitemap.xml'
36+
priority = 0.5
37+
38+
[outputs]
39+
home = ["HTML", "RSS", "JSON"]
40+
41+
[related]
42+
threshold = 0
43+
toLower = false
44+
45+
[[related.indices]]
46+
name = "tags"
47+
weight = 100
48+
49+
[[related.indices]]
50+
name = "categories"
51+
weight = 100
52+
53+
[[related.indices]]
54+
name = "series"
55+
weight = 50
56+
57+
[[related.indices]]
58+
name = "authors"
59+
weight = 20
60+
61+
[[related.indices]]
62+
name = "date"
63+
weight = 10
64+
65+
[[related.indices]]
66+
applyFilter = false
67+
name = 'fragmentrefs'
68+
type = 'fragments'
69+
weight = 10

config/_default/languages.en.toml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
disabled = false
2+
languageCode = "en"
3+
languageName = "English"
4+
weight = 1
5+
title = "Solumath"
6+
7+
[params]
8+
displayName = "EN"
9+
isoCode = "en"
10+
rtl = false
11+
dateFormat = "2 January 2006"
12+
# logo = "img/logo.png"
13+
# secondaryLogo = "img/secondary-logo.png"
14+
# description = "My awesome website"
15+
# copyright = "Copy, _right?_ :thinking_face:"
16+
17+
[params.author]
18+
name = "Solumath"
19+
20+
image = "/pfp.gif"
21+
imageQuality = 100
22+
# headline = "Everybody lies."
23+
bio = """I’m a software engineer, and I love working on small,
24+
personal projects that make life a little easier, whether it’s
25+
for me or the people around me."""
26+
links = [
27+
{ email = "mailto:[email protected]" },
28+
# { link = "https://link-to-some-website.com/" },
29+
# { amazon = "https://www.amazon.com/hz/wishlist/ls/wishlist-id" },
30+
# { apple = "https://www.apple.com" },
31+
# { blogger = "https://username.blogspot.com/" },
32+
# { bluesky = "https://bsky.app/profile/username" },
33+
# { codepen = "https://codepen.io/username" },
34+
# { dev = "https://dev.to/username" },
35+
# { discord = "https://discord.gg/invitecode" },
36+
# { dribbble = "https://dribbble.com/username" },
37+
# { facebook = "https://facebook.com/username" },
38+
# { flickr = "https://www.flickr.com/photos/username/" },
39+
# { foursquare = "https://foursquare.com/username" },
40+
{ github = "https://github.com/solumath" },
41+
# { gitlab = "https://gitlab.com/username" },
42+
# { google = "https://www.google.com/" },
43+
# { hashnode = "https://username.hashnode.dev" },
44+
# { instagram = "https://instagram.com/username" },
45+
# { itch-io = "https://username.itch.io" },
46+
# { keybase = "https://keybase.io/username" },
47+
# { kickstarter = "https://www.kickstarter.com/profile/username" },
48+
# { lastfm = "https://lastfm.com/user/username" },
49+
{ linkedin = "https://www.linkedin.com/in/daniel-fajmon/" },
50+
# { mastodon = "https://mastodon.instance/@username" },
51+
# { medium = "https://medium.com/username" },
52+
# { microsoft = "https://www.microsoft.com/" },
53+
# { orcid = "https://orcid.org/userid" },
54+
# { patreon = "https://www.patreon.com/username" },
55+
# { pinterest = "https://pinterest.com/username" },
56+
# { reddit = "https://reddit.com/user/username" },
57+
# { researchgate = "https://www.researchgate.net/profile/username" },
58+
# { slack = "https://workspace.url/team/userid" },
59+
# { snapchat = "https://snapchat.com/add/username" },
60+
# { soundcloud = "https://soundcloud.com/username" },
61+
# { spotify = "https://open.spotify.com/user/userid" },
62+
# { stack-overflow = "https://stackoverflow.com/users/userid/username" },
63+
# { steam = "https://steamcommunity.com/profiles/userid" },
64+
# { telegram = "https://t.me/username" },
65+
# { threads = "https://www.threads.net/@username" },
66+
# { tiktok = "https://tiktok.com/@username" },
67+
# { tumblr = "https://username.tumblr.com" },
68+
# { twitch = "https://twitch.tv/username" },
69+
# { twitter = "https://twitter.com/username" },
70+
# { x-twitter = "https://twitter.com/username" },
71+
# { whatsapp = "https://wa.me/phone-number" },
72+
# { youtube = "https://youtube.com/username" },
73+
# { ko-fi = "https://ko-fi.com/username" },
74+
# { codeberg = "https://codeberg.org/username"},
75+
]

0 commit comments

Comments
 (0)