We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello! Thank you for your plugin! I'm using it in website with several locales and it seems missing some little tweaks:
og:locale
data.lang
data.locale
But probably there is something else. Thank you again for your work!
The text was updated successfully, but these errors were encountered:
Temporary workaround using custom generator to substitute all title, description and lang fields:
generator
title
description
lang
class Builders::PostDataFixer < SiteBuilder def build # Fixing bridgetown-seo-tag i18n things generator do posts = site.collections.posts.resources posts.each do |post| post.data["lang"] = post.data["locale"] end pages = site.collections.pages pages.each do |page| helper = Bridgetown::RubyTemplateView::Helpers.new(page, site) locale = page.data["locale"] page.data["title"] = helper.t(page.data["title"], locale: locale) page.data["description"] = helper.t(page.data["description"], locale: locale) page.data["lang"] = locale end end end end
Sorry, something went wrong.
No branches or pull requests
Hello! Thank you for your plugin! I'm using it in website with several locales and it seems missing some little tweaks:
og:locale
expectsdata.lang
instead ofdata.locale
But probably there is something else. Thank you again for your work!
The text was updated successfully, but these errors were encountered: