Moving from hugo to blorg

Hugo is amazing - it has all the bells and whistles. But that comes with a price: It's also huge (80k+ LOC, excluding its many many dependencies) and complex.

Well… I wasn't using much of those bells and whistles. So here we are - everything looks the same but the blog is now rendered using a 500 LOC wrapper around go-org: blorg. It lives in the same repository. It's no hugo but it does what I want and it's simple. Also it's configured using an org file - so apart from my ./content directory there's just a ./blorg.org file - which looks kinda like this:

#+OPTIONS: toc:nil title:nil
#+CONTENT: content
#+PUBLIC: public
#+TITLE: Blog

* templates
** head
#+name: head
#+begin_src html
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <link rel="stylesheet" href="/style.css" type="text/css" />
  <title>{{ .Title }}</title>
</head>
#+end_src
** header
#+name: header
#+begin_src html
<header class='header'>
  <a class="logo" href="/">home</a>
  <nav>
    <a href="https://www.github.com/niklasfasching">github</a>
    <a href="/about">about</a>
  </nav>
</header>
#+end_src
** list
#+name: list
#+begin_src html
<!doctype html>
<html>
  {{ template "head" . }}
  <body>
    {{ template "header" . }}
    <div class="container">
      <h1 class="title">{{ .Title }}</h1>
      <ul class="posts">
        {{ range .Pages }}
        <li class="post">
          <a href="{{ .PermaLink }}">
            <date>{{ .Date.Format "02.01.2006" }}</date>
            <span>{{ .Title }}</span>
          </a>
        </li>
        {{ end }}
      </ul>
      <ul>
    </div>
  </body>
</html>
#+end_src
** item
#+name: item
#+begin_src html
<!doctype html>
<html>
  {{ template "head" . }}
  <body>
    {{ template "header" . }}
    <div class="container">
      <h1 class="title">{{ .Title }}
        <br>
        <span class="subtitle">{{ .Subtitle }}</span>
      </h1>
      <ul class="tags">
        {{ range .Tags }}
        <li><a href="/tags/{{ . | Slugify }}">{{ . }}</a></li>
        {{ end }}
      </ul>
      {{ .Content }}
    </div>
  </body>
</html>
#+end_src

I'll add more bells and whistles as I need them. Which means I can safely rest since a blog that's not used doesn't need much :P.