panr / hugo-theme-terminal

A simple, retro theme for Hugo
MIT License
2.03k stars 743 forks source link

Language-specific post display #453

Closed aamm19 closed 1 month ago

aamm19 commented 1 year ago

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.