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

feat(translations): add all posts, all categories, all tags #707

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions templates/_includes/_defaults.html
Original file line number Diff line number Diff line change
Expand Up @@ -236,3 +236,21 @@
{% else %}
{% set SHARE_LINKS = SHARE_LINKS %}
{% endif %}

{% if not ALL_CATEGORIES %}
{% set ALL_CATEGORIES = 'All Categories' %}
{% else %}
{% set ALL_CATEGORIES = ALL_CATEGORIES %}
{% endif %}

{% if not ALL_TAGS %}
{% set ALL_TAGS = 'All Tags' %}
{% else %}
{% set ALL_TAGS = ALL_TAGS %}
{% endif %}

{% if not ALL_POSTS %}
{% set ALL_POSTS = 'All Posts' %}
{% else %}
{% set ALL_POSTS = ALL_POSTS %}
{% endif %}
4 changes: 2 additions & 2 deletions templates/archives.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
{% endblock meta_tags_in_head %}

{% block content %}
{% from '_includes/_defaults.html' import ARCHIVES_URL with context %}
{% from '_includes/_defaults.html' import ARCHIVES_URL, ALL_POSTS with context %}
<div class="row-fluid">
<header class="page-header span10 offset2">
<h1><a href="{{ SITEURL }}/{{ ARCHIVES_URL }}">All Posts</a></h1>
<h1><a href="{{ SITEURL }}/{{ ARCHIVES_URL }}">{{ ALL_POSTS }}</a></h1>
</header>
</div>
<div class="row-fluid">
Expand Down
4 changes: 2 additions & 2 deletions templates/categories.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
{% endblock feed_links %}

{% block content %}
{% from '_includes/_defaults.html' import CATEGORIES_URL with context %}
{% from '_includes/_defaults.html' import CATEGORIES_URL, ALL_CATEGORIES with context %}
<div class="row-fluid">
<header class="page-header span10 offset2">
<h1><a href="{{ SITEURL }}/{{ CATEGORIES_URL }}">All Categories</a></h1>
<h1><a href="{{ SITEURL }}/{{ CATEGORIES_URL }}">{{ ALL_CATEGORIES }}</a></h1>
</header>
</div>

Expand Down
4 changes: 2 additions & 2 deletions templates/tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
{% endblock feed_links %}

{% block content %}
{% from '_includes/_defaults.html' import TAGS_URL with context %}
{% from '_includes/_defaults.html' import TAGS_URL, ALL_TAGS with context %}
<div class="row-fluid">
<header class="page-header span10 offset2">
<h1><a href="{{ SITEURL }}/{{ TAGS_URL }}">All Tags</a></h1>
<h1><a href="{{ SITEURL }}/{{ TAGS_URL }}">{{ ALL_TAGS }}</a></h1>
</header>
</div>
<div class="row-fluid">
Expand Down