[ ] Check how to compile theme changes
- hugo, a go framework for build websites.
In this blog I have to types of exports:
- Blog posts
- Slides with RevealJS
Both, have the same source; the ORG
mode of emacs. I'm using Doom Emacs as a framework configuraton network.
To export blog post from .org
to markdown (.md
) I use the ox-hugo
- Use ORG mode to create drafts.
- Export ORG to markdown using the
SPC m e m m
keybindings. - Add tags in the exported markdown file
To export a slide from .org
to RevealJS I use the org-reveal
- Use ORG mode to create drafts.
- Export ORG to RevealJS using the
SPC m e R R
keybindings. - Open in your browser the exported file
Command to run the hugo server
hugo server
Command to build the page
hugo
From these folder structure, below I list the relevant ones:
content/images
: folder with all the local imagescontent/post
: folder with all posts. They should be in markdownsrc/
: folder with in progress posts. They write in.organd should exported to markdownthemes/m10c
: folder with the hugo themes for the blog.
- filenames that start with the
***
prefix are in progress posts. - filenames that start with the
*
prefix are not published posts. - filenames has a timestamp after prefix.
- filenames that has an
en
in the name, mean that the post is in English. - filenames that has an
es
in the name, mean that the post is in Spanish. themes/m10c
: folder with hugo themes
To add tags to the posts, at the beginning of each file we have to set the tags property with an array of the relevant tags. Below it I share an example.
+++
title = "Capricornio 26"
description = "Proyecto mobiliario sobre licorera bogotana"
date = 2011-06-21T02:13:50Z
author = "Sergio BenΓtez"
tags = [
"design",
"furniture",
]
# What is this?
categories = [
"development",
"golang",
]
+++