~kungtotte/dtt

76076073356e1e3bb3dd5307760f8e72605c9d6a — Thomas Landin 6 months ago 1031e21
README update and version bump

Now that the blog indexing feature is added I think it calls for a
version bump, and the README was updated to take the progress of the
tool into account.
3 files changed, 18 insertions(+), 14 deletions(-)

M README.md
M dtt.nimble
M src/dtt.nim
M README.md => README.md +16 -12
@@ 4,17 4,12 @@ This is my attempt at writing a static site generator (because the world doesn't
have enough of them apparently), because none of the others I've tried really
suited my use-case of something that just does the thing I want.

I don't want a complicated folder structure, I don't want theming support, I
don't want complicated templating languages, I don't want it to guess too much
about how to treat content it finds, I want the generated html+css to be simple
and I don't want to put a bunch of JS, third-party fonts, and crap into it.

A perfect workflow for me would be:

- `dtt` init
- write markdown (or html) inside *content/*
- `dtt` build
- publish the *output/* folder
I want a very simple and straight-forward workflow where I write some markdown
inside the *content/* folder, hit `dtt build` and the finished site pops out
into *output/*. After running `dtt init` all you really have to do is edit some
basics in the **header.mustache** and **footer.mustache** files (like page
title, author name and email, etc.), write any markdown inside *content/* and
build it and you're done.

Changing the looks is done by editing the files inside *templates/* after
they're generated by the `dtt init` command, or by changing *style.css* inside


@@ 27,4 22,13 @@ static assets in there however you want and reference them in your content/html
files.

It's not done by a long-shot, so some things aren't working properly and some
things are just not there yet.
things are just not there yet. As of writing this (01 February 2020) pretty much
all of the required functionality is there. It indexes blog posts properly, and
you can use the template variables to put the latest post on your index page and
have a page listing your blog archive from newest to oldest.

Still left todo is pagination for the blog index, but that's the last actual
feature I think is really required. Anything else is just quality of life
changes or extras. The tool is designed with simplicity in mind so there's a
finite set of features I think should be in it, after which you're going into
"use a different tool" territory.

M dtt.nimble => dtt.nimble +1 -1
@@ 1,6 1,6 @@
# Package

version       = "0.2.5"
version       = "0.3.0"
author        = "Thomas Landin"
description   = "A straight-forward Markdown/Html static site generator."
license       = "GPL-3.0"

M src/dtt.nim => src/dtt.nim +1 -1
@@ 13,7 13,7 @@ const
                  fpGRoupRead, fpOthersExec, fpOthersRead}

let
  version = "0.2.5"
  version = "0.3.0"

type
  DttError {.pure.} = enum