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

Language filter support #36

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

Xpirix
Copy link
Collaborator

@Xpirix Xpirix commented Dec 20, 2024

Fix for #28

@Xpirix
Copy link
Collaborator Author

Xpirix commented Dec 20, 2024

Hi @Guts

I’m working on your request at #28 and wanted to make sure I’m on the right track.

  • Based on the suggested model, the language fields (main and available) are applied directly to a feed. Consequently, all posts originating from each feed will possess the same value for the main language and available languages in the front matter.
  • Using the Hugo taxonomies, I’ve extracted the unique values for language from the front matter. Subsequently, I’ve created a language filter (as shown in the screenshot below) to facilitate language selection.

image

  • This filter functions similarly to the existing ones (Subscribers, tags), meaning it will display all posts with the selected language set as the front matter.
  • Since these fields are not set for the existing subscribers, I’ve set the default values to en_GB. However, I believe it’s also possible to retrieve the language value from the RSS XML feed.

Could you please provide more details about the expectations for this field? I’m not sure how it will be used.

Regards.

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

Successfully merging this pull request may close these issues.

1 participant