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

test what happens with a Quarto blog #20

Open
maelle opened this issue Sep 26, 2023 · 9 comments
Open

test what happens with a Quarto blog #20

maelle opened this issue Sep 26, 2023 · 9 comments

Comments

@maelle
Copy link
Contributor

maelle commented Sep 26, 2023

@joelnitta I haven't tested this setup at all 😰

@joelnitta
Copy link
Contributor

I am starting to use it.

One thing I've encountered so far is that you need to select which posts to show in which language. If you have them all under ./posts and your blog.qmd has something like this

listing:
  contents: posts

it will show all posts in both languages.

One solution that is working well for me is to always include a lang field in the frontmatter of each post (you are probably doing this anyways), then specify posts to show by language. For example, blog.ja.qmd has something like this:

listing:
  contents: posts
  include:
    lang: ja

@maelle
Copy link
Contributor Author

maelle commented Sep 29, 2023

right, in the end I wonder if having the Quarto blog/website files all in the same folder is smart. 🤔 It was a challenge for the rendering too.

But maybe we can keep it as it is now, and document the catch about listings?

@joelnitta
Copy link
Contributor

That sounds fine to me.

I can think of at least two alternatives:

  1. Put the blog posts for each language in a separate subfolder. But I assume that would mess up your system for switching between languages in the rendered website.
  2. Use different branches for each language. This again would require a complete overhaul of how you switch between languages in the rendered website, and would be tricky to maintain.

@maelle
Copy link
Contributor Author

maelle commented Sep 29, 2023

How nice would it be if Quarto were like Hugo: one post and its translations in one folder 🤔 It's cleaner and the translation is really close to the original.

Your second solution strikes me as something reserved for people who really like juggling with Git branches (not me 😂 ).

@beatrizmilz
Copy link

beatrizmilz commented Nov 26, 2023

Hi @maelle and @joelnitta !

I created my blog with quarto in the first semester of 2022. Back then, project profiles was not created.

But with time, it got confusing to users... mixed content with English, Portuguese, and Spanish.

https://github.com/beatrizmilz/blog-en

I want to port my blog to Babelquarto and see if can be more user-friendly.
I'm doing it in another repo:
https://github.com/beatrizmilz/blog-babel

Temporary link: https://beatrizmilz.github.io/blog-babel/

I'll be back as soon I have news!

@joelnitta
Copy link
Contributor

Thanks for the info @beatrizmilz!

I did not know about profiles... seems like it could be a good way to handle translations. What do you think @maelle ?

FYI my (bilingual) website is at https://www.joelnitta.com, with source code at https://github.com/joelnitta/joelnitta-home. I've been using the approach mentioned above for the blog section, seems fine so far.

@beatrizmilz
Copy link

Thanks for the info @beatrizmilz!

I did not know about profiles... seems like it could be a good way to handle translations. What do you think @maelle ?

FYI my (bilingual) website is at https://www.joelnitta.com, with source code at https://github.com/joelnitta/joelnitta-home. I've been using the approach mentioned above for the blog section, seems fine so far.

me and my husband made the webpage of our wedding using profiles ( https://beaeju.com.br/ )

code in here: https://github.com/jtrecenti/beaeju.com.br

But we did not use it for blogging. It does not have the feature to click on a post and see the version in another language of the same post, it just returns to the index of the chosen language!

@maelle
Copy link
Contributor Author

maelle commented Nov 30, 2023

Thanks so much @beatrizmilz! And what a beautiful wedding website, congrats!

Project profiles look like a nice idea 👀

@maelle
Copy link
Contributor Author

maelle commented Jul 17, 2024

I'm thinking about profiles again. For instance it'd be neat to be able to have a different banner per language version: https://quarto.org/docs/blog/posts/2024-07-11-1.5-release/#website-announcements

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

3 participants