Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.

Language-specific post display #453

Open
aamm19 opened this issue Apr 7, 2023 · 0 comments
Open

Language-specific post display #453

aamm19 opened this issue Apr 7, 2023 · 0 comments

Comments

@aamm19
Copy link

aamm19 commented Apr 7, 2023

Hi,

I'm trying to reproduce the behavior that is shown in the sample website when changing to a different language.

I have one post in content/posts/en/hello-internet.md and one in content/posts/es/hola-internet.md, and I am able to see the language selector and also the menus in different languages.

However, on the base website I am able to see the posts in both languages and when I change to language I am not able to see any of the posts.

I'm adding the relevant configuration for the languages section

[languages]
  [languages.en]
    languageName = "English"
    title = "Prueba"
    subtitle = "A simple, retro theme for Hugo"
    ###removed for simplicity###
    [languages.en.params.logo]
      logoText = "Terminal"
      logoHomeLink = "/"

    [languages.en.menu]
      [[languages.en.menu.main]]
        identifier = "about"
        name = "About"
        url = "/about"
      [[languages.en.menu.main]]
        identifier = "showcase"
        name = "Showcase"
        url = "/showcase"

  [languages.es]
    languageName = "Español"
    title = "Prueba"
    subtitle = "Un tema simple y retro Para Hugo"
    ###removed for simplicity###
    [languages.es.params.logo]
      logoText = "Terminal"
      logoHomeLink = "/es"

    [languages.es.menu]
      [[languages.es.menu.main]]
        identifier = "about"
        name = "Acerca de"
        url = "/es/about"
      [[languages.es.menu.main]]
        identifier = "showcase"
        name = "Showcase"
        url = "/es/showcase"

Am I missing some something?

Should you require additional information, please let me know.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant