# Notrack An original, minimal theme with a focus on self-sufficiency and decentralization. By default, Notrack does not rely on any third parties to serve your website. The only exception is Disqus comments, which are not used by default (see [Adding comments](#adding-comments) below). # Table of contents * [Notrack](#notrack) * [Table of contents](#table-of-contents) * [Screenshot](#screenshot) * [Example site `config`](#example-site-config) * [Shortcodes](#shortcodes) * [User CSS](#user-css) * [Navigation bar](#navigation-bar) * [How to add a page to the navigation bar](#how-to-add-a-page-to-the-navigation-bar) * [How to add a page to drop down menu](#how-to-add-a-page-to-drop-down-menu) * [How tos](#how-tos) * [How to create a home page](#how-to-create-a-home-page) * [How to create a blog](#how-to-create-a-blog) * [Adding comments](#adding-comments) * [How to create a gallery](#how-to-create-a-gallery) * [How to create a resume](#how-to-create-a-resume) * [How to display social links](#how-to-display-social-links) * [Other projects used in this theme](#other-projects-used-in-this-theme) * [Contribution](#contribution) # Screenshot ![Screenshot of the theme](https://raw.githubusercontent.com/gevhaz/hugo-theme-notrack/master/images/screenshot.png) # Try it out yourself ## Dependencies You will need the extended edition of Hugo in order to use this theme. This is the edition Hugo's developers recommend for most users. You probably already have it, but you can double check with: ``` $ hugo version hugo v0.115.4+extended linux/amd64 BuildDate=unknown ``` Note the "+extended" after the version number. Information about the standard and extended versions may be found within Hugo's [installation instructions](https://gohugo.io/installation/). ## Running the example site on localhost If you want to try out the theme with an example page, do the following: ```shell $ git clone https://github.com/gevhaz/hugo-theme-notrack $ mv hugo-theme-notrack notrack $ cd notrack/exampleSite/ $ hugo server -D --themesDir ../.. ``` You can now see the example website in your browser and interact with it. Hugo will print instructions for what address to use. Usually it is `http://localhost:1313/`. # Example site configuration file Here is a working `config.yaml`: ```yaml baseURL = "http://example.org/" languageCode = "en-us" title = "Lawyer Hugo Grotius" theme = "notrack" newContentEditor = "nvim" mainSections = ["blog"] # disqusShortname = "example" paginate = 4 [params] author = "Hugo de Groot" siteHeading = "Hugo Grotius" # defaults to author favicon = "hugo_grotius.png" # Adds a small icon next to the page title in a tab showBlogLatest = true mainSections = ["blog"] showTaxonomyLinks = false nBlogLatest = 4 # number of blog post om the home page blogLatestHeading = "My writing" footer = "This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License." [params.social] github = "example" linkedin = "example" email = "example@example.com" mastodon = "example" medium = "example" keybase = "example" [taxonomies] year = "year" month = "month" tags = "tags" categories = "categories" [permalinks] blog = "/blog/:year/:month/:slug" ``` # Shortcodes | Category | Shortcode | Description | | :--- | :--- | :--- | | **Contact info** | `contact-box` | Displays contact info set in `params.social` | | | `social` | Displays contact info set in `params.social` | | **Photo Gallery** | `gallery-category` | Container for `gallery-photo` shortcodes | | | `gallery-modal` | HTML to allow for full page view of gallery photos | | | `gallery-photo` | Include a photo in a gallery | | | `gallery-script` | Script to allow for full page view of gallery photos | | **General** | `image` | Image for use in any page. See example in [How to create a blog](#how-to-create-a-blog) | | | `video` | Similar to an ordinary `