Skip to content

General-purpose SSGs

Related pages: Templating

Hugo

Content management

Front matter

Development

To preview the website locally, run:

hugo server

Alternatively, run:

hugo server -p 1313 -D
  • The -D flag tells Hugo to include draft content.
  • The -p 1313 flag sets the server port number(1) to 1313 (you can replace it with another number).

    1. Port (computer networking) - Wikipedia

      In computer networking, a port is a communication endpoint. At the software level within an operating system, a port is a logical construct that identifies a specific process or a type of network service. A port is uniquely identified by a number, the port number, associated with the combination of a transport protocol and the network IP address. Port numbers are 16-bit unsigned integers.

Templating

See also the Templating page in the Research infrastructure chapter.

Jekyll