From a070c35b9a316e2729df5f43f297c9a8cf6efab6 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 12 Feb 2017 16:23:24 +0100 Subject: added blog entry about static genenrator Hugo --- content/blog/statig-gen-hugo.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 content/blog/statig-gen-hugo.md (limited to 'content/blog') diff --git a/content/blog/statig-gen-hugo.md b/content/blog/statig-gen-hugo.md new file mode 100644 index 0000000..ea1e442 --- /dev/null +++ b/content/blog/statig-gen-hugo.md @@ -0,0 +1,35 @@ ++++ +date = "2017-02-12T16:03:44+01:00" +description = "Static HTML generators" +title = "Website done with StaticGen Hugo" +categories = [ "Web", "HTML", "Go", "Hugo" ] ++++ + +Some years ago I decided to write my personal web page as a bunch of +static HTML pages using only server-side includes to cope with the +repetitive elements like footer, header, menus. When I installed a +Wordpress just for the blog I intended to start I thought: why can't +this be done statically too. + +In fact, it can be done: the following web pages show an explosion +of tools for static HTML site generation: + + * http://www.staticgen.com + * https://staticsitegenerators.net + +I decided to go with [Hugo](https://gohugo.io/). The model is quite +simple if you get your head around it. It has live reloading in the +browser when you save the Markdown (or actually any file) in the text +editor. It's written in Go, so I don't have to worry about 10'000 +Ruby, Javascript, Perl, Python packages getting installed and break +all the time. Go packs everything into static binary and is blazingly +fast. The idea with sections and types which can be templated, it is +powerful enough to produce a site like mine. Even having an alternative +theme for certain sections (like the slides) is easy to do. + +I also replaced the old theme, which was not looking pretty on mobile +devices with a standard Wordpress theme, +[mh-magazine-lite](http://wordpress.org/themes/mh-magazine-lite/). + +Find the source code of the whole page in my local git at +http://git.andreasbaumann.cc/cgit/www-andreasbaumann-cc. -- cgit v1.2.3-54-g00ecf