Static Website Generators

Kaitlin Newson

Digital Projects Librarian, Scholars Portal

@kaitlinnewson |

What is a static website?

  • Made up of HTML, CSS, & JavaScript
  • No back-end scripting languages, databases, or CMS
  • Displayed to user as it exists on the server

What is a static website generator?

  • Template language & markup language
  • Compiles into HTML/CSS files
  • Built-in server for testing
  • Many options - 182 on
  • Most popular is Jekyll (built in Ruby)


  • Performance & speed
  • Less technical maintenance
  • Less resource intensive
  • Security benefits
  • Version control
  • Simple hosting, e.g. Github pages, OLRC


  • Learning curve
  • No editing environment (but there are options)
  • No dynamic elements


Why Hugo?

  • Speed
  • Less dependencies
  • Built-in multilingual functionality
  • Integrations (Google analytics, formspree, disqus)

Basic Hugo workflow feat. maps! |


snap package, homebrew, single binary download

Create the site

hugo new site topomaps

▸ archetypes/
▸ content/
▸ data/
▸ i18n/
▸ layouts/
▸ static/
▸ themes/

Add a theme

a screenshot of the hugo creative portfolio theme page on hugo's website

cd themes
git clone

Theme example site

Many themes have an example site that you can copy to get started

cp -r themes/hugo-creative-portfolio-theme/exampleSite/* .

Built-in development server

Configuration & Content

  • The configuration file (toml, yaml, or json) contains menus, metadata, etc.
  • Content lives in the content/ and data/ folders
  • Assets (e.g. images, custom CSS & JavaScript) live in static/


baseurl = ""
theme = "hugo-creative-portfolio-theme"
# Enable comments by entering your Disqus shortname
disqusShortname = ""
# Enable Google Analytics by entering your tracking code
googleAnalytics = "UA-9010354-11"
canonifyURLs = false
defaultContentLanguage = "en"
defaultContentLanguageInSubdir = false

logourl = ""
style = "blue"
email = ""

github = ""
email = ""

languageName = "English"
title = "Historical Topographic Map Digitization Project"
languageCode = "en"
weight = 1
logo = "img/ocul.png"
logoalt = "Ontario Council of University Libraries"
name = "Home"
url = ""
name = "About the Project"
url = "about-project/"
name = "About the Maps"
url = "about-maps/"
name = "Collection Highlights"
url = "highlights/"
name = "Using the Maps"
url = "using-maps/"
name = "Full Collection"
url = "collection/"
name = "FAQ"
url = "faq/"
name = "Contact"
url = "contact/"

languageName = "Français"
title = "Projet de numérisation de la carte topographique historique"
languageCode = "fr"
weight = 2
logo = "img/cbou.png"
logoalt = "Conseil des bibliothèques universitaires de l'Ontario"
name = "Accueil"
url = "fr/"
name = "À propos du projet"
url = "fr/about-project/"
name = "Au sujet des cartes"
url = "fr/about-maps/"
name = "Points saillants de la collection"
url = "fr/highlights/"
name = "Utiliser les cartes"
url = "fr/using-maps/"
name = "Parcourir la collection au complet"
url = "fr/collection/"
name = "FAQ"
url = "fr/faq/"
name = "Nous contacter"
url = "fr/contact/"

Content creation

Hugo content is written in Markdown, with added HTML

date = "2017-03-16"
title = "Using the Maps"

[Scholars GeoPortal]( is an online geoportal that allows users to find and download geospatial data and maps. Using the GeoPortal and the built-in map index navigation, users can view map availability by location, and, add maps to the map viewer to explore online. The GeoPortal also supports features to layer multiple maps, and layer other data to visualize changes over time. Maps can be downloaded for any purpose and available in GeoTIFF or JPG formats. Follow the steps below to learn more about how to access and use the collection in the GeoPortal.

To search for maps directly by place name without entering the GeoPortal, go to [_Full Collection_](../collection/).

## Finding Maps

### Using the index

The first step to accessing the historical topographic map collection is to locate and use the index navigation aid. There are two sets of historical topographic map collections available in the Scholars GeoPortal, each with their own index map for navigation, one for the 1:63,360 and 1:25,000 scale map sets. Using the index navigation, you can view map availability by selecting the area of interest found on the map. 

In Scholars GeoPortal, maps are available through an interactive online index display. To access the map indexes for different map scales, go directly to the Scholars GeoPortal:

- [1:63 360 Index Navigation](
- [1:25 000 Index Navigation](

You should now be presented with the index navigation aid to select maps of interest. 

Screen capture of the 1:63,360 index map, loaded on the map viewer in the Scholars GeoPortal.


  • We can add custom CSS or JavaScript, or override the existing templates
  • Templates determine the layout of the site
  • Hugo templates use the Go templating language

Go templates

Building the site

Build the public files, then copy them to the web server

cd topomaps

▸ collection/
▸ en/
▸ img/
▸ maps/
▸ about-maps/
▸ faq/
▸ about-project/
▸ contact/
▸ fr/
▸ tags/
▸ categories/
▸ css/
▸ highlights/
▸ js/
▸ using-maps/