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.
- Showcase content
- Content-focused page templates for list pages, single pages, and posts
- A responsive CSS grid gallery page that renders from a folder of images
- Customize
- Custom navigation menu set via
config.toml - Custom footer text
- Custom navigation menu set via
- Developer-approved
- Syntax highlighting
- Share-ready metadata set via
config.toml(OpenGraph and Twitter Cards integration) - Easy-to-navigate pug and Sass files included
Run from the root of your Hugo site:
$ git clone https://github.com/vickylai/hugo-theme-sam.git themes/samAlternatively 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 https://github.com/vickylai/hugo-theme-sam.git themes/samFrom 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.
Run:
$ hugo new page.mdWhere page can be anything you like. A contact page, a bio, dates for your upcoming world tour... Anything!what I'd describe as line drawing, pretty whimsical and progressive illustration.
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:
[[params.mainMenu]]
link = "/photography"
text = "photography"
[[params.mainMenu]]
link = "/posts"
text = "writing"
[[params.mainMenu]]
link = "/about"
text = "who dis?"
Use Hugo's built-in server to see your site in action as you make changes.
$ hugo serve -t samVisit localhost:1313 in your browser to see a live preview of your site.
To create a new post, run:
$ hugo new posts/your-post-title.mdAll the theme's pug and sass files are included. You can compile these to HTML and CSS respectively using the npm scripts included in package.json.
Prerequisites:
- Node.js and npm: https://www.npmjs.com/get-npm
To install all dependencies:
$ npm installAvailable commands are:
npm run build:pugcompiles pug files to HTMLnpm run build:sasscompiles Sass files to compressed CSSnpm run autoprefixerautoprefixes the compiled CSSnpm run builddoes all the abovenpm run watchwatches Sass files for changes and automatically recompiles and autoprefixes the CSS
Pull requests for bug fixes and enhancements are welcome.
Thank you to: @paskal, @crownsedge, @jazzi, @hakamadare, @mfg92, @Hanzei, and @lx4r!
Copyright (C) 2018 Vicky Lai
Licensed under AGPL-3.0

