diff --git a/.gitignore b/.gitignore index e4f73201..aaf9018b 100644 --- a/.gitignore +++ b/.gitignore @@ -52,3 +52,5 @@ $RECYCLE.BIN/ .Ulysses-Group.plist /output 😊 +node_modules +hugo_stats.json diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000..04f4e7ab --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v20.3.1 diff --git a/bin/netlify-production.sh b/bin/netlify-production.sh new file mode 100755 index 00000000..089152c7 --- /dev/null +++ b/bin/netlify-production.sh @@ -0,0 +1,2 @@ +# hugo --buildDrafts=false --baseURL="$URL" +hugo mod get -u && hugo --gc --minify --buildDrafts --buildFuture --baseURL="$URL" diff --git a/bin/netlify.sh b/bin/netlify.sh new file mode 100755 index 00000000..74b4fdfa --- /dev/null +++ b/bin/netlify.sh @@ -0,0 +1,2 @@ +# hugo --buildDrafts --buildFuture --baseURL="$DEPLOY_PRIME_URL" +hugo mod get -u && hugo --gc --minify --buildDrafts --buildFuture --baseURL="$DEPLOY_PRIME_URL" \ No newline at end of file diff --git a/config/_default/hugo.toml b/config/_default/hugo.toml new file mode 100644 index 00000000..c7cf5331 --- /dev/null +++ b/config/_default/hugo.toml @@ -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 = "" + diff --git a/go.mod b/go.mod index 0bf04385..f474b462 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/go.sum b/go.sum index a8bfd200..8d596f99 100644 --- a/go.sum +++ b/go.sum @@ -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= diff --git a/netlify.toml b/netlify.toml index 268bb253..856bfe72 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,7 +3,6 @@ [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/" @@ -11,7 +10,12 @@ # 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] @@ -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]] diff --git a/package.hugo.json b/package.hugo.json new file mode 100644 index 00000000..b5fa9d3f --- /dev/null +++ b/package.hugo.json @@ -0,0 +1,4 @@ +{ + "name": "ado-hugo", + "version": "0.1.0" +} \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 00000000..8dba0562 --- /dev/null +++ b/package.json @@ -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" +}