Question regarding parameter contentTypeName and multilingual settings #38
Replies: 3 comments 1 reply
-
Regarding Question 1: if we can't do multiple directories for "contentTypeName", is it possible to have a static/fixed webpage just displaying some fixed content upon landing? |
Beta Was this translation helpful? Give feedback.
-
Hi, sorry for the continuous update, but I figured out how to add multilingual content to the site :) So Question 2 is resolved, and I only have Question #1, if we can add multiple directories to "contentTypeName". I was also wondering if we could change the site's colors (e.g. the color of the category label on the card displays). Thanks again! |
Beta Was this translation helpful? Give feedback.
-
Thanks for asking. For question 1, I use If you want to display all posts, you can make a copy of this file and put it in your site folder And remove these lines of code (this is where the filter takes effect) {{ if .IsHome }}
{{ $PageContext = .Site }}
{{ $pages = where $PageContext.RegularPages "Type" $contentTypeName }}
{{ end }} |
Beta Was this translation helpful? Give feedback.
-
Hi!
Thank you for developing a clean and sleek theme like this! I'm very new to Hugo, and still trying to learn how to use it. I have two questions about the theme:
Is it possible to add more than one directory to the parameter "contentTypeName"? I am working on a website with distinct types of content, so I want to organize the markdown files in different sub-folders under the "content" directory, but also have pages of all different types appear on the main page. In other words, I want all pages to display on the main page chronologically regardless of which sub-folder they belong to under the "content" directory. Is this feasible?
Is there a more comprehensive guide to implementing a dual-language website? I have trouble finding documentation and do not know where to start.
Thank you so much for your help!
Beta Was this translation helpful? Give feedback.
All reactions