Skip to content
A Simple and Minimalist theme for Hugo with a focus on typography and content.
Branch: master
Clone or download
Latest commit b8496dc Oct 1, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Add funding.yml Oct 1, 2019
archetypes Add archetype for gallery index Apr 14, 2019
assets/sass Use Hugo Pipes for Sass (close #44) Mar 19, 2019
docs Update docs Oct 1, 2019
exampleSite Update docs Oct 1, 2019
layouts Update docs Oct 1, 2019
resources/_gen/assets/sass/sass Update docs Oct 1, 2019
scripts Update docs Oct 1, 2019
static Update links, add docs/ Mar 18, 2019
.gitignore Update docs Oct 1, 2019
.travis.yml Minor updates Jul 22, 2019
LICENSE Update license (close #57) Oct 1, 2019 Update name Jul 25, 2019
theme.toml Update license (close #57) Oct 1, 2019

Call me Sam: a theme for Hugo

Netlify Status Build Status Latest Release

Main page screenshot

Sam is a Simple and Minimalist theme for Hugo. It lets you categorize and showcase your content the way you want to.

Focused on content and typography, the stylized index page is really just a list of navigation links that you can set in your config.toml. This versatile design is limited only by your imagination, as you can make it say anything you like. Here are some ideas.

Index page iterations.


  • Showcase content
    • Content-focused page templates for list pages, single pages, and posts
    • A responsive CSS grid gallery page that renders from images in your Page Bundle
  • Customize
    • Custom navigation menu set via config.toml
    • Custom footer text
  • Developer-approved
    • Syntax highlighting
    • Share-ready pages with Open Graph and Twitter metadata you can customize in config.toml and page front-matter
    • Effortless use of Hugo Pipes to generate CSS from Sass files

Quick start

1. Get the theme

Run from the root of your Hugo site:

$ git clone themes/sam

Alternatively you can include this repository as a git submodule. This makes it easier to update this theme if you have your Hugo site in git as well. For this you need to run:

$ git submodule add themes/sam

2. Configure your site

From the exampleSite, copy config.toml to the root folder of your Hugo site and change the fields as you like. There are helpful hints in the file.

3. Create pages


$ hugo new

Where page can be anything you like. A contact page, a bio, dates for your upcoming world tour... Anything!

4. Design your main menu and index page

In config.toml, customize the entries for [[params.mainMenu]] however you like. You can have as many or as few entries as you like. You can even include external links.

This list comprises the index page and part of the navigation menu at the bottom of single content pages. Here's an example:

    link = "/photography"
    text = "photography"

    link = "/posts"
    text = "writing"

    link = "/about"
    text = "who dis?"

Preview your site locally

Use Hugo's built-in server to see your site in action as you make changes.

$ hugo serve -t sam

Visit localhost:1313 in your browser to see a live preview of your site.


To create a new post, run:

$ hugo new posts/

Image gallery

To create an image gallery, place all the files you want included in your Page Bundle. The directory structure might then look like this:

 └── gallery/
     └── images/
         ├── file_1.jpg
         ├── file_2.jpg
         └── file_3.jpg

To automagically generate a gallery from the images, set type: "gallery" in the front-matter of You can also set other options for the gallery:

  • The gallery title
  • The page link with url
  • The maxWidth of the resized images
  • Whether you want the images to link to the full size files, with clickablePhotos

Here is an example of a gallery's

title: "Portraits"
type: "gallery"
url: "/portrait-gallery"
maxWidth: "800x"
clickablePhotos: true

In order to create more than one gallery, create multiple Page Bundles with images and type: "gallery" defined in the front matter. For example:

 | └── gallery/
 |     └──
 |     └── images/
 |         ├── file_1.jpg
 |         ├── file_2.jpg
 |         └── file_3.jpg
 └── portfolio/
     └── images/
         ├── file_1.jpg
         ├── file_2.jpg
         └── file_3.jpg

That's it! Sam's gallery layout template will automagically build the page from your images.

Editing the theme

This theme uses Hugo Pipes to compile, autoprefix, and minify its CSS styles from the included Sass files. You can run the built-in server to preview the site as you make changes to the Sass files!


Pull requests for bug fixes and enhancements are welcome.

Open source themes like this one would not be possible without some amazing contributors. Thank you!


Copyright (C) 2018-2019 Victoria Drake

Licensed under AGPL-3.0

You can’t perform that action at this time.