All Projects → EmielH → Tale Hugo

EmielH / Tale Hugo

Licence: mit
A port of the Tale theme for Hugo. Tale is a minimal theme curated for storytellers.

Labels

Projects that are alternatives of or similar to Tale Hugo

Play With Go
Hands-on, interactive tutorials for programming in Go.
Stars: ✭ 185 (-5.13%)
Mutual labels:  scss
Media Manager
A simple file browser and up-loader for Laravel written in Vue.JS
Stars: ✭ 190 (-2.56%)
Mutual labels:  scss
Font Awesome
Shim repository for Font Awesome.
Stars: ✭ 191 (-2.05%)
Mutual labels:  scss
Minima
Minima is a one-size-fits-all Jekyll theme for writers.
Stars: ✭ 2,452 (+1157.44%)
Mutual labels:  scss
Gallery
Gallery of ggplot2 extensions
Stars: ✭ 189 (-3.08%)
Mutual labels:  scss
Termux.github.io
The main termux site and help pages.
Stars: ✭ 188 (-3.59%)
Mutual labels:  scss
Hackercouch
Hospitality for Hackers
Stars: ✭ 185 (-5.13%)
Mutual labels:  scss
Bootstrap Italia
Bootstrap Italia è un tema Bootstrap 4 conforme alle linee guida di design per i servizi web della PA
Stars: ✭ 193 (-1.03%)
Mutual labels:  scss
Include Media
📐 Simple, elegant and maintainable media queries in Sass
Stars: ✭ 2,362 (+1111.28%)
Mutual labels:  scss
Blogdown Jekyll
Automatically knit R Markdown documents, build them with Jekyll, and serve the website with servr locally
Stars: ✭ 191 (-2.05%)
Mutual labels:  scss
Focus Budget Manager
Budget Manager application built with Vue.js, Node.js, Express.js and MongoDB
Stars: ✭ 189 (-3.08%)
Mutual labels:  scss
Efarticles
EyreFree's articles.
Stars: ✭ 189 (-3.08%)
Mutual labels:  scss
Methods
The methods 18F uses to practice human-centered design.
Stars: ✭ 190 (-2.56%)
Mutual labels:  scss
Xmpp.org
xmpp.org website (builds: https://travis-ci.org/xsf/xmpp.org/builds)
Stars: ✭ 187 (-4.1%)
Mutual labels:  scss
Typed Scss Modules
🎁 Generate type definitions (.d.ts) for CSS Modules using SCSS
Stars: ✭ 192 (-1.54%)
Mutual labels:  scss
Scala Lang
sources for the Scala language website
Stars: ✭ 185 (-5.13%)
Mutual labels:  scss
Onev S Den
Blog
Stars: ✭ 190 (-2.56%)
Mutual labels:  scss
React Portfolio Template
Modern React Portfolio Template (FREE)
Stars: ✭ 188 (-3.59%)
Mutual labels:  scss
Grandstand
BBC Grandstand is a collection of common CSS abstractions and utility helper classes
Stars: ✭ 192 (-1.54%)
Mutual labels:  scss
Nuxt Sass Resources Loader
SASS resources (e.g. variables, mixins etc.) module for NuxtJs
Stars: ✭ 191 (-2.05%)
Mutual labels:  scss

Tale

Build Status

This is a port of the Tale theme for Jekyll to Hugo. Tale is a minimal Jekyll theme curated for storytellers. Checkout the demo here. I did not design this theme; I only ported it from Jekyll to Hugo.

Tale screenshot

Installation

1. Install the theme

If your site is also under version control using git, the easiest way to install this theme is to add it as a submodule. If you have not created a git repo for your project yet, you need to run git init beforehand. Inside the folder of your Hugo site, run the following command.

git submodule add https://github.com/EmielH/tale-hugo.git themes/tale

Alternatively, you can clone the theme into your project.

git clone https://github.com/EmielH/tale-hugo.git themes/tale

2. Configure Hugo

Add the following line to config.toml to tell Hugo to use the theme.

theme = "tale"

Alternatively, you can tell Hugo to use the theme with the server command.

hugo server -t tale

Additional information

For more information, read the official setup guide of Hugo.

Update the theme

If you have installed the theme as a git submodule, you can update the theme by issuing the following command inside your project folder.

git submodule update --remote --rebase

If you have cloned the theme, you can run git pull inside the theme folder.

Configuration

Menu

The top menu uses Hugo Menus, with the name of the menu being main. To turn on the menu, follow the steps there - you can either add something like this to the front-matter of your pages:

---
menu: "main"
---

... or you can add a menu section to your config file:

sectionPagesMenu = "main"

Or if you want more control, add a specific entry for each item in your menu:

[menu]
  [[menu.main]]
    identifier = "about"
    name = "About"
    title = "About"
    url = "/about/"
    weight = 0
  [[menu.main]]
    identifier = "posts"
    name = "Posts"
    title = "Posts"
    url = "/posts/"
    weight = 0

For menu internationalization/translation, see Multilingual Mode: Menus.

Internationalisation (i18n)

Tale supports using other languages than English. Language files for the texts Tale uses are provided in the i18n directory. The default language is English. To switch languages, add the key defaultContentLanguage to your config.toml file. For example:

defaultContentLanguage = "nl"

To translate texts your site uses, add an i18n folder to your site.

Feel free to submit pull requests for other translations of Tale's texts.

Hugo documentation for multilingual sites

Disqus

Tale supports Disqus integration, a comment system that empowers dynamic features to static websites. To install it, just add the key disqusShortname in your config.toml

disqusShortname = "disqus-example"

Add the parameter comments in the front-matter of the pages where you want to allow comments

---
comments: true
---

Google Analytics

Tale supports Google Analytics integration using Hugo's provided google_analytics_async template.

To enable it, add the googleAnalytics tag to your config.toml. It will be added on all pages.

googleAnalytics = "UA-133700000-0"

Custom summaries

Tale allows for writing the summary of your posts manually by setting the summary variable in the page frontmatter. If this variable is not set, the summary that Hugo automatically generates will be used.

Taxonomies

Tale has basic support for taxonomies. Taxonomy and terms pages will be generated when you have defined taxonomies, but you need to include links to these pages yourself. For example, you can add a link to a taxonomy page in header-menu.html.

Placeholder partials

The theme contains placeholder partials to make the theme more flexible and easier to adapt to your site without having to change the theme itself. These are:

  • single/header.html
  • single/footer.html

These are included in the template for a single post, at the top of the post (below the title) and at the bottom of the post, respectively. These can be used, for example, to include additional information about the post author or for related posts. Create a file /layouts/partials/single/header.html or footer.html on your own site to have it included.

  • index/introduction.html

This partial is included at the top of the list of posts on the index page, allowing you to add an introduction to your site.

Copyright message

The copyright message in the footer uses the name of the author of the site, as defined in config.toml. For example:

[Author]
    name = "Emiel"

Additional CSS files

The theme can load additional CSS files for you, e.g. to override some of the styles, or the CSS that goes with a component that you're using. To add additional CSS files, put these files in the static folder of your site and add the css parameter to config.toml, like so:

[Params]
css = ["custom.css"]

To load multiple CSS files, use the parameter like this:

[Params]
css = ["custom.css", "custom2.css"]

Acknowledgments

Thanks

License

See LICENSE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].