Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
archetypes
content
static
themes/armno
.editorconfig
.gitignore
config.yaml
readme.md

readme.md

armno.in.th

My blog. Built with Hugo. Migrated from armno/armno.github.io.

Development

$ hugo serve -D

Creating a new post

$ hugo new post/<post-title>/index.md

picture shortcode

paramters:

  • wrapper-class: CSS class(or classes) for the wrapper element of the image (<p>).
  • img-class: CSS class(or classes) for the <img> itself.
  • src
  • alt
{{< picture wrapper-class="semi-full" img-class="nom" src="images/platoo.jpg" alt="test" >}}

outputs:

<p class="media semi-full">
  <img class="nom" src="images/platoo.jpg" alt="test">
</p>

picture-lazy shortcode for lazy-loaded pictures

parameters:

  • wrapper-class
  • src
  • alt
{{< picture-lazy wrapper-class="semi-full" src="images/platoo.jpg" alt="test" >}}

outputs:

<p class="media lazy-wrapper semi-full">
  <img class="lazy" data-src="images/platoo.jpg" alt="test">
</p>