Skip to content

Commit

Permalink
Ajoute menu Étiquettes (tags)
Browse files Browse the repository at this point in the history
  • Loading branch information
gautierchomel committed Oct 11, 2023
1 parent f9df1cc commit 79bfa7b
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
5 changes: 5 additions & 0 deletions config/_default/menus.fr.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ weight = 3
name = "Categories"
url = "categories/"

[[main]]
# parent = "Pages"
name = "Étiquettes"
url = "tags/"

# [[main]]
# parent = "Pages"
# name = "404 Page"
Expand Down
7 changes: 7 additions & 0 deletions content/french/tags/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: "Étiquettes"
meta_title: "tags"
description: ""
draft: false
layout: about
---
2 changes: 1 addition & 1 deletion i18n/fr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
translation: Categories

- id: tags
translation: Tags
translation: Étiquettes

- id: tocSommaire

Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/widgets/tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{ if isset site.Taxonomies "tags" }}
{{ if not (eq (len site.Taxonomies.tags) 0) }}
<div class="mb-8">
<h5 class="mb-6">Tags</h5>
<h5 class="mb-6">{{ i18n "tags" }}</h5>
<div class="bg-theme-light dark:bg-darkmode-theme-light rounded p-6">
<ul>
{{ range $name, $items := site.Taxonomies.tags }}
Expand Down
2 changes: 1 addition & 1 deletion themes/hugoplate/layouts/partials/widgets/tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{ if isset site.Taxonomies "tags" }}
{{ if not (eq (len site.Taxonomies.tags) 0) }}
<div class="mb-8">
<h5 class="mb-6">Tags</h5>
<h5 class="mb-6">{{ i18n "tags" }}</h5>
<div class="bg-theme-light dark:bg-darkmode-theme-light rounded p-6">
<ul>
{{ range $name, $items := site.Taxonomies.tags }}
Expand Down

0 comments on commit 79bfa7b

Please sign in to comment.