Finally Switched to Hugo

I have been looking into using Hugo for a long time. Finally managed to make the transition. Also I decided not to use a ready made theme and created my simple layout and CSS using Skeleton as my CSS framework.

Syntax highlighting is an other area I am keen to use, since I usually have at least one or two code samples in my posts.

Here are two sample HTML and C# blocks.

<section id="main">
    <h1 id="title">{{ .Title }}</h1>
    {{ range .Data.Pages }}
      {{ .Render "summary"}}
    {{ end }}
public class Program
  public static int Main(string args)
    System.Console.WriteLine("Hello world!");

All the source is available in my GitHub Pages repo. Feel free to compy and experiment with it.

Finally this is how you would generate and publish your site (also note to myself)

  git clone
  cd _hugo_site
  hugo -d ..
  cd ..
  git add .
  git commit -m 'New content'
  git push


June 25, 2018 | 162 Words

Ziya Suzen (Maxwell Troy)'s personal notes on software development and related technical subjects.