Skip to content
Draft
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,5 @@ $RECYCLE.BIN/
.Ulysses-Group.plist
/output
😊
node_modules
hugo_stats.json
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.3.1
2 changes: 2 additions & 0 deletions bin/netlify-production.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# hugo --buildDrafts=false --baseURL="$URL"
hugo mod get -u && hugo --gc --minify --buildDrafts --buildFuture --baseURL="$URL"
2 changes: 2 additions & 0 deletions bin/netlify.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# hugo --buildDrafts --buildFuture --baseURL="$DEPLOY_PRIME_URL"
hugo mod get -u && hugo --gc --minify --buildDrafts --buildFuture --baseURL="$DEPLOY_PRIME_URL"
140 changes: 140 additions & 0 deletions config/_default/hugo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
BaseURL = "https://www.arresteddevops.com/"
# BaseURL = "http://localhost:1313/"
languageCode = "en-us"
title = "Arrested DevOps"
# theme = "castanet"
canonifyurls = false
buildFuture = false
buildDrafts = false
dataDir = "data"
disqusShortname = "arresteddevops"
archetypedir = "archetypes"
pagination.pagerSize = 9
# googleAnalytics = "UA-45939822-1"

[module]
[[module.imports]]
path = "github.com/mattstratton/castanet/v2"
[[module.mounts]]
source = 'assets'
target = 'assets'
[[module.mounts]]
disableWatch = true
source = 'hugo_stats.json'
target = 'assets/notwatching/hugo_stats.json'

[build]
[build.buildStats]
enable = true
[[build.cachebusters]]
source = 'assets/notwatching/hugo_stats\.json'
target = 'css'
[[build.cachebusters]]
source = '(postcss|tailwind)\.config\.js'
target = 'css'

[markup]
[markup.goldmark]
[markup.goldmark.renderer]
unsafe = true

[permalinks]
page = "/:filename/"
about = "/:filename/"
episode = "/:filename/"
sponsor = "/:filename"
redirect = "/:filename"

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

# The theme supports menus with up to one submenu per menu item
# The menu name must be "Main"
# The menus are sorted based upon their identifier
[[Menu.Main]]
name = "About"
identifier = "about"
url = "/about"
[[Menu.Main]]
name = "Contact"
identifier = "contact"
url = "/contact"
[[Menu.Main]]
name = "Guests"
identifier = "guests"
url = "/guest"
[[Menu.Main]]
name = "Resources"
identifier = "resources"
url = "#!"
[[Menu.Main]]
name = "Books"
identifier = "books"
url = "/books"
parent = "resources"

[[Menu.Main]]
name = "Podcasts"
identifier = "podcasts"
url = "/podcasts"
parent = "resources"
[[Menu.Main]]
name = "Sponsor Arrested DevOps"
identifier = "sponsor"
url = "/sponsorship"

[[Menu.Main]]
name = "Search"
identifier = "search"
url = "/search"
[services]
[services.GoogleAnalytics]
ID = 'G-45939822'

[params]
mainSections = ["episode"]
site_theme = "grey"
colorScheme = "slate"
site_layout = "grid"
enable_jumbo = "false"
favicon = "favicon.ico"
copyright_notice = "Copyright 2013-2024 [Arrested DevOps](https://www.arresteddevops.com)"
spotify_subscribe = "https://open.spotify.com/show/7hHA2ZlfOmbwv96wEBaMR2?si=UeVjoWIVSqqLluJd4TlEUg"
itunes_subscribe = "http://itunes.apple.com/us/podcast/arrested-devops/id773888088?mt=2&uo=4&at=11lsCi"
android_subscribe = "http://subscribeonandroid.com/www.arresteddevops.com/episode/index.xml"
google_play_subscribe = "https://podcasts.google.com/feed/aHR0cHM6Ly93d3cuYXJyZXN0ZWRkZXZvcHMuY29tL2VwaXNvZGUvaW5kZXgueG1s"
stitcher_subscribe = "http://www.stitcher.com/podcast/arrested-devops-2/arrested-devops"
pocketcasts_subscribe = "https://pca.st/VqEP"
mailchimp_subscribe = "//arresteddevops.us3.list-manage.com/subscribe/post?u=5e4cbcac996bb9df25f970a89&id=154fa76bcc"
#rss_subscribe = "http://feed.com/myfeed" #only set this if you don't want to use the built-in feed
description = "Arrested DevOps is the podcast that helps you achieve understanding, develop good practices, and operate your team and organization for maximum DevOps awesomeness."
#media_prefix = "https://media.blubrry.com/arresteddevops/content.blubrry.com/arresteddevops/"
media_prefix = "https://media.blubrry.com/arresteddevops/content.blubrry.com/arresteddevops/"
[params.feed]
copyright = "Copyright 2013-2024 Arrested DevOps" #do not use markdown in this field; it is used in the feed
itunes_subtitle = "There's always DevOps in the Banana Stand" #no markdown or HTML
itunes_author = "Matt Stratton, Trevor Hess, Jessica Kerr, and Bridget Kromhout" #no markdown or HTML
itunes_summary = "Arrested DevOps is the podcast that helps you achieve understanding, develop good practices, and operate your team and organization for maximum DevOps awesomeness." # Limited to 4000 characters or less, plain text, no HTML
itunes_owner_name = "Matt Stratton"
itunes_owner_email = "matt.stratton@gmail.com" #contains the e-mail address that will be used to contact the owner of the Podcast for communication specifically about their Podcast on iTunes. It will not be publicly displayed on iTunes.
itunes_image = "https://www.arresteddevops.com/img/ado-podcast-logo.png" #fqdn to the image art for your podcast
itunes_top_category = "Technology"
itunes_first_sub_category = "Software How-To"
itunes_second_sub_category = "Tech News"

[params.social]
github = "arresteddevops"
facebook = "Arresteddevops"
facebook_admin = ["500557137"] # This needs to be a page admin to get domain insights
twitter = "arresteddevops"
twitter_domain = "arresteddevops.com" # This domain shows in twitter cards as "View on `twitter_domain`"
instagram = "arresteddevops"
youtube = "arresteddevops"

[params.authors]
[params.authors.Ado]
name = ""
thumbnail = "img/ado-logo-150.png"
bio = ""

6 changes: 4 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module github.com/arresteddevops/ado-hugo

go 1.20
go 1.24.2

require github.com/mattstratton/castanet v1.22.14 // indirect
// replace github.com/mattstratton/castanet/v2 => /Users/mattstratton/src/github.com/mattstratton/castanet

require github.com/mattstratton/castanet/v2 v2.0.0-beta.9 // indirect
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github.com/mattstratton/castanet v1.22.13 h1:XzYQO5+0uAiajzYeGoP8BTq8k/XqbLzK0NWDjyw4QsI=
github.com/mattstratton/castanet v1.22.13/go.mod h1:sP8237IoHZIxiI4P3hdCulB5pixGCV0PPaHUsV6SUG8=
github.com/mattstratton/castanet/v2 v2.0.0-beta.4 h1:K7taH/qD7NAJWjLbrH9vTWYh7M4O+ENE2SUTd7kWfM0=
github.com/mattstratton/castanet/v2 v2.0.0-beta.4/go.mod h1:iqaiphaPTj3hY9x6EUHRiLeLsmDTPAyCyvRvMyRpPF8=
10 changes: 8 additions & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,19 @@
[context.production]
# command = "bin/netlify.sh"
# publish = "exampleSite/public"
#command = "bin/netlify-production.sh"
command = "hugo mod get -u && hugo --gc --minify --buildDrafts --buildFuture --baseURL=$URL"
publish = "public/"

# Deploy Preview context: All Deploy Previews
# will inherit these settings.
[context.deploy-preview]
publish = "public/"
#command = "bin/netlify.sh"
command = "hugo mod get -u && hugo --gc --minify --buildDrafts --buildFuture --baseURL=$DEPLOY_PRIME_URL"

# Branch deploy context: All Deploy Previews
# will inherit these settings.
[context.branch-deploy]
publish = "public/"
command = "hugo mod get -u && hugo --gc --minify --buildDrafts --buildFuture --baseURL=$DEPLOY_PRIME_URL"

[context.production.environment]
Expand All @@ -22,6 +26,8 @@

[context.branch-deploy.environment]
HUGO_VERSION = "0.147.3"
#[build.environment]
# NPM_FLAGS = "--no-optional"
#[build.processing]
# skip_processing = true
#[[plugins]]
Expand Down
4 changes: 4 additions & 0 deletions package.hugo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "ado-hugo",
"version": "0.1.0"
}
22 changes: 22 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"comments": {
"dependencies": {
"@tailwindcss/cli": "github.com/mattstratton/castanet/v2"
},
"devDependencies": {}
},
"scripts": {
"dev-hugo": "hugo server -p 1314 --disableFastRender",
"dev": "run-p dev-hugo"
},
"dependencies": {

},
"devDependencies": {
"@tailwindcss/cli": "^4.1.6",
"tailwindcss": "^4.1",
"@tailwindcss/typography": "^0.5.16"
},
"name": "ado-hugo",
"version": "0.1.0"
}