Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Blog posts

Michael Noronha edited this page Jun 15, 2018 · 7 revisions

Blog posts

The core of this theme is a Blog, but you can decide to not have this section if you want a personal website for example. The last 5 months with articles will be displayed on the homepage, and all articles will be available in the blog section.

If you want to add a blog section and a post, just type :

$ hugo new blog/your-new-post.md

Header

This is a example header for a blog article :

+++
date = "2016-12-18"
tags = ["tag1", "tag2"]
title = "Example article"
description = "Example description"
meta_img = "./images/example.jpg"
hacker_news_id = "XXXXXXXX"
lobsters_id = "XXXXXX"
author = "Test author"
+++

The majority of this attribute are optionals, you only need date and title.

See twitter cards to understand the meta_img attribute and social links for more information about linking to content shared to Hacker News and Lobsters.

Clone this wiki locally