# Cool Hugo Tips & Tricks (Compilation)

**URL:** <https://discourse.gohugo.io/t/cool-hugo-tips-tricks-compilation/37761>\
**Category:** tips & tricks\
**Created:** [March 19, 2022, 9:40pm UTC](https://discourse.gohugo.io/t/cool-hugo-tips-tricks-compilation/37761 "2022-03-19T21:40:01Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon44707125](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@anon44707125](https://discourse.gohugo.io/u/anon44707125)\
**Post date:** [March 19, 2022, 9:40pm UTC](https://discourse.gohugo.io/t/cool-hugo-tips-tricks-compilation/37761/1 "2022-03-19T21:40:01Z")

</div>

1. [Cool sites that run Hugo](https://discourse.gohugo.io/t/cool-sites-that-run-hugo/36815).
2. [Adding an anchor link next to a header](https://discourse.gohugo.io/t/adding-anchor-next-to-headers/1726/24).

---

<div class="post-metadata">

**Author:** ![anon44707125](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@anon44707125](https://discourse.gohugo.io/u/anon44707125)\
**Post date:** [March 19, 2022, 9:40pm UTC](https://discourse.gohugo.io/t/cool-hugo-tips-tricks-compilation/37761/2 "2022-03-19T21:40:36Z")

</div>

1. [Concepts of Hugo, an introduction for beginners](https://discourse.gohugo.io/t/concepts-of-hugo-an-introduction-for-beginners/30751).
2. [Building a cookie consent opt-in function for Hugo](https://discourse.gohugo.io/t/building-a-cookie-consent-opt-in-function-for-hugo/30954).

---

<div class="post-metadata">

**Author:** ![anon44707125](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@anon44707125](https://discourse.gohugo.io/u/anon44707125)\
**Post date:** [March 19, 2022, 9:41pm UTC](https://discourse.gohugo.io/t/cool-hugo-tips-tricks-compilation/37761/3 "2022-03-19T21:41:22Z")

</div>

1. [Create description from the summary](https://discourse.gohugo.io/t/create-description-from-summary/36676). (I use this to remove the space between the last character and the ellipsis).
2. [Concatenate two or more CSS or JS files](https://discourse.gohugo.io/t/concatenate-2-x-js-files-to-inline-script/25896/3).

---

<div class="post-metadata">

**Author:** ![anon44707125](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@anon44707125](https://discourse.gohugo.io/u/anon44707125)\
**Post date:** [March 19, 2022, 9:42pm UTC](https://discourse.gohugo.io/t/cool-hugo-tips-tricks-compilation/37761/4 "2022-03-19T21:42:11Z")

</div>

1. [Show content ONLY on the first page of pagination](https://discourse.gohugo.io/t/howto-show-content-only-on-first-page-of-pagination/7288).
2. [Integrating Snipcart with Hugo](https://discourse.gohugo.io/t/integrating-snipcart-with-hugo/1559/6).

---

<div class="post-metadata">

**Author:** ![anon44707125](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@anon44707125](https://discourse.gohugo.io/u/anon44707125)\
**Post date:** [March 19, 2022, 9:42pm UTC](https://discourse.gohugo.io/t/cool-hugo-tips-tricks-compilation/37761/5 "2022-03-19T21:42:41Z")

</div>

1. [Run Hugo on Android](https://discourse.gohugo.io/t/run-hugo-on-android/5760).
2. [Related Posts by Section](https://discourse.gohugo.io/t/related-posts-by-section/36495/3).

---

<div class="post-metadata">

**Author:** ![anon44707125](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@anon44707125](https://discourse.gohugo.io/u/anon44707125)\
**Post date:** [March 19, 2022, 9:43pm UTC](https://discourse.gohugo.io/t/cool-hugo-tips-tricks-compilation/37761/6 "2022-03-19T21:43:16Z")

</div>

1. [Embedding Youtube in a privacy friendly way](https://discourse.gohugo.io/t/embedding-youtube-in-a-privacy-friendly-way/35784).
2. [Difference between .`Plain`, `.PlainWords`, `plainify` etc.](https://discourse.gohugo.io/t/help-needed-difference-between-plain-plainwords-and-plainify/5681).

---

<div class="post-metadata">

**Author:** ![anon44707125](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@anon44707125](https://discourse.gohugo.io/u/anon44707125)\
**Post date:** [March 19, 2022, 9:44pm UTC](https://discourse.gohugo.io/t/cool-hugo-tips-tricks-compilation/37761/7 "2022-03-19T21:44:52Z")

</div>

1. [How are you implementing site search](https://discourse.gohugo.io/t/how-are-you-implementing-site-search/986).
2. [Adding comments to templates](https://discourse.gohugo.io/t/how-to-add-comments-in-a-template/75/3).

---

<div class="post-metadata">

**Author:** ![maiki](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/maiki/32/16384_2.png) [@maiki](https://discourse.gohugo.io/u/maiki)\
**Post date:** [March 20, 2022, 1:18am UTC](https://discourse.gohugo.io/t/cool-hugo-tips-tricks-compilation/37761/8 "2022-03-20T01:18:11Z")

</div>

Perhaps a mod could make the topic a wiki, and @anon44707125 can edit it as one list there.

---

<div class="post-metadata">

**Author:** ![baker](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/baker/32/15845_2.png) [@baker](https://discourse.gohugo.io/u/baker)\
**Post date:** [March 20, 2022, 8:51am UTC](https://discourse.gohugo.io/t/cool-hugo-tips-tricks-compilation/37761/9 "2022-03-20T08:51:38Z")

</div>

May I?  
15. [Automatic WEBP image generation/conversion](https://discourse.gohugo.io/t/has-anyone-a-webp-shortcode/35391/2)  
16. [How to open links in a new tab](https://agrimprasad.com/post/hugo-goldmark-markdown/#:~:text=Thus%2C%20if%20you%20want%20to,_blank%22%20attribute%20to%20the%20links.) (links to an external site)

---

<div class="post-metadata">

**Author:** ![anon44707125](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@anon44707125](https://discourse.gohugo.io/u/anon44707125)\
**Post date:** [March 20, 2022, 9:23am UTC](https://discourse.gohugo.io/t/cool-hugo-tips-tricks-compilation/37761/10 "2022-03-20T09:23:52Z")

</div>

Cool idea. Unfortunately, I am only allowed to post two comments per post.

---

<div class="post-metadata">

**Author:** ![anon44707125](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@anon44707125](https://discourse.gohugo.io/u/anon44707125)\
**Post date:** [March 20, 2022, 9:38am UTC](https://discourse.gohugo.io/t/cool-hugo-tips-tricks-compilation/37761/11 "2022-03-20T09:38:16Z")

</div>

1. [Disabling RSS for sections](https://discourse.gohugo.io/t/disabling-rss-for-sections/10479).
2. [Set and show related posts from front matter variables](https://discourse.gohugo.io/t/getpage-from-url/36978/9) (use filename as the link)

---

<div class="post-metadata">

**Author:** ![maiki](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/maiki/32/16384_2.png) [@maiki](https://discourse.gohugo.io/u/maiki)\
**Post date:** [March 20, 2022, 5:42pm UTC](https://discourse.gohugo.io/t/cool-hugo-tips-tricks-compilation/37761/12 "2022-03-20T17:42:25Z")

</div>

Eventually you will become a “[basic](https://discourse.gohugo.io/badges/1/basic)” user on this site, and those restrictions won’t apply to your account; at that time you might reassess how to collect the links. 🙂

---

<div class="post-metadata">

**Author:** ![anon44707125](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@anon44707125](https://discourse.gohugo.io/u/anon44707125)\
**Post date:** [March 20, 2022, 6:31pm UTC](https://discourse.gohugo.io/t/cool-hugo-tips-tricks-compilation/37761/13 "2022-03-20T18:31:28Z")

</div>

1. [Preview your site on any device on your network](https://zwbetz.com/preview-your-site-from-any-device-on-your-network-with-these-hugo-server-options/).
2. [Split an article into multiple pages](https://discourse.gohugo.io/t/splitting-an-article-into-multiple-pages/29161/3)

---

<div class="post-metadata">

**Author:** ![anon44707125](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@anon44707125](https://discourse.gohugo.io/u/anon44707125)\
**Post date:** [March 20, 2022, 8:14pm UTC](https://discourse.gohugo.io/t/cool-hugo-tips-tricks-compilation/37761/14 "2022-03-20T20:14:12Z")

</div>

I think either the system did not [grant that automatically](https://blog.discourse.org/2018/06/understanding-discourse-trust-levels/) or they are self-assigned by the admin. I have been here for over a month, and in my initial enthusiasm about Hugo, I have done a lot in this forum! 😊

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [March 20, 2022, 8:23pm UTC](https://discourse.gohugo.io/t/cool-hugo-tips-tricks-compilation/37761/15 "2022-03-20T20:23:05Z")

</div>

Frequently changing your username, as you did in February, makes moderators… suspicious. I have unlocked your trust level.

---

<div class="post-metadata">

**Author:** ![maiki](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/maiki/32/16384_2.png) [@maiki](https://discourse.gohugo.io/u/maiki)\
**Post date:** [March 20, 2022, 9:16pm UTC](https://discourse.gohugo.io/t/cool-hugo-tips-tricks-compilation/37761/16 "2022-03-20T21:16:06Z")

</div>

Glad we worked that out… now can we collect those in a wiki topic? 🙂

---

<div class="post-metadata">

**Author:** ![anon44707125](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@anon44707125](https://discourse.gohugo.io/u/anon44707125)\
**Post date:** [March 20, 2022, 11:23pm UTC](https://discourse.gohugo.io/t/cool-hugo-tips-tricks-compilation/37761/17 "2022-03-20T23:23:01Z")

</div>

Not yet there yet. Will do once I reach that trust level. I have over 70 of these tips saved.

---

<div class="post-metadata">

**Author:** ![anon44707125](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@anon44707125](https://discourse.gohugo.io/u/anon44707125)\
**Post date:** [March 20, 2022, 11:24pm UTC](https://discourse.gohugo.io/t/cool-hugo-tips-tricks-compilation/37761/18 "2022-03-20T23:24:27Z")

</div>

Good to know. I am familiar with discourse via Jekyll and Cloudflare, so I wondered why this forum was acting differently that te other two.

---

<div class="post-metadata">

**Author:** ![alexandros](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@alexandros](https://discourse.gohugo.io/u/alexandros)\
**Post date:** [March 21, 2022, 5:59am UTC](https://discourse.gohugo.io/t/cool-hugo-tips-tricks-compilation/37761/19 "2022-03-21T05:59:42Z")

</div>

The forum wouldn’t have acted differently had you not opened several duplicate accounts and created several support tickets concurrently.

The Discourse forum software has the tools to detect this kind of activity.

It’s good that @jmooring decided to unlock your trust level but please note that you need to respect the [forum rules](https://discourse.gohugo.io/t/help-keep-this-forum-practical/31644) at all times.

P.S. Also I made the first post into a Wiki -for what it’s worth-.
