docsy icon indicating copy to clipboard operation
docsy copied to clipboard

Can the footer have active language dependent links?

Open ec1warc1 opened this issue 5 years ago • 2 comments

Looking at these params.links:

[params.links]
[[params.links.developer]]
         name = "Account Management"
         url = "/en/acm/"
         icon = "fas fa-id-card"
         desc = "Manage your Account!"
[[params.links.developer]]
        name = "Donate"
        url = "/en/abt/don/"
        icon = "fa fa-heart"
        desc = "Help keep the site running! Donate!"

I don't see a way to make the links depend upon the active language similar to the menu. Is there a way to do it? Many thanks! Edward

ec1warc1 avatar Apr 27 '20 22:04 ec1warc1

It's not built in to the theme yet but it should be possible to do it. There's an in progress PR to do the same for the Feedback links, but this one is simpler as you don't need to switch a feature on and off as well. See #179

LisaFC avatar Apr 28 '20 15:04 LisaFC

I was able to hack a solution. Here you can see how I modified entries in config.toml to make them language specific:

[[params.links.developer-en]]
        name = "Account Management"
        url = "/en/acm/"
        icon = "fas fa-id-card"
        desc = "Manage your e2e.ee JabberID!"
        target = "_self"

[[params.links.developer-es]]
        name = "Administración de Cuenta"
        url = "/es/acm/"
        icon = "fas fa-id-card"
        desc = "Manage your e2e.ee JabberID!"
        target = "_self"

Then, in themes/docsy/layouts/partials/footer.html: 2020-04-30_12-57-26 2020-04-30_13-02-14

ec1warc1 avatar Apr 30 '20 18:04 ec1warc1