From 0bb075d9c8ea99a6f18d440af6d03c84f17fd23b Mon Sep 17 00:00:00 2001 From: tdback Date: Sat, 14 Dec 2024 20:41:08 -0500 Subject: initial commit of site --- .gitignore | 2 ++ .gitmodules | 3 ++ .hugo_build.lock | 0 archetypes/default.md | 6 ++++ assets/images/calvin_and_hobbes.jpg | Bin 0 -> 263427 bytes content/_index.md | 4 +++ content/about/index.md | 29 +++++++++++++++++ content/posts/_index.md | 4 +++ deploy.sh | 5 +++ flake.lock | 61 +++++++++++++++++++++++++++++++++++ flake.nix | 19 +++++++++++ hugo.toml | 62 ++++++++++++++++++++++++++++++++++++ layouts/_default/rss.xml | 39 +++++++++++++++++++++++ layouts/partials/footer.html | 34 ++++++++++++++++++++ static/Captain_and_Rainey.jpg | Bin 0 -> 454551 bytes themes/hugo-blog-awesome | 1 + 16 files changed, 269 insertions(+) create mode 100644 .gitignore create mode 100644 .gitmodules create mode 100644 .hugo_build.lock create mode 100644 archetypes/default.md create mode 100644 assets/images/calvin_and_hobbes.jpg create mode 100644 content/_index.md create mode 100644 content/about/index.md create mode 100644 content/posts/_index.md create mode 100755 deploy.sh create mode 100644 flake.lock create mode 100644 flake.nix create mode 100644 hugo.toml create mode 100644 layouts/_default/rss.xml create mode 100644 layouts/partials/footer.html create mode 100644 static/Captain_and_Rainey.jpg create mode 160000 themes/hugo-blog-awesome diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7ba0a09 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/public +/resources diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..e84a7c7 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/hugo-blog-awesome"] + path = themes/hugo-blog-awesome + url = https://github.com/hugo-sid/hugo-blog-awesome.git diff --git a/.hugo_build.lock b/.hugo_build.lock new file mode 100644 index 0000000..e69de29 diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..8da6978 --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,6 @@ ++++ +title = '' +description = '' +date = '{{ .Date }}' +draft = true ++++ diff --git a/assets/images/calvin_and_hobbes.jpg b/assets/images/calvin_and_hobbes.jpg new file mode 100644 index 0000000..109590d Binary files /dev/null and b/assets/images/calvin_and_hobbes.jpg differ diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..621ab40 --- /dev/null +++ b/content/_index.md @@ -0,0 +1,4 @@ ++++ +title = 'Home' +author = 'Tyler Dunneback' ++++ diff --git a/content/about/index.md b/content/about/index.md new file mode 100644 index 0000000..2741bbd --- /dev/null +++ b/content/about/index.md @@ -0,0 +1,29 @@ ++++ +title = 'About' +author = 'Tyler Dunneback' ++++ + +Greetings, my name is Tyler Dunneback! + +I am passionate about decentralization, data sovereignty, and privacy. As a +result, I run a lot of my own infrastructure. You can find the configuration +for my entire home network [here](https://codeberg.org/tdback/nix-config). + +I am a firm believer in automating away the boring things in life, keeping +things simple, and embracing the +[three virtues of a great programmer](https://thethreevirtues.com/). + +I enjoy learning new programming languages and working on open source projects. +I am currently interested in learning more about low-level programming - such as +operating system development - and developing +[TUIs](https://en.wikipedia.org/wiki/Text-based_user_interface). + +You can find my current and past projects on +[Codeberg](https://codeberg.org/tdback). In fact, you can view all of the +source code for this site in its +[git repository](https://codeberg.org/tdback/website). + +When away from the keyboard, I enjoy spending time with my beautiful wife and +our two labs Captain and Rainey. + +![Captain and Rainey](/Captain_and_Rainey.jpg) diff --git a/content/posts/_index.md b/content/posts/_index.md new file mode 100644 index 0000000..d23f2af --- /dev/null +++ b/content/posts/_index.md @@ -0,0 +1,4 @@ ++++ +title = 'Posts' +author = 'Tyler Dunneback' ++++ diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..f705868 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +# deploy.sh: Generate and deploy files to the 'hive' web server. + +hugo && rsync -avz --delete public/ hive:/var/www/tdback.net/ diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..f3d280c --- /dev/null +++ b/flake.lock @@ -0,0 +1,61 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1733940404, + "narHash": "sha256-Pj39hSoUA86ZePPF/UXiYHHM7hMIkios8TYG29kQT4g=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "5d67ea6b4b63378b9c13be21e2ec9d1afc921713", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..857f4fe --- /dev/null +++ b/flake.nix @@ -0,0 +1,19 @@ +{ + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = { ... }@inputs: + inputs.flake-utils.lib.eachDefaultSystem (system: + let + pkgs = import inputs.nixpkgs { inherit system; }; + in + { + devShells.default = pkgs.mkShell { + buildInputs = with pkgs; [ + hugo + ]; + }; + }); +} diff --git a/hugo.toml b/hugo.toml new file mode 100644 index 0000000..07e0c3d --- /dev/null +++ b/hugo.toml @@ -0,0 +1,62 @@ +title = 'tdback.net' +baseURL = 'https://tdback.net' +theme = 'hugo-blog-awesome' +languageCode = 'en-us' +defaultContentLanguage = 'en-us' + +[params] + sitename = 'tdbacks blog' + defaultColor = 'auto' + toc = false + tocOpen = false + goToTop = true + dateFormat = '2006-01-02' + mainSections = ['posts'] + rssFeedDescription = 'full' + [params.author] + avatar = 'images/calvin_and_hobbes.jpg' + intro = 'Tyler Dunneback' + description = '*nix hobbyist and avid self-hoster' + name = 'Tyler Dunneback' + [params.webmanifest] + name = 'tdback.net' + display = 'standalone' + [[params.socialIcons]] + name = 'gitea' + url = 'https://codeberg.org/tdback' + [[params.socialIcons]] + name = 'mastodon' + url = 'https://social.tdback.net/@tdback' + [[params.socialIcons]] + name = 'rss' + url = '/index.xml' + +[menus] + [[menus.main]] + pageRef = '/' + name = 'Home' + url = '/' + weight = 10 + [[menus.main]] + pageRef = 'posts' + name = 'Posts' + url = '/posts/' + weight = 20 + [[menus.main]] + pageRef = 'about' + name = 'About' + url = '/about/' + weight = 30 + [[menus.main]] + pageRef = 'rss' + name = 'RSS' + url = '/index.xml' + weight = 40 + +[markup] + [markup.highlight] + noClasses = false + codeFences = true + guessSyntax = true + [markup.goldmark.renderer] + unsafe = true diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml new file mode 100644 index 0000000..f5116c6 --- /dev/null +++ b/layouts/_default/rss.xml @@ -0,0 +1,39 @@ + +{{- $pages := where .Site.RegularPages "Section" "posts" -}} +{{- $limit := .Site.Config.Services.RSS.Limit -}} +{{- if ge $limit 1 -}} +{{- $pages = $pages | first $limit -}} +{{- end -}} +{{- $rssFeedDescription := .Site.Params.rssFeedDescription | default "summary" -}} +{{- printf "" | safeHTML }} + + + {{ .Site.Title }} blog + {{ .Permalink }} + Recent content on {{ .Site.Title }}. + Hugo + {{ site.Language.LanguageCode }}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} + {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} + {{.}}{{end}}{{ if not .Date.IsZero }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} + {{- with .OutputFormats.Get "RSS" -}} + {{ printf "" .Permalink .MediaType | safeHTML }} + {{- end -}} + {{ range $pages }} + + {{ .Title }} + {{ .Permalink }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ .Permalink }} + {{ if eq $rssFeedDescription "summary"}} + {{ .Summary | html }} + {{ else if (eq $rssFeedDescription "full")}} + {{ .Content | html }} + {{ else }} {{ errorf "Error in RSS feed generation %q" .Path }} + {{ end }} + + {{ end }} + + diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..ca79fa6 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,34 @@ + + + +{{- if .Site.Params.goToTop -}} + + {{ partial "svgs/arrowUp.svg" (dict "height" 48 "width" 48) . }} + +{{- end -}} diff --git a/static/Captain_and_Rainey.jpg b/static/Captain_and_Rainey.jpg new file mode 100644 index 0000000..5e72f10 Binary files /dev/null and b/static/Captain_and_Rainey.jpg differ diff --git a/themes/hugo-blog-awesome b/themes/hugo-blog-awesome new file mode 160000 index 0000000..2fc9f47 --- /dev/null +++ b/themes/hugo-blog-awesome @@ -0,0 +1 @@ +Subproject commit 2fc9f474a546dac32277498d6085e49e91713a61 -- cgit v1.2.3