summaryrefslogtreecommitdiff
path: root/content/blog
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-02-12 16:23:24 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2017-02-12 16:23:24 +0100
commita070c35b9a316e2729df5f43f297c9a8cf6efab6 (patch)
tree500e9951789c1d1ab6f9d8b55dccbcfa88e99d68 /content/blog
parent29abcd8e260faa284b230ebc97be0df4e7b8e0f9 (diff)
downloadwww-andreasbaumann-cc-a070c35b9a316e2729df5f43f297c9a8cf6efab6.tar.gz
www-andreasbaumann-cc-a070c35b9a316e2729df5f43f297c9a8cf6efab6.tar.bz2
added blog entry about static genenrator Hugo
Diffstat (limited to 'content/blog')
-rw-r--r--content/blog/statig-gen-hugo.md35
1 files changed, 35 insertions, 0 deletions
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.