-
Notifications
You must be signed in to change notification settings - Fork 9
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
Option to hide post from post list #10
Comments
Long ago I forked to add multilang support. https://bitbucket.org/ForeverYoung/blohg/ , maybe that would help |
Seems very interesting to me @Forever-Young. How about a pull request? @rafaelmartins what do you think? |
It's too behind.
…On Mon, Aug 10, 2020, 10:39 PM Ricardo Campos ***@***.***> wrote:
Seems very interesting to me @Forever-Young
<https://github.com/Forever-Young>. How about a pull request?
@rafaelmartins <https://github.com/rafaelmartins> what do you think?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAF7GVCLKN5K44PHM3BNLB3SABEF3ANCNFSM4P2IL65Q>
.
|
the post metadata is composed by arbitrary variables. you could simply implement a jinja2 template filter to filter the {% for post in posts|filter_by_metadata(lang='pt-br') %}
...
{% endfor %} |
I couldn't make it like you said @rafaelmartins probably the best way. However adding a property lang in Post model do the trick. Like in https://github.com/RMCampos/blohg/commit/3e9785dc3f970215b6804b0dde5fe03e87566417 Then I just added this in template: Thank's anyway. |
Hello! How can I hide a post from showing on the blog roll and post list? Is that possible?
Reason: I want to keep for each post an equivalent post at another language. For example, I write in portuguese (slug: my-post-name) and I want to have an English version of it (slug: my-post-name-en), and this version (English) I don't want to display in post list. A link [See this page in English] at the bottom of the portuguese version it's enough.
Thanks!
The text was updated successfully, but these errors were encountered: