octopress / multilingual

Write elegant multi-language Jekyll sites
MIT License
69 stars 15 forks source link

Language indicator for crossposts #7

Closed drallgood closed 9 years ago

drallgood commented 9 years ago

I'm wondering whether it makes sense to also provide a way to add an indicator (e.g. a flag) to cross-posts. Like I'm doing it on my blog,

You can already do this in your template, so I'm not so sure this is even worth considering. I've solved this using a custom liquid filter:

{{ post | language_flag }} => <img src='/images/en.png' alt='Crosspost' class='flag'/>
{{ post | language_text }} => (en)

What do you guys think?

imathis commented 9 years ago

I think there's a strong case for not using flags to represent languages, read Why flags do not represent languages. But it's a common practice and blog authors will probably ask for it. I think for now I'm going to leave this to site authors to solve.

drallgood commented 9 years ago

Yeah. It's easy enough to implement yourself anyway.

Thanks.