Back Home

Some Hugo notes:

Site.go lists the following variables

Pages       Pages
	Tmpl        Template
	Taxonomies  TaxonomyList
	Source      source.Input
	Sections    Taxonomy
	Info        SiteInfo
	Shortcodes  map[string]ShortcodeFunc
	Menus       Menus
	timer       *nitro.B
	Target      target.Output
	Alias       target.AliasPublisher
	Completed   chan bool
	RunMode     runmode
	params      map[string]interface{}
	draftCount  int
	futureCount int

To iterate on Section

  {{ range $key, $element := .Site.Sections }}
      <li><a href="">{{$key}}</a></li>
hugo.txt · Last modified: 2014/10/03 09:15 by root
RSS - 200 © CrosswireDigitialMedia Ltd