mirror of
https://github.com/rottenwheel/hugo-rottenwheel.git
synced 2024-11-26 22:23:31 +01:00
Merge pull request #1 from kumitterer/main
Layout changes and GitHub deployment workflow
This commit is contained in:
commit
34a70e8993
29
.github/workflows/deploy.yml
vendored
Normal file
29
.github/workflows/deploy.yml
vendored
Normal file
@ -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
|
68
README.md
Normal file
68
README.md
Normal file
@ -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.
|
@ -1,70 +1,3 @@
|
||||
---
|
||||
title: rottenhouse
|
||||
title: rottenblog
|
||||
---
|
||||
|
||||
## About
|
||||
|
||||
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)
|
||||
|
@ -1,7 +0,0 @@
|
||||
---
|
||||
title: rottenwheel's blog
|
||||
---
|
||||
|
||||
RSS feed [here](/index.xml).
|
||||
|
||||
## Posts
|
16
hugo.toml
16
hugo.toml
@ -1,11 +1,15 @@
|
||||
baseURL = 'https://www.rottenwheel.com/'
|
||||
baseURL = 'https://blog.rottenwheel.com/'
|
||||
languageCode = 'en-us'
|
||||
title = 'rottenwheel'
|
||||
title = 'rottenblog'
|
||||
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"
|
||||
|
15
layouts/index.html
Normal file
15
layouts/index.html
Normal file
@ -0,0 +1,15 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<p>
|
||||
RSS feed <a href="/index.xml">here</a>.
|
||||
</p>
|
||||
|
||||
<h2>Latest Posts</h2>
|
||||
<ul>
|
||||
{{ range where .Site.RegularPages "Section" "posts" }}
|
||||
<li>
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a> - {{ .Date.Format "2006-01-02" }}
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
Loading…
Reference in New Issue
Block a user