Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multilingual mode/hugo 0.18 support #39

Open
jpalczewski opened this issue Jan 30, 2017 · 1 comment
Open

Multilingual mode/hugo 0.18 support #39

jpalczewski opened this issue Jan 30, 2017 · 1 comment

Comments

@jpalczewski
Copy link

Hi,

I want to leave a few tips how to change layout in order to work with brand-new feature mentioned in title:

  1. Line 39, layouts/_default/list.html:
    <a class="post-category post-category-{{ . | urlize }}" href="{{ $Site.BaseURL }}{{ $Site.LanguagePrefix }}/categories/{{ . | urlize }}">{{ . }}</a>

  2. And I don't know if {{ range .Site.Pages }} in file mentioned above or index.html is desired in Hugo 0.18 - because every piece of content is now a Page, there a lot of strange posts on index page(f.e. all categories are shown as posts - http://themes.gohugo.io/theme/redlounge/ ).
    The possible fix for it is:
    {{ range where .Data.Pages "Section" "posts" }}

@tmaiaroto
Copy link
Owner

Thanks for this info. I would like to keep this theme up to date, but I'm limited on time and no longer use Hugo myself. If you'd like to submit pull requests, you're more than welcome to do so. Interested in maintaining the theme, even more welcome =)

I do want to take a look back into this all soon though. When is just the question.

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

No branches or pull requests

2 participants