Skip to content

Hugo setup #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
37 changes: 37 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Hugo generated files
public/
resources/
.hugo_build.lock

# OS files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

# Editor files
.vscode/
.idea/
*.swp
*.swo
*~

# Temporary files
*.tmp
*.temp

# Node.js (if using npm/yarn for asset processing)
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Local environment files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "themes/blowfish"]
path = themes/blowfish
url = https://github.com/nunocoracao/blowfish.git
branch = main
5 changes: 5 additions & 0 deletions archetypes/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
+++
date = '{{ .Date }}'
draft = true
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
+++
88 changes: 88 additions & 0 deletions config/_default/hugo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# -- Site Configuration --
# Refer to the theme docs for more details about each of these parameters.
# https://blowfish.page/docs/getting-started/

theme = "blowfish"
baseURL = "https://coderdojo.org.pl"
defaultContentLanguage = "pl"
disableLanguages = [] #to allow translation work requiring shipping to production

# pluralizeListTitles = "true" # hugo function useful for non-english languages, find out more in https://gohugo.io/getting-started/configuration/#pluralizelisttitles

enableRobotsTXT = true
summaryLength = 30
hasCJKLanguage = true

buildDrafts = false
buildFuture = false

enableEmoji = true

# googleAnalytics = "G-XXXXXXXXXX" # Add your Google Analytics ID when ready

[pagination]
pagerSize = 102

[imaging]
anchor = 'Center'

[taxonomies]
tag = "tags"
category = "categories"
author = "authors"
series = "series"

[sitemap]
changefreq = 'always'
filename = 'sitemap.xml'
priority = 0.5

[outputs]
home = ["HTML", "RSS", "JSON"]

[related]
threshold = 0
toLower = false

[[related.indices]]
name = "tags"
weight = 100

[[related.indices]]
name = "categories"
weight = 100

[[related.indices]]
name = "series"
weight = 50

[[related.indices]]
name = "authors"
weight = 20

[[related.indices]]
name = "date"
weight = 10

[[related.indices]]
applyFilter = false
name = 'fragmentrefs'
type = 'fragments'
weight = 10

# Render only specific parts of the site for faster development.
# Note that there are more files are ignored in development/hugo.toml
#
# Usage: `hugo --renderSegments core` or `hugo --renderSegments core,en_only`
[segments]
[segments.core]
[[segments.core.includes]]
# Debug core pages
path = '{/,/docs,/docs/**,/samples,/samples/**}'
[segments.en_only]
[[segments.en_only.includes]]
# Alternatively, you can use environment variable
# - UNIX: HUGO_DISABLELANGUAGES='it ja zh-cn' npm run example:core
# - Windows CMD: set "HUGO_DISABLELANGUAGES=it ja zh-cn" && npm run example:core
# - Windows PowerShell: $env:HUGO_DISABLELANGUAGES="it ja zh-cn"; npm run example:core
lang = 'en'
22 changes: 22 additions & 0 deletions config/_default/languages.en.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
languageCode = "pl"
languageName = "Polski"
weight = 1
title = "Warto zostać wolontariuszem!"

[params]
displayName = "Polski"
isoCode = "pl"
rtl = false
dateFormat = "2 January 2006"
# logo = "img/logo.png" # Add your logo when ready
description = "Robisz coś dobrego – dla innych i dla siebie. Dołącz do ludzi, którzy chcą zmieniać świat technologią."

[params.author]
name = "Fundacja CoderDojo Polska"
email = "[email protected]"
# image = "img/author.png" # Add author image when ready
headline = "Empowering volunteers through coding education"
bio = "Fundacja CoderDojo Polska • KRS: 0000461036"
links = [
# { github = "https://github.com/coderdojo-org-pl" }, # Add your GitHub link when ready
]
22 changes: 22 additions & 0 deletions config/_default/languages.it.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
languageCode = "it"
languageName = "Italiano"
weight = 2
title = "Blowfish"

[params]
displayName = "Italiano"
isoCode = "it"
rtl = false
dateFormat = "2 January 2006"
logo = "img/blowfish_logo_transparent.png"
description = "Un potente, leggero tema per Hugo."

[params.author]
name = "Blowfish"
image = "img/blowfish_logo.png"
headline = "Un potente, leggero tema per Hugo."
bio = "Un potente, leggero tema per Hugo."
links = [
{ x-twitter = "https://twitter.com/burufugu" },
{ github = "https://github.com/nunocoracao/blowfish" },
]
23 changes: 23 additions & 0 deletions config/_default/languages.ja.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
languageCode = "ja"
languageName = "日本語"
weight = 3
title = "Blowfish"

[params]
displayName = "日本語"
isoCode = "ja"
rtl = false
dateFormat = "2006-01-02"
logo = "img/blowfish_logo_transparent.png"
description = "強力で、軽量な Hugo のテーマです。"

[params.author]
name = "Blowfish"
email = "[email protected]"
image = "img/blowfish_logo.png"
headline = "強力で、軽量な Hugo のテーマです。"
bio = "強力で、軽量な Hugo のテーマです。"
links = [
{ x-twitter = "https://twitter.com/burufugu" },
{ github = "https://github.com/nunocoracao/blowfish" },
]
22 changes: 22 additions & 0 deletions config/_default/languages.pl.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
languageCode = "pl"
languageName = "Polski"
weight = 1
title = "Warto zostać wolontariuszem!"

[params]
displayName = "Polski"
isoCode = "pl"
rtl = false
dateFormat = "2 January 2006"
# logo = "img/logo.png" # Add your logo when ready
description = "Robisz coś dobrego – dla innych i dla siebie. Dołącz do ludzi, którzy chcą zmieniać świat technologią."

[params.author]
name = "Fundacja CoderDojo Polska"
email = "[email protected]"
# image = "img/author.png" # Add author image when ready
headline = "Empowering volunteers through coding education"
bio = "Fundacja CoderDojo Polska • KRS: 0000461036"
links = [
# { github = "https://github.com/coderdojo-org-pl" }, # Add your GitHub link when ready
]
22 changes: 22 additions & 0 deletions config/_default/languages.zh-cn.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
languageCode = "zh-cn"
languageName = "简体中文"
weight = 4
title = "Blowfish"

[params]
displayName = "简体中文"
isoCode = "zh-cn"
rtl = false
dateFormat = "2006-01-02"
logo = "img/blowfish_logo_transparent.png"
description = "一个强大、轻量级的 Hugo 主题。"

[params.author]
name = "Blowfish"
image = "img/blowfish_logo.png"
headline = "一个强大、轻量级的 Hugo 主题。"
bio = "一个强大、轻量级的 Hugo 主题。"
links = [
{ x-twitter = "https://twitter.com/burufugu" },
{ github = "https://github.com/nunocoracao/blowfish" },
]
20 changes: 20 additions & 0 deletions config/_default/markup.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -- Markup --
# These settings are required for the theme to function.

[goldmark]
[goldmark.renderer]
unsafe = true

[goldmark.extensions]
[goldmark.extensions.passthrough]
enable = true
[goldmark.extensions.passthrough.delimiters]
block = [['\[', '\]'], ['$$', '$$']]
inline = [['\(', '\)']]

[highlight]
noClasses = false

[tableOfContents]
startLevel = 2
endLevel = 4
67 changes: 67 additions & 0 deletions config/_default/menus.en.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# -- Main Menu --
# The main menu is displayed in the header at the top of the page.
# Acceptable parameters are name, pageRef, page, url, title, weight.
#
# The simplest menu configuration is to provide:
# name = The name to be displayed for this menu link
# pageRef = The identifier of the page or section to link to
#
# By default the menu is ordered alphabetically. This can be
# overridden by providing a weight value. The menu will then be
# ordered by weight from lowest to highest.

[[main]]
name = "Home"
pageRef = "/"
weight = 10

[[main]]
name = "O nas"
pageRef = "about"
weight = 20

[[main]]
name = "Wolontariat"
pageRef = "volunteer"
weight = 30

[[main]]
name = "Historia"
pageRef = "legacy"
weight = 40

[[main]]
name = "Kontakt"
pageRef = "contact"
weight = 50

# Add social media links when ready
#[[main]]
# identifier = "github"
# pre = "github"
# url = "https://github.com/coderdojo-org-pl"
# weight = 100

# -- Footer Menu --
# The footer menu is displayed at the bottom of the page, just before
# the copyright notice. Configure as per the main menu above.

[[footer]]
name = "O nas"
pageRef = "about"
weight = 10

[[footer]]
name = "Wolontariat"
pageRef = "volunteer"
weight = 20

[[footer]]
name = "Historia"
pageRef = "legacy"
weight = 30

[[footer]]
name = "Kontakt"
pageRef = "contact"
weight = 40
Loading