Hugo-Shortcodes/README.md

47 lines
1.4 KiB
Markdown
Raw Permalink Normal View History

2022-01-14 15:49:32 +01:00
# Hugo Shortcodes
2022-01-14 14:01:04 +01:00
2022-01-14 15:49:32 +01:00
A Collection of useful Hugo Shortcodes
2022-01-14 15:46:24 +01:00
2022-01-14 15:47:16 +01:00
- ## [Highlight Boxes](highlight)
2022-01-14 23:32:59 +01:00
Add Highlight Boxes to your Website
2022-01-14 15:49:58 +01:00
![Example Highlight Boxes in Hugo](highlight/highlights.png)
2022-01-14 23:32:59 +01:00
2022-01-14 15:47:16 +01:00
- ## [Post Archive](post_archive)
2022-01-14 23:32:59 +01:00
Add an Archive of your Posts to your Website
2022-01-14 15:49:58 +01:00
![Example Post Archive in Hugo](post_archive/post_archive.png)
2022-01-14 23:32:59 +01:00
2022-01-14 15:47:16 +01:00
- ## [Inserting Raw HTML](rawhtml)
2022-01-14 23:32:59 +01:00
Insert raw HTML Code anywhere
```hugo
2022-01-16 15:06:27 +01:00
{{< rawhtml >}}
<h1>your html code here</h1>
<p style="color: yellow;">Example HTML</p>
{{< /rawhtml >}}
```
2022-01-14 15:46:24 +01:00
![Example Inserting Raw HTML in Hugo](rawhtml/rawhtml.png)
2022-01-14 23:32:59 +01:00
2022-01-14 15:47:16 +01:00
- ## [Table of Contents](table_of_contents)
2022-01-14 23:32:59 +01:00
Add a automatically generated Table of Contents to any Page/Post on your Website
![Example Table of Contents in hugo](table_of_contents/table_of_contents.png)
2022-01-14 23:33:29 +01:00
- ## [Search Engine Optimization](search_engine_optimization)
Add automatically generated Search Engine Optimization to your Website
```html
<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" />
```