feat: Link to translated version of forum (#2883)

This commit is contained in:
Jonah Aragon 2025-02-08 17:00:45 -06:00
parent 8be1fa93c6
commit 111ac3be00
No known key found for this signature in database
4 changed files with 7 additions and 5 deletions

View File

@ -30,6 +30,7 @@ NAV_CODE_OF_CONDUCT="Code of Conduct"
NAV_COMMUNITY="Community"
NAV_CONTRIBUTING="Contributing"
NAV_FORUM="Forum"
NAV_FORUM_LINK="https://discuss.privacyguides.net/"
NAV_HOME="Home"
NAV_INTERNET_BROWSING="Internet Browsing"
NAV_KNOWLEDGE_BASE="Knowledge Base"

View File

@ -71,9 +71,9 @@ extra:
- icon: simple/github
link: https://github.com/privacyguides
name: !ENV [SOCIAL_GITHUB, "GitHub"]
- icon: simple/torbrowser
link: http://www.xoe4vn5uwdztif6goazfbmogh6wh5jc4up35bqdflu6bkdc5cas5vjqd.onion/posts/
name: !ENV [SOCIAL_TOR_SITE, "Hidden service"]
- icon: simple/rss
link: https://www.privacyguides.org/articles/feed_rss_created.xml
name: Articles RSS Feed
repo_url:
!ENV [BUILD_REPO_URL, "https://github.com/privacyguides/privacyguides.org"]

View File

@ -471,7 +471,8 @@ nav:
- "meta/git-recommendations.md"
- "meta/commit-messages.md"
- !ENV [NAV_DONATE, "Donate"]: https://donate.magicgrants.org/privacyguides
- !ENV [NAV_FORUM, "Forum"]: "https://discuss.privacyguides.net/"
- !ENV [NAV_FORUM, "Forum"]:
!ENV [NAV_FORUM_LINK, "https://discuss.privacyguides.net/"]
validation:
nav:

View File

@ -44,6 +44,7 @@
<link rel="next" href="{{ page.next_page.url | url }}">
{% endif %}
{% if config.extra.alternate is iterable %}
<link rel="alternate" href="{{ "https://www.privacyguides.org/" ~ "en" ~ "/" ~ page.url }}" hreflang="x-default">
{% for alt in config.extra.alternate %}
<link rel="alternate" href="{{ "https://www.privacyguides.org/" ~ alt.lang ~ "/" ~ page.url }}" hreflang="{{ alt.lang | d(lang.t('language')) }}">
{% endfor %}
@ -71,7 +72,6 @@
{% endblock %}
{% block extrahead %}
<!-- language-specific stylesheets -->
{% if config.extra.privacy_guides.translation_stylesheet %}
<link rel="stylesheet" href="{{ config.extra.privacy_guides.translation_stylesheet | url }}" />