The "figure" Shortcode

Hugo has figure shortcode built in, so you can easily add figcaptions or hyperlink rel attributes to images. Documentations can be found here: https://gohugo.io/content-management/shortcodes/#figure This theme has 3 CSS classes made for figure elements: big: images will break the width limit of main content area. left: images will float to the left. right: images will float to the right. If a figure has no class set, the image will behave just like a normal markdown image: !
December 24, 2018 Posted in <a href="/tags/demo/" rel="category tag">demo</a>, <a href="/tags/image/" rel="category tag">image</a>

Post With Featured Image

Just define the image URL in the content’s front matter, the featured image will be displayed as the background. For example: — image: https://picsum.photos/1024/768/?random — This is an array, you can set multiple urls, only the first url will be used. These images is also used in Twitter Cards and the Open Graph metadata.
October 1, 2018 Posted in <a href="/tags/demo/" rel="category tag">Demo</a>, <a href="/tags/image/" rel="category tag">Image</a>

Creating a New Theme

Introduction This tutorial will show you how to create a simple theme in Hugo. I assume that you are familiar with HTML, the bash command line, and that you are comfortable using Markdown to format content. I’ll explain how Hugo uses templates and how you can organize your templates to create a theme. I won’t cover using CSS to style your theme. We’ll start with creating a new site with a very basic template.

(Hu)go Template Primer

Hugo uses the excellent [Go][] [html/template][gohtmltemplate] library for its template engine. It is an extremely lightweight engine that provides a very small amount of logic. In our experience that it is just the right amount of logic to be able to create a good static website. If you have used other template systems from different languages or frameworks you will find a lot of similarities in Go templates. This document is a brief primer on using Go templates.
April 2, 2014 Posted in <a href="/tags/go/" rel="category tag">go</a>, <a href="/tags/golang/" rel="category tag">golang</a>, <a href="/tags/templates/" rel="category tag">templates</a>, <a href="/tags/themes/" rel="category tag">themes</a>, <a href="/tags/development/" rel="category tag">development</a>

Getting Started with Hugo

Step 1. Install Hugo Go to Hugo releases and download the appropriate version for your OS and architecture. Save it somewhere specific as we will be using it in the next step. More complete instructions are available at Install Hugo Step 2. Build the Docs Hugo has its own example site which happens to also be the documentation site you are reading right now. Follow the following steps: Clone the Hugo repository Go into the repo Run hugo in server mode and build the docs Open your browser to http://localhost:1313 Corresponding pseudo commands:
April 2, 2014 Posted in <a href="/tags/go/" rel="category tag">go</a>, <a href="/tags/golang/" rel="category tag">golang</a>, <a href="/tags/hugo/" rel="category tag">hugo</a>, <a href="/tags/development/" rel="category tag">development</a>