A Collection of useful Hugo Shortcodes
Go to file
2022-01-17 23:42:53 +01:00
highlight Add description to Readme 2022-01-14 23:25:00 +01:00
post_archive Add install step 2022-01-16 15:29:47 +01:00
rawhtml Revert "change code to httml" 2022-01-16 15:09:42 +01:00
search_engine_optimization fix tailing comma in keyword generation 2022-01-17 23:42:53 +01:00
table_of_contents Fix title and add description 2022-01-14 23:33:48 +01:00
LICENSE Initial commit 2022-01-14 14:01:04 +01:00
README.md Revert "change code to httml" 2022-01-16 15:09:42 +01:00

Hugo Shortcodes

A Collection of useful Hugo Shortcodes

  • Highlight Boxes

    Add Highlight Boxes to your Website

    Example Highlight Boxes in Hugo

  • Post Archive

    Add an Archive of your Posts to your Website

    Example Post Archive in Hugo

  • Inserting Raw HTML

    Insert raw HTML Code anywhere

    {{< rawhtml >}}
        <h1>your html code here</h1>
        <p style="color: yellow;">Example HTML</p>
    {{< /rawhtml >}}
    

    Example Inserting Raw HTML in Hugo

  • Table of Contents

    Add a automatically generated Table of Contents to any Page/Post on your Website

    Example Table of Contents in hugo

  • Search Engine Optimization

    Add automatically generated Search Engine Optimization to your Website

    <meta name="keywords" content="default-tag1, default-tag2, default-tag3" />
    <meta name="robots" content="index, follow" />
    <link rel="canonical" href="http://localhost:1313/posts/example-post" />
    <link rel="alternate" href="http://localhost:1313/posts/example-post" hreflang="en-us" />
    <link rel="alternate" type="application/rss+xml" href="http://localhost:1313/index.xml" title="Example Blog" />