Skip to content

fixed tag link to be more robust#78

Open
mbc3 wants to merge 1 commit into
athul:masterfrom
mbc3:tagfix
Open

fixed tag link to be more robust#78
mbc3 wants to merge 1 commit into
athul:masterfrom
mbc3:tagfix

Conversation

@mbc3
Copy link
Copy Markdown

@mbc3 mbc3 commented Feb 26, 2023

this changes the tag link to work on sites installed on sub-directory, such as "/linux". Removing the leading slash makes this work, though I must admit I don't know why, as I'm relatively new to Hugo. I tested this out on my own site and it works.

@jmooring
Copy link
Copy Markdown

jmooring commented Jan 9, 2024

https://gohugo.io/methods/page/getterms/ is not fragile.

<nav class="nav tags">
<ul class="tags">
{{ range .Params.tags }}
<li><a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></li>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jos+$"+$+"7++'é i(__(+__;_!saias$($$+#+@81+#+ Álvarez dxjdxj$8($!*+4645**$+$+$$+Ramírez

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants