From 23ca72070a245a760f89bf97410d1c07518b9dd0 Mon Sep 17 00:00:00 2001 From: Kumi Date: Mon, 15 Jul 2024 08:27:44 +0200 Subject: [PATCH 1/7] chore: remove rottenwheel.com content from the landing page --- content/_index.md | 69 ++--------------------------------------- content/posts/_index.md | 7 ----- 2 files changed, 3 insertions(+), 73 deletions(-) delete mode 100644 content/posts/_index.md diff --git a/content/_index.md b/content/_index.md index b4162ef..8cc1818 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,70 +1,7 @@ --- -title: rottenhouse +title: rottenwheel's blog --- -## About +RSS feed [here](/index.xml). -Hi, I am rottenwheel! -I am into: [FLOSS](https://www.gnu.org/philosophy/floss-and-foss.en.html); privacy; minimalism; [agorism](https://anarkio.codeberg.page/agorism/); cryptocurrencies, i.e., Bitcoin and Monero; sovereignty; and other things. - -## Writing - -[Revuo Monero](https://www.revuo-xmr.com/). |[.onion](http://revuo75joezkbeitqmas4ab6spbrkr4vzbhjmeuv75ovrfqfp47mtjid.onion/)|. - -## Podcasts - -EN -* [Ungovernable Misfits E111: One million dollar BTC is pointless without freedom](https://ungovernablemisfits.com/podcast/one-million-dollar-btc-is-pointless-without-freedom/); -* [Citadel Dispatch E58: RoninDojo, Privacy, and Freedom Tech](https://www.podpage.com/citadeldispatch/cd58-ronindojo-privacy-and-freedom-tech-with-guerramoneta-brotherrabbit_-and-rottenwheel/). - -ES -* Co-anfitriĆ³n en [El Monero](https://librarian.pussthecat.org/@elmonero:9). [Spotify](https://podcasters.spotify.com/pod/show/elmonero), [YouTube](https://piped.adminforge.de/channel/UCNvrbeVzrszpN7vQnMoCTVA); -* [Criptohispanos E38: sobre privacidad, Monero y comunidad](https://podcasters.spotify.com/pod/show/criptohispanos/episodes/Criptohispanos-con-Rotten-Wheel-de-El-Monero-Podcast--sobre-privacidad--Monero-y-comunidad-eu7qq1). - -## Contact - -E-mail: hi |at| rottenwheel |dot| com;\ -Lemmy: rottenwheel |at| lemmy |dot| zip;\ -Matrix: |at| rottenwheel:kernal |dot| eu;\ -Nostr: rottenwheel |at| ok0 |dot| org; `npub1tn8spk9zhxrctg2qym3gj8r7eq2wk6z3phrl8304wc54vt9qam4qvzw6jx`;\ -PGP public [key](https://www.rottenwheel.com/pgp.txt). [Archive](https://archive.org/details/rottenwheel_pgp_public_key); [GitHub](https://github.com/rottenwheel.gpg); [PrivateBin](https://pb.envs.net/?f2171d903c8c39b2#ABKvcDPPMxwB3TACST583PJs1Tz8JtZ27cAWmEYqo35e);\ -Fingerprint: `080F330AD043CC0A449A27D71FAD78669DE85DE8`;\ -SimpleX: contact [address](https://simplex.chat/contact#/?v=1-4&smp=smp%3A%2F%2Fhejn2gVIqNU6xjtGM3OwQeuk8ZEbDXVJXAlnSBJBWUA%3D%40smp16.simplex.im%2F4O2CIL0kxNTZbB9wwgWsPw9HB_Gp9Y38%23%2F%3Fv%3D1-2%26dh%3DMCowBQYDK2VuAyEACg4ttrfKTdLLCneB7Mzevbuh1Lo6s1Scfjhrz0e7emA%253D%26srv%3Dp3ktngodzi6qrf7w64mmde3syuzrv57y55hxabqcq3l5p6oi7yzze6qd.onion);\ -SoundCloud: |at| rottensox;\ -Threema: Y99DFWMR;\ -Wire: |at| rottenwheel;\ -X: |at| rottenwheel1 // |at| rottenwheel;\ -XMPP: rottenwheel |at| jabbers |dot| one;\ -OMEMO: \[1\]: `ed49f179a8f10ddc3365a123eda4a987a0dd303e0dc40143f2c9e118a3c92b63`;\ -\[2\]: `5ab674ad81cc103fe448cbd80b2c13acf888a56c8892c93b0bb3afc0934ab621`; - -All contact details above are digitally signed with my PGP key in [contact-signed.txt](/contact-signed.txt); [Gist](https://gist.github.com/rottenwheel/cae7af024abde8d28075ba2794cc1506). - -## Canary - -``` ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA512 - -If this section disappears then something is wrong that I cannot disclose. ------BEGIN PGP SIGNATURE----- - -iQIzBAEBCAAdFiEECA8zCtBDzApEmifXH614Zp3oXegFAmKylfEACgkQH614Zp3o -XegbKRAAsAqtHuEMg0Mx+HWXetajTxb8d2FxMcJrsDD34TKB98CaptEc0Tj8+zxc -4xCHs2agK+Y2JH+o9/8mEqe3O1sMgiq9fnPd0XdQ9AsbfhW121Ao14FklNEE0Hl3 -1m0XdBZwtrS77CSKVEfGgdjX5B32aSVWKVCrH8TFnjU4pg1LrA9tvkVj/u74m6V7 -O4JxwcR4yXoR6gr0GQvnBstaB++MxZgEOoG9BmnDDOL+J/96F7l44c+As/EGbHKU -Cvbp4SUvAjDN+24LUNqXI0rNKLm6p94Yxd4MEh01iEj61GlXhRYNiL82McORLet9 -xhintlbyGlg/lWWrhdO9vKoE+dzuOineOTgckNvAzjWAAQg1jtq5jDTd0f+6i/aD -rYbOiGdO1YfN03rURj18Y/gNYcSL9zvSp1emOqs1gYC9MV6K62nvCYXCLjJGkCUF -Y7Cb8mncs1Y3jAK7OINHCe8Pp0A5RjHXDxqzQ0cG9hOF5CBfvSBPL4z57yfgW0jF -CZOzwfuFdhx6k1PHlditdNVRkInblPe5Qd/ADy7TgWYxd+TQ1RkaOwOoCF0+0TO4 -KR1dqfh335GfYstWytn8m2CnYkmLOzM1wp0B2uuxH5mUaO5c0EByMFuGnH4039cU -p8q4RSPckEMMhk6wO72mbngEjth3GGgmtY2D7Er7PvD8G/4tkh4= -=4IsW ------END PGP SIGNATURE----- -``` - -Canary [gist](https://gist.github.com/rottenwheel/221bdf9650e566dd72b3e05887e20675). - -Webring: [< Previous](https://elefantlover.github.io/) | [Index](https://webring.t0.vc) | [Next >](https://nice42q.de) +## Posts \ No newline at end of file diff --git a/content/posts/_index.md b/content/posts/_index.md deleted file mode 100644 index 8cc1818..0000000 --- a/content/posts/_index.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: rottenwheel's blog ---- - -RSS feed [here](/index.xml). - -## Posts \ No newline at end of file From 7ac23ec03b4585f37a8f088534bb5e9b5b0a082a Mon Sep 17 00:00:00 2001 From: Kumi Date: Mon, 15 Jul 2024 08:28:04 +0200 Subject: [PATCH 2/7] feat(layouts): add main template for latest posts --- layouts/index.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 layouts/index.html diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..1638032 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,13 @@ +{{ define "main" }} +

{{ .Title }}

+

{{ .Description }}

+ +

Latest Posts

+ +{{ end }} \ No newline at end of file From d0aa620a3c21ee547da65767d4a1535c5202e02f Mon Sep 17 00:00:00 2001 From: Kumi Date: Mon, 15 Jul 2024 08:29:31 +0200 Subject: [PATCH 3/7] feat(config): update blog URL and add 'about' navigation link Fix baseURL to 'https://blog.rottenwheel.com'. Modifying main menu by linking 'blog' to home and adding an 'about' link back to 'https://rottenwheel.com'. --- hugo.toml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/hugo.toml b/hugo.toml index 5898c92..b8d6a34 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,11 +1,15 @@ -baseURL = 'https://www.rottenwheel.com/' +baseURL = 'https://blog.rottenwheel.com/' languageCode = 'en-us' title = 'rottenwheel' theme = 'hugo-rottenwheel' -disableKinds = [ 'taxonomy' ] +disableKinds = ['taxonomy'] enableRobotsTXT = true [menu] - [[menu.main]] - url = "/posts/" - name = "blog" +[[menu.main]] +url = "/" +name = "blog" + +[[menu.main]] +url = "https://rottenwheel.com" +name = "about" From bd33e958ac3f21397bb2e427b60bf41b6c94792e Mon Sep 17 00:00:00 2001 From: Kumi Date: Mon, 15 Jul 2024 08:41:18 +0200 Subject: [PATCH 4/7] chore: update blog title and simplify homepage layout Updated the title across the website from "rottenwheel" to "rottenblog". Also removed title and description elements from the homepage layout. --- content/_index.md | 2 +- hugo.toml | 2 +- layouts/index.html | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/content/_index.md b/content/_index.md index 8cc1818..baf82ae 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,5 +1,5 @@ --- -title: rottenwheel's blog +title: rottenblog --- RSS feed [here](/index.xml). diff --git a/hugo.toml b/hugo.toml index b8d6a34..38299df 100644 --- a/hugo.toml +++ b/hugo.toml @@ -1,6 +1,6 @@ baseURL = 'https://blog.rottenwheel.com/' languageCode = 'en-us' -title = 'rottenwheel' +title = 'rottenblog' theme = 'hugo-rottenwheel' disableKinds = ['taxonomy'] enableRobotsTXT = true diff --git a/layouts/index.html b/layouts/index.html index 1638032..88963be 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,6 +1,4 @@ {{ define "main" }} -

{{ .Title }}

-

{{ .Description }}

Latest Posts

    From 79de9d750f0e731433e721338e96e1d494f891ef Mon Sep 17 00:00:00 2001 From: Kumi Date: Mon, 15 Jul 2024 08:43:41 +0200 Subject: [PATCH 5/7] feat(ci): add GitHub Actions workflow for Hugo site deploy --- .github/workflows/deploy.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..ae6782d --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,29 @@ +name: Build and Deploy Hugo Site + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Hugo + uses: peaceiris/actions-hugo@v3 + with: + hugo-version: 'latest' + + - name: Build + run: hugo --minify + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./public + publish_branch: pages \ No newline at end of file From 78f5d95484de386b5ef638464667b83190a8ef4f Mon Sep 17 00:00:00 2001 From: Kumi Date: Mon, 15 Jul 2024 08:57:56 +0200 Subject: [PATCH 6/7] feat: move RSS feed link from markdown to HTML --- content/_index.md | 4 ---- layouts/index.html | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/content/_index.md b/content/_index.md index baf82ae..d8cdf1c 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,7 +1,3 @@ --- title: rottenblog --- - -RSS feed [here](/index.xml). - -## Posts \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index 88963be..2f216c0 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,5 +1,9 @@ {{ define "main" }} +

    + RSS feed here. +

    +

    Latest Posts

      {{ range where .Site.RegularPages "Section" "posts" }} From 3829c90ff80328bad754cf3df29f0f9dec81a96f Mon Sep 17 00:00:00 2001 From: Kumi Date: Mon, 15 Jul 2024 09:01:49 +0200 Subject: [PATCH 7/7] docs: add README for project setup and usage --- README.md | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..f2eb13d --- /dev/null +++ b/README.md @@ -0,0 +1,68 @@ +# rottenblog + +This is the source code for [rottenblog](https://blog.rottenwheel.com/). It is a static site generated using [Hugo](https://gohugo.io/). + +## Getting Started + +### Prerequisites + +- [Hugo](https://gohugo.io/getting-started/installing/) installed on your machine. + +### Installation + +1. Clone the repository: + + ```sh + git clone https://github.com/rottenwheel/hugo-rottenwheel.git + cd hugo-rottenwheel + ``` + +2. Run the Hugo server: + + ```sh + hugo server + ``` + +3. Open your browser and visit `http://localhost:1313` to see the site. + +### Deployment + +If you use GitHub, this repository comes with a GitHub Actions workflow that automatically builds and deploys the site to the `pages` branch whenever you push changes to the `main` branch. + +Otherwise, you can build the site manually: + +```sh +hugo --minify +``` + +The generated site will be in the `public/` directory. + +## Adding a New Post + +1. Create a new Markdown file in the `content/posts/` directory: + + ```sh + hugo new posts/my-new-post.md + ``` + +2. Edit the new post file to add your content. + + ```markdown + --- + title: "My New Post" + date: 2024-07-15 + --- + + # My New Post + + This is the content of my new post. + ``` + +3. Save the file and refresh your browser to see the new post. + +## Customizing the Homepage + +The homepage content and layout can be customized by editing the `content/_index.md` file and the `layouts/index.html` template. + +- `content/_index.md`: Contains the metadata for the homepage. +- `layouts/index.html`: Defines the HTML structure and layout for the homepage.