Example Page

· 1mins

Written in Go, Hugo is an open source static site generator available under the Apache Licence 2.0. Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows.

Hugo makes use of a variety of open source projects including:

var x = 12;
let y = 'string';
const z = false;
const obj = {
   key1: "foo1",
   [y]: `template ${z}`,
}; // Single Line Comment
const BOO = 23;

/**
 * Block Comment
 * @param {string} arg1
 */
function test (arg1: string, arg2) {
   const s = <number>0.004e5;
   const foo = x + y;
   const template = `sdf ${foo}`;
   const template2 = `sdf ${(props) => props.change}`;
}

-class Foo {
+class Animal {
   constructor () {
   }

   testFn () {

   }
}
const animal: Animal = new Animal();
const fnType: typeof test;
func GetTitleFunc(style string) func(s string) string {
  switch strings.ToLower(style) {
  case "go":
    return strings.Title
  case "chicago":
    return transform.NewTitleConverter(transform.ChicagoStyle)
  default:
    return transform.NewTitleConverter(transform.APStyle)
  }
}