~mrp/markpenner.space

120c8d7e9e3ca10e5725b6ec062f45428a5f2d46 — Mark Penner 5 months ago c170fae
switch to using srht.site
3 files changed, 7 insertions(+), 7 deletions(-)

M content/_index.org
M content/blog/blogging-hugo-org-mode.org
M layouts/partials/header.html
M content/_index.org => content/_index.org +0 -1
@@ 5,7 5,6 @@

* Projects
Mostly mirrored across:
- [[/gitweb][Self-hosted gitweb]]
- [[https://codeberg.org/mrp][Codeberg]]
- [[https://git.sr.ht/~mrp/][sourcehut]]
- [[https://gitlab.com/mrpenner][GitLab]]

M content/blog/blogging-hugo-org-mode.org => content/blog/blogging-hugo-org-mode.org +7 -5
@@ 4,12 4,18 @@
#+tags[]: blog website

* Blogging With Hugo and Org-mode
This blog is generated with [[https://gohugo.io][Hugo]]. The source is currently [[https://markpenner.space/gitweb/markpenner.space.git][here]].
This blog is generated with [[https://gohugo.io][Hugo]]. The source is currently [[https://git.sr.ht/~mrp/markpenner.space][here]].

I set it up a bit differently than many tutorials, so I thought I would describe what I did and why. I did not use a [[https://themes.gohugo.io][theme]]; I just wrote a few layouts and a short CSS file for a [[https://brutalist-web.design][brutalist design]]. I wanted to be able to understand and control my design rather than try to figure out how to get what I wanted out of an existing theme.

I like the [[https://karl-voit.at/2017/09/23/orgmode-as-markup-only/][expressivity and clarity]] of [[https://orgmode.org/][Org mode]] syntax rather than Markdown. Thankfully, Hugo [[https://gohugo.io/content-management/formats/#list-of-content-formats][can read Org files]] good enough for me. [[https://github.com/niklasfasching/go-org][go-org]], the library Hugo uses to parse Org files, is intended /"to support a reasonable subset of Org mode"/. There is also [[https://ox-hugo.scripter.co][ox-hugo]], an Org exporter to Hugo Markdown, but I have not tried it yet.

I'm not sure how much I will blog, but probably not a lot. My main motivation for starting a blog is to write down things I have learned. Hopefully some of what I write will be helpful to others, but I also want something for myself to refresh my memory later. I have learned a lot from people that write down things they have learned, whether they are experts or not. I want to do my part to keep that tradition strong.

Of course, it's also possible there will be long periods of silence occasionally interrupted by posts about my intentions to start blogging again. ;)

(Edit 2023-11-24) I switched to using [[https://srht.site/][srht.site]] to host this. [[https://git.sr.ht/~mrp/markpenner.space][Source here]], including the [[https://git.sr.ht/~mrp/markpenner.space/tree/main/item/.build.yml][.build.yml file]] to build and deploy the site using [[https://builds.sr.ht/][builds.sr.ht]]. Below is how I was hosting it at first, which I'll leave up in case it's useful to someone. I decided to save the money I was spending on a VPS since I wasn't using it for much.

I am using a [[https://linode.com][Linode]] VPS (virtual private server) to host the website (among other things). I have the source in a git repository with this post-receive hook to deploy the site after a successful ~git push~:
#+BEGIN_SRC bash
#!/bin/bash


@@ 43,7 49,3 @@ echo "Removing temporary directories."
rm -rf $WORK_DIR $BACKUP
trap - EXIT
#+END_SRC

I'm not sure how much I will blog, but probably not a lot. My main motivation for starting a blog is to write down things I have learned. Hopefully some of what I write will be helpful to others, but I also want something for myself to refresh my memory later. I have learned a lot from people that write down things they have learned, whether they are experts or not. I want to do my part to keep that tradition strong.

Of course, it's also possible there will be long periods of silence occasionally interrupted by posts about my intentions to start blogging again. ;)

M layouts/partials/header.html => layouts/partials/header.html +0 -1
@@ 5,7 5,6 @@
    </div>
    <div>
      <a href="/blog">blog</a>
      <a href="/gitweb">git</a>
      <a href="/index.xml">rss</a>
    </div>
    </nav>