Initial hugo/congo setup
see https://jpanther.github.io/congo/ and https://gohugo.io/documentation/
This commit is contained in:
commit
6cb647c7d4
10 changed files with 223 additions and 0 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
.*.swp
|
||||||
|
.hugo_build.lock
|
||||||
|
/public/
|
6
archetypes/default.md
Normal file
6
archetypes/default.md
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
title: "{{ replace .Name "-" " " | title }}"
|
||||||
|
date: {{ .Date }}
|
||||||
|
draft: true
|
||||||
|
---
|
||||||
|
|
13
config/_default/config.toml
Normal file
13
config/_default/config.toml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
# -- Site Configuration --
|
||||||
|
# Refer to the theme docs for more details about each of these parameters.
|
||||||
|
# https://jpanther.github.io/congo/docs/getting-started/
|
||||||
|
|
||||||
|
# baseURL = "https://your_domain.com/"
|
||||||
|
defaultContentLanguage = "en"
|
||||||
|
|
||||||
|
enableRobotsTXT = true
|
||||||
|
paginate = 10
|
||||||
|
summaryLength = 0
|
||||||
|
|
||||||
|
[outputs]
|
||||||
|
home = ["HTML", "RSS", "JSON"]
|
64
config/_default/languages.en.toml
Normal file
64
config/_default/languages.en.toml
Normal file
|
@ -0,0 +1,64 @@
|
||||||
|
languageCode = "en"
|
||||||
|
languageName = "English"
|
||||||
|
displayName = "EN"
|
||||||
|
isoCode = "en"
|
||||||
|
weight = 1
|
||||||
|
rtl = false
|
||||||
|
|
||||||
|
title = "Congo"
|
||||||
|
# description = "My awesome website"
|
||||||
|
# copyright = "Copy, _right?_ :thinking_face:"
|
||||||
|
|
||||||
|
dateFormat = "2 January 2006"
|
||||||
|
|
||||||
|
[params]
|
||||||
|
# mainSections = ["section1", "section2"]
|
||||||
|
|
||||||
|
[author]
|
||||||
|
# name = "Your name here"
|
||||||
|
# image = "img/author.jpg"
|
||||||
|
# headline = "I'm only human"
|
||||||
|
# bio = "A little bit about you"
|
||||||
|
# links = [
|
||||||
|
# { email = "mailto:hello@your_domain.com" },
|
||||||
|
# { link = "https://link-to-some-website.com/" },
|
||||||
|
# { amazon = "https://www.amazon.com/hz/wishlist/ls/wishlist-id" },
|
||||||
|
# { apple = "https://www.apple.com" },
|
||||||
|
# { blogger = "https://username.blogspot.com/" },
|
||||||
|
# { codepen = "https://codepen.io/username" },
|
||||||
|
# { dev = "https://dev.to/username" },
|
||||||
|
# { discord = "https://discord.gg/invitecode" },
|
||||||
|
# { dribbble = "https://dribbble.com/username" },
|
||||||
|
# { facebook = "https://facebook.com/username" },
|
||||||
|
# { flickr = "https://www.flickr.com/photos/username/" },
|
||||||
|
# { foursquare = "https://foursquare.com/username" },
|
||||||
|
# { github = "https://github.com/username" },
|
||||||
|
# { gitlab = "https://gitlab.com/username" },
|
||||||
|
# { google = "https://www.google.com/" },
|
||||||
|
# { hashnode = "https://username.hashnode.dev" },
|
||||||
|
# { instagram = "https://instagram.com/username" },
|
||||||
|
# { keybase = "https://keybase.io/username" },
|
||||||
|
# { kickstarter = "https://www.kickstarter.com/profile/username" },
|
||||||
|
# { lastfm = "https://lastfm.com/user/username" },
|
||||||
|
# { linkedin = "https://linkedin.com/in/username" },
|
||||||
|
# { mastodon = "https://mastodon.instance/@username" },
|
||||||
|
# { medium = "https://medium.com/username" },
|
||||||
|
# { microsoft = "https://www.microsoft.com/" },
|
||||||
|
# { orcid = "https://orcid.org/userid" },
|
||||||
|
# { patreon = "https://www.patreon.com/username" },
|
||||||
|
# { pinterest = "https://pinterest.com/username" },
|
||||||
|
# { reddit = "https://reddit.com/user/username" },
|
||||||
|
# { researchgate = "https://www.researchgate.net/profile/username" },
|
||||||
|
# { slack = "https://workspace.url/team/userid" },
|
||||||
|
# { snapchat = "https://snapchat.com/add/username" },
|
||||||
|
# { soundcloud = "https://soundcloud.com/username" },
|
||||||
|
# { stack-overflow = "https://stackoverflow.com/users/userid/username" },
|
||||||
|
# { steam = "https://steamcommunity.com/profiles/userid" },
|
||||||
|
# { telegram = "https://t.me/username" },
|
||||||
|
# { tiktok = "https://tiktok.com/@username" },
|
||||||
|
# { tumblr = "https://username.tumblr.com" },
|
||||||
|
# { twitch = "https://twitch.tv/username" },
|
||||||
|
# { twitter = "https://twitter.com/username" },
|
||||||
|
# { whatsapp = "https://wa.me/phone-number" },
|
||||||
|
# { youtube = "https://youtube.com/username" },
|
||||||
|
# ]
|
13
config/_default/markup.toml
Normal file
13
config/_default/markup.toml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
# -- Markup --
|
||||||
|
# These settings are required for the theme to function.
|
||||||
|
|
||||||
|
[goldmark]
|
||||||
|
[goldmark.renderer]
|
||||||
|
unsafe = true
|
||||||
|
|
||||||
|
[highlight]
|
||||||
|
noClasses = false
|
||||||
|
|
||||||
|
[tableOfContents]
|
||||||
|
startLevel = 2
|
||||||
|
endLevel = 4
|
41
config/_default/menus.en.toml
Normal file
41
config/_default/menus.en.toml
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
# -- 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 = "Blog"
|
||||||
|
pageRef = "posts"
|
||||||
|
weight = 10
|
||||||
|
|
||||||
|
[[main]]
|
||||||
|
name = "Categories"
|
||||||
|
pageRef = "categories"
|
||||||
|
weight = 20
|
||||||
|
|
||||||
|
[[main]]
|
||||||
|
name = "Tags"
|
||||||
|
pageRef = "tags"
|
||||||
|
weight = 30
|
||||||
|
|
||||||
|
[[main]]
|
||||||
|
identifier = "search"
|
||||||
|
weight = 99
|
||||||
|
[main.params]
|
||||||
|
action = "search"
|
||||||
|
|
||||||
|
# -- 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 = "Tags"
|
||||||
|
# pageRef = "tags"
|
||||||
|
# weight = 10
|
2
config/_default/module.toml
Normal file
2
config/_default/module.toml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[[imports]]
|
||||||
|
path = "github.com/jpanther/congo/v2"
|
74
config/_default/params.toml
Normal file
74
config/_default/params.toml
Normal file
|
@ -0,0 +1,74 @@
|
||||||
|
# -- Theme Options --
|
||||||
|
# These options control how the theme functions and allow you to
|
||||||
|
# customise the display of your website.
|
||||||
|
#
|
||||||
|
# Refer to the theme docs for more details about each of these parameters.
|
||||||
|
# https://jpanther.github.io/congo/docs/configuration/#theme-parameters
|
||||||
|
|
||||||
|
colorScheme = "congo"
|
||||||
|
defaultAppearance = "light" # valid options: light or dark
|
||||||
|
autoSwitchAppearance = true
|
||||||
|
|
||||||
|
enableSearch = false
|
||||||
|
enableCodeCopy = false
|
||||||
|
|
||||||
|
# robots = ""
|
||||||
|
|
||||||
|
[header]
|
||||||
|
layout = "basic" # valid options: basic, hamburger, hybrid, custom
|
||||||
|
# logo = "img/logo.jpg"
|
||||||
|
showTitle = true
|
||||||
|
|
||||||
|
[footer]
|
||||||
|
showCopyright = true
|
||||||
|
showThemeAttribution = true
|
||||||
|
showAppearanceSwitcher = false
|
||||||
|
showScrollToTop = true
|
||||||
|
|
||||||
|
[homepage]
|
||||||
|
layout = "page" # valid options: page, profile, custom
|
||||||
|
showRecent = false
|
||||||
|
recentLimit = 5
|
||||||
|
|
||||||
|
[article]
|
||||||
|
showDate = true
|
||||||
|
showDateUpdated = false
|
||||||
|
showAuthor = true
|
||||||
|
showBreadcrumbs = false
|
||||||
|
showDraftLabel = true
|
||||||
|
showEdit = false
|
||||||
|
# editURL = "https://github.com/username/repo/"
|
||||||
|
editAppendPath = true
|
||||||
|
showHeadingAnchors = true
|
||||||
|
showPagination = true
|
||||||
|
invertPagination = false
|
||||||
|
showReadingTime = true
|
||||||
|
showTableOfContents = false
|
||||||
|
showTaxonomies = false
|
||||||
|
showWordCount = false
|
||||||
|
showComments = false
|
||||||
|
# sharingLinks = ["facebook", "twitter", "mastodon", "pinterest", "reddit", "linkedin", "email"]
|
||||||
|
|
||||||
|
[list]
|
||||||
|
showBreadcrumbs = false
|
||||||
|
showSummary = false
|
||||||
|
showTableOfContents = false
|
||||||
|
showTaxonomies = false
|
||||||
|
groupByYear = true
|
||||||
|
paginationWidth = 1
|
||||||
|
|
||||||
|
[sitemap]
|
||||||
|
excludedKinds = ["taxonomy", "term"]
|
||||||
|
|
||||||
|
[taxonomy]
|
||||||
|
showTermCount = true
|
||||||
|
|
||||||
|
[fathomAnalytics]
|
||||||
|
# site = "ABC12345"
|
||||||
|
# domain = "llama.yoursite.com"
|
||||||
|
|
||||||
|
[verification]
|
||||||
|
# google = ""
|
||||||
|
# bing = ""
|
||||||
|
# pinterest = ""
|
||||||
|
# yandex = ""
|
5
go.mod
Normal file
5
go.mod
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
module my-project
|
||||||
|
|
||||||
|
go 1.19
|
||||||
|
|
||||||
|
require github.com/jpanther/congo/v2 v2.5.4 // indirect
|
2
go.sum
Normal file
2
go.sum
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
github.com/jpanther/congo/v2 v2.5.4 h1:6SLJ5y1hXs2eu4Ce8HBT5YLLbnu0GE+CZ686p/2jRFw=
|
||||||
|
github.com/jpanther/congo/v2 v2.5.4/go.mod h1:1S7DRoO1ZYS4YUdFd1LjTkdyjQwsjFWd8TqSfz3Jd+M=
|
Loading…
Reference in a new issue