# My shortcodes and others articles (EN, FR)

**URL:** <https://discourse.gohugo.io/t/my-shortcodes-and-others-articles-en-fr/22212>\
**Category:** tips & tricks\
**Created:** [December 8, 2019, 1:37pm UTC](https://discourse.gohugo.io/t/my-shortcodes-and-others-articles-en-fr/22212 "2019-12-08T13:37:16Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![hucste](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/hucste/32/10014_2.png) [@hucste](https://discourse.gohugo.io/u/hucste)\
**Post date:** [December 8, 2019, 1:37pm UTC](https://discourse.gohugo.io/t/my-shortcodes-and-others-articles-en-fr/22212/1 "2019-12-08T13:37:16Z")

</div>

Hi, all

I wrote an article to promote some shortcodes, by me, to use with Hugo.

The shortcodes are for:

- element HTML **[abbr](http://doc.huc.fr.eu.org/en/web/hugo/hugo-shortcodes/#abbr)**
- an **[anchor](http://doc.huc.fr.eu.org/en/web/hugo/hugo-shortcodes/#anchor)** in same page
- citation with element HTML **[blockquote](http://doc.huc.fr.eu.org/en/web/hugo/hugo-shortcodes/#blockquote)**
- a bloc of **[code](http://doc.huc.fr.eu.org/en/web/hugo/hugo-shortcodes/#code)**
- a **[color](http://doc.huc.fr.eu.org/en/web/hugo/hugo-shortcodes/#color)** of text
- displaying a **[file](http://doc.huc.fr.eu.org/en/web/hugo/hugo-shortcodes/#file)** content
- element HTML `img` differently: **[image](http://doc.huc.fr.eu.org/en/web/hugo/hugo-shortcodes/#image)**
- element HTML **[`kbd`](http://doc.huc.fr.eu.org/en/web/hugo/hugo-shortcodes/#kbd)**
- link inside site; two versions: simple **[v1](http://doc.huc.fr.eu.org/en/web/hugo/hugo-shortcodes/#inside-v1)** , and with params **[v2](http://doc.huc.fr.eu.org/en/web/hugo/hugo-shortcodes/#inside-v2)**
- bloc alert/ **[note](http://doc.huc.fr.eu.org/en/web/hugo/hugo-shortcodes/#note)** for danger, info, success, tips or warning messages
- display **[tag](http://doc.huc.fr.eu.org/en/web/hugo/hugo-shortcodes/#tag)** correctly inside the page.
- link to the official documentation **[gohugo](http://doc.huc.fr.eu.org/fr/web/hugo/hugo-shortcodes/#gohugo)** , **[manpage](http://doc.huc.fr.eu.org/en/web/hugo/hugo-shortcodes/#manpage)** OpenBSD or **[Wikipedia](http://doc.huc.fr.eu.org/en/web/hugo/hugo-shortcodes/#wikipedia)** articles/pages.

[http://doc.huc.fr.eu.org/en/web/hugo/hugo-shortcodes/](http://doc.huc.fr.eu.org/en/web/hugo/hugo-shortcodes/)

* * *

French: Je propose dans cet article quelques un des mes shortcodes !  
_(en espérant que ça puisse aider d’autres)_

Les shortcodes créés le sont pour :

- élément HTML **[abbr](http://doc.huc.fr.eu.org/fr/web/hugo/hugo-shortcodes/#abbr)**
- une **[ancre](http://doc.huc.fr.eu.org/fr/web/hugo/hugo-shortcodes/#anchor)** dans une même page
- une citation avec l’élément HTML **[blockquote](http://doc.huc.fr.eu.org/fr/web/hugo/hugo-shortcodes/#blockquote)**
- un bloc de **[code](http://doc.huc.fr.eu.org/fr/web/hugo/hugo-shortcodes/#code)**
- une **[couleur](http://doc.huc.fr.eu.org/fr/web/hugo/hugo-shortcodes/#color)** de texte
- afficher le contenu d’un exemple de fichier **[file](http://doc.huc.fr.eu.org/fr/web/hugo/hugo-shortcodes/#file)**
- élément HTML `img` différement : **[image](http://doc.huc.fr.eu.org/fr/web/hugo/hugo-shortcodes/#image)**
- élément HTML **[`kbd`](http://doc.huc.fr.eu.org/fr/web/hugo/hugo-shortcodes/#kbd)**
- liens internes au site ; deux versions: la simple **[v1](http://doc.huc.fr.eu.org/fr/web/hugo/hugo-shortcodes/#inside-v1)** , et celles avec des paramètres **[v2](http://doc.huc.fr.eu.org/fr/web/hugo/hugo-shortcodes/#inside-v2)**
- un bloc d’alerte ou de **[note](http://doc.huc.fr.eu.org/fr/web/hugo/hugo-shortcodes/#note)** pour les messages de type _danger, info, success, tips_ ou _warning_
- afficher correctement un **[tag](http://doc.huc.fr.eu.org/fr/web/hugo/hugo-shortcodes/#tag)** à l’intérieur d’une page.
- lier vers la documentation **[gohugo](http://doc.huc.fr.eu.org/fr/web/hugo/hugo-shortcodes/#gohugo)** , une **[page du manuel](http://doc.huc.fr.eu.org/fr/web/hugo/hugo-shortcodes/#manpage)** OpenBSD ou des articles/pages **[Wikipédia](http://doc.huc.fr.eu.org/fr/web/hugo/hugo-shortcodes/#wikipedia)**.

[http://doc.huc.fr.eu.org/fr/web/hugo/hugo-shortcodes/](http://doc.huc.fr.eu.org/fr/web/hugo/hugo-shortcodes/)

* * *

My articles:

- Deploy with SFTP: [EN](http://doc.huc.fr.eu.org/en/web/hugo/hugo-deploy/), [FR](http://doc.huc.fr.eu.org/fr/web/hugo/hugo-deploy/)
- Internal search engine with JQueryUI: [EN](http://doc.huc.fr.eu.org/en/web/hugo/hugo-search/), [FR](http://doc.huc.fr.eu.org/fr/web/hugo/hugo-search-jqueryui-autocomplete/)
- Internal search engine with JQueryUI and Feed JSON: [EN](http://doc.huc.fr.eu.org/en/web/hugo/hugo-search-jqueryui-autocomplete-json/), [FR](http://doc.huc.fr.eu.org/fr/web/hugo/hugo-search-jqueryui-autocomplete-json/)
- Feed: Atom, JSON, RSS: [FR](http://doc.huc.fr.eu.org/fr/web/hugo/hugo-feed/)
- Menu nav (simple or dropdown): [FR](http://doc.huc.fr.eu.org/fr/web/hugo/hugo-menu-nav/)
- Hugo on OpenBSD: [EN](http://doc.huc.fr.eu.org/en/web/hugo/hugo-openbsd/), [FR](http://doc.huc.fr.eu.org/fr/web/hugo/hugo-openbsd/)
- Hugo: Opensearch: [EN](http://doc.huc.fr.eu.org/en/web/hugo/hugo-opensearch/), [FR](http://doc.huc.fr.eu.org/fr/web/hugo/hugo-opensearch/)
- Hugo : Gemini, Gopher… ‘Quoi d’autres ?!’: [FR](https://doc.huc.fr.eu.org/fr/web/hugo/hugo-gemini-gopher/)
- Hugo : Redirection permanente pour Nginx sous OpenBSD: [FR](http://doc.huc.fr.eu.org/fr/web/hugo/redirect-permanent-nginx-openbsd/)

* * *

_ **Enjoy-ID!** _  
_ **Enjoy-IT!** _

---

<div class="post-metadata">

**Author:** ![hucste](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/hucste/32/10014_2.png) [@hucste](https://discourse.gohugo.io/u/hucste)\
**Post date:** [December 9, 2019, 6:30pm UTC](https://discourse.gohugo.io/t/my-shortcodes-and-others-articles-en-fr/22212/3 "2019-12-09T18:30:41Z")

</div>

Now, this afternoon, I translate my french articles Hugo into English _(most simply possible)._  
(I hope my english is not very too bad; sorry, if it’s the case)

My english section Hugo: [http://doc.huc.fr.eu.org/en/web/hugo](http://doc.huc.fr.eu.org/en/web/hugo)

* * *

My articles:

- Shortcodes: [EN](http://doc.huc.fr.eu.org/en/web/hugo/hugo-shortcodes/), [FR](http://doc.huc.fr.eu.org/fr/web/hugo/hugo-shortcodes/)
- Deploy with SFTP: [EN](http://doc.huc.fr.eu.org/en/web/hugo/hugo-deploy/), [FR](http://doc.huc.fr.eu.org/fr/web/hugo/hugo-deploy/)
- Internal search engine with JQueryUI: [EN](http://doc.huc.fr.eu.org/en/web/hugo/hugo-search/), [FR](http://doc.huc.fr.eu.org/fr/web/hugo/hugo-search/)

* * *

PS : If a modo can rewrite the title of the topic to add EN, as: (EN+FR), it would be nice! 😃

* * *

_ **Enjoy-ID!** _  
_ **Enjoy-IT!** _

---

<div class="post-metadata">

**Author:** ![balibebas](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/balibebas/32/10927_2.png) [@balibebas](https://discourse.gohugo.io/u/balibebas)\
**Post date:** [December 10, 2019, 2:01pm UTC](https://discourse.gohugo.io/t/my-shortcodes-and-others-articles-en-fr/22212/4 "2019-12-10T14:01:41Z")

</div>

If you want someone to review your English content I’m on need of a French translator. Please feel free to message me for opportunity.

---

<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:** [December 10, 2019, 5:34pm UTC](https://discourse.gohugo.io/t/my-shortcodes-and-others-articles-en-fr/22212/5 "2019-12-10T17:34:58Z")

</div>

@hucste, I made the topic a wiki page, I believe you can edit it now. 🙂

---

<div class="post-metadata">

**Author:** ![hucste](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/hucste/32/10014_2.png) [@hucste](https://discourse.gohugo.io/u/hucste)\
**Post date:** [December 18, 2019, 7:06pm UTC](https://discourse.gohugo.io/t/my-shortcodes-and-others-articles-en-fr/22212/6 "2019-12-18T19:06:50Z")

</div>

A new article in FR, to understand how to create a menu (simple or dropdown) for Hugo.

[http://doc.huc.fr.eu.org/fr/web/hugo/hugo-menu-nav/](http://doc.huc.fr.eu.org/fr/web/hugo/hugo-menu-nav/)

---

<div class="post-metadata">

**Author:** ![hucste](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/hucste/32/10014_2.png) [@hucste](https://discourse.gohugo.io/u/hucste)\
**Post date:** [January 2, 2020, 10:33pm UTC](https://discourse.gohugo.io/t/my-shortcodes-and-others-articles-en-fr/22212/7 "2020-01-02T22:33:24Z")

</div>

New article about using Hugo on OpenBSD:

- [EN](http://doc.huc.fr.eu.org/en/web/hugo/hugo-openbsd/)
- [FR](http://doc.huc.fr.eu.org/fr/web/hugo/hugo-openbsd/)

* * *

I modify my “Hugo shortcodes” articles to include link to RAW src shortcodes! 😉

---

<div class="post-metadata">

**Author:** ![hucste](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/hucste/32/10014_2.png) [@hucste](https://discourse.gohugo.io/u/hucste)\
**Post date:** [April 15, 2020, 12:47pm UTC](https://discourse.gohugo.io/t/my-shortcodes-and-others-articles-en-fr/22212/8 "2020-04-15T12:47:19Z")

</div>

Today, I deliver new article about implement Opensearch format description in Hugo!

- [EN](http://doc.huc.fr.eu.org/en/web/hugo/hugo-opensearch/)
- [FR](http://doc.huc.fr.eu.org/fr/web/hugo/hugo-opensearch/)

* * *

_Hi, I cant modify the first title. Normal? Surprising! ☹_  
_I want to change it by “My shortcodes and others articles (EN, FR)”. If a modo, or admin can… thanks._

---

<div class="post-metadata">

**Author:** ![Jura](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jura/32/13581_2.png) [@Jura](https://discourse.gohugo.io/u/Jura)\
**Post date:** [April 15, 2020, 2:33pm UTC](https://discourse.gohugo.io/t/my-shortcodes-and-others-articles-en-fr/22212/9 "2020-04-15T14:33:28Z")

</div>

> [@hucste](#):
>
> I want to change it by “My shortcodes and others articles (EN, FR)”

Done 👍

Now I’m going to read your article. 🙂

---

<div class="post-metadata">

**Author:** ![hucste](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/hucste/32/10014_2.png) [@hucste](https://discourse.gohugo.io/u/hucste)\
**Post date:** [August 25, 2020, 11:24pm UTC](https://discourse.gohugo.io/t/my-shortcodes-and-others-articles-en-fr/22212/10 "2020-08-25T23:24:27Z")

</div>

Today, I wroted a new article:

- **[Hugo Search : un moteur de recherche interne (JQueryUI: Autocomplete + JSON)](http://doc.huc.fr.eu.org/fr/web/hugo/hugo-search-jqueryui-autocomplete-json/)** (FR)

---

<div class="post-metadata">

**Author:** ![iota](https://avatars.discourse-cdn.com/v4/letter/i/ba8739/32.png) [@iota](https://discourse.gohugo.io/u/iota)\
**Post date:** [August 27, 2020, 6:41am UTC](https://discourse.gohugo.io/t/my-shortcodes-and-others-articles-en-fr/22212/11 "2020-08-27T06:41:56Z")

</div>

Hi @hucste and thank you for all these articles!

About your last post, it seems like the search is done only in the post _titles_, do you know a way to extend it to the content too?

By the way, I’m searching since a long time for a solution with these requirements:

- no additional package (JS librairies are fine, but as I’m not self-hosting, no npm)
- no third party service (exit Google or Algolia)
- full-text search
- highlight of search terms in the results
- optionnal: live display (aka reload as I’m typing)

I’ll be glad if you have any hint  
(et merci d’avoir écrit tes articles aussi en français!)

---

<div class="post-metadata">

**Author:** ![hucste](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/hucste/32/10014_2.png) [@hucste](https://discourse.gohugo.io/u/hucste)\
**Post date:** [August 27, 2020, 6:49am UTC](https://discourse.gohugo.io/t/my-shortcodes-and-others-articles-en-fr/22212/12 "2020-08-27T06:49:31Z")

</div>

> [@iota](#):
>
> About your last post, it seems like the search is done only in the post _titles_ , do you know a way to extend it to the content too?

Not by title, but by `.summary` values (= description). 😉

Change the label’s values by get `.context_text` or `.context_html`.

```auto
{{- $desc := safeHTML .context_text -}}

```

* * *

> [@iota](#):
>
> By the way, I’m searching since a long time for a solution with these requirements:
> 
> - no additional package (JS librairies are fine, but as I’m not self-hosting, no npm)
> - no third party service (exit Google or Algolia)
> - full-text search
> - highlight of search terms in the results

Me too. And I dont understand why using lunarjs, for instance, if I have yet JQuery.

* * *

> [@iota](#):
>
> et merci d’avoir écrit tes articles aussi en français!)

C’est plutôt l’inverse qu’il faudrait dire : “merci d’en avoir écrit certains en anglais, aussi”.  
Le FR est ma langue native 😉

* * *

**One mode/admin can check. It’s seems I click on button ‘Solution’, unintentionnally. I desire that thread is not locked, please!**

---

<div class="post-metadata">

**Author:** ![hucste](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/hucste/32/10014_2.png) [@hucste](https://discourse.gohugo.io/u/hucste)\
**Post date:** [August 27, 2020, 1:00pm UTC](https://discourse.gohugo.io/t/my-shortcodes-and-others-articles-en-fr/22212/13 "2020-08-27T13:00:06Z")

</div>

Today, I wrote some corrections… and publish the [EN](https://doc.huc.fr.eu.org/en/web/hugo/hugo-search-jqueryui-autocomplete-json/) version! 😃

---

<div class="post-metadata">

**Author:** ![iota](https://avatars.discourse-cdn.com/v4/letter/i/ba8739/32.png) [@iota](https://discourse.gohugo.io/u/iota)\
**Post date:** [August 27, 2020, 7:15pm UTC](https://discourse.gohugo.io/t/my-shortcodes-and-others-articles-en-fr/22212/14 "2020-08-27T19:15:23Z")

</div>

> [@hucste](#):
>
> Change the label’s values by get `.context_text` or `.context_html` .

Thank you, I’ll definitively give a try!

---

<div class="post-metadata">

**Author:** ![hucste](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/hucste/32/10014_2.png) [@hucste](https://discourse.gohugo.io/u/hucste)\
**Post date:** [January 25, 2021, 1:25am UTC](https://discourse.gohugo.io/t/my-shortcodes-and-others-articles-en-fr/22212/15 "2021-01-25T01:25:21Z")

</div>

Hi, all.

Yesterday, I wroted a new article in French:

- **[Hugo : Gemini, Gopher… 'Quoi d’autres ?!'](https://doc.huc.fr.eu.org/fr/web/hugo/hugo-gemini-gopher/)**

To manage in few minutes, the publish for Gemini or Gopher project.

---

<div class="post-metadata">

**Author:** ![hucste](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/hucste/32/10014_2.png) [@hucste](https://discourse.gohugo.io/u/hucste)\
**Post date:** [July 28, 2021, 12:58pm UTC](https://discourse.gohugo.io/t/my-shortcodes-and-others-articles-en-fr/22212/16 "2021-07-28T12:58:45Z")

</div>

Hi, all.

I write a new article in FR:

- [Hugo : Redirection permanente pour Nginx sous OpenBSD](http://doc.huc.fr.eu.org/fr/web/hugo/redirect-permanent-nginx-openbsd/)

---

<div class="post-metadata">

**Author:** ![hucste](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/hucste/32/10014_2.png) [@hucste](https://discourse.gohugo.io/u/hucste)\
**Post date:** [May 15, 2026, 11:40pm UTC](https://discourse.gohugo.io/t/my-shortcodes-and-others-articles-en-fr/22212/17 "2026-05-15T23:40:48Z")

</div>

⇒ (2026/04/08) French article for the Gemini protocol:

- [Stéphane HUC :: IT Log :: Hugo : Environnement pour Gemini](http://doc.huc.fr.eu.org/fr/web/hugo/gemini/)

⇒ (2026/05/04) article to get the week number:

- [Stéphane HUC :: IT Log :: Hugo : Obtenir le numéro de semaine dans l'année (astuce)](https://doc.huc.fr.eu.org/fr/web/hugo/numero-semaine/) (FR)
- [Stéphane HUC :: IT Log :: Hugo: Get the week number of the year (tips)](https://doc.huc.fr.eu.org/en/web/hugo/week_number/) (EN)
