forked from cotes2020/jekyll-theme-chirpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(i18n): set the global default locales to "en" (cotes2020#979)
- avoid missing labels caused by languages outside of locales - also improved the code style
- Loading branch information
Showing
19 changed files
with
513 additions
and
562 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
<!-- Navigation buttons at the bottom of the post. --> | ||
|
||
<nav class="post-navigation d-flex justify-content-between" aria-label="Post Navigation"> | ||
<nav | ||
class="post-navigation d-flex justify-content-between" | ||
aria-label="Post Navigation" | ||
> | ||
{% assign previous = site.data.locales[include.lang].post.button.previous %} | ||
{% assign next = site.data.locales[include.lang].post.button.next %} | ||
|
||
{% if page.previous.url %} | ||
<a | ||
href="{{ site.baseurl }}{{ page.previous.url }}" | ||
class="btn btn-outline-primary" | ||
aria-label="{{ previous }}" | ||
> | ||
<p>{{ page.previous.title }}</p> | ||
</a> | ||
{% assign next = site.data.locales[include.lang].post.button.next %} {% if | ||
page.previous.url %} | ||
<a | ||
href="{{ site.baseurl }}{{ page.previous.url }}" | ||
class="btn btn-outline-primary" | ||
aria-label="{{ previous }}" | ||
> | ||
<p>{{ page.previous.title }}</p> | ||
</a> | ||
{% else %} | ||
<div class="btn btn-outline-primary disabled" aria-label="{{ previous }}"> | ||
<p>-</p> | ||
</div> | ||
{% endif %} | ||
|
||
{% if page.next.url %} | ||
<a | ||
href="{{ site.baseurl }}{{page.next.url}}" | ||
class="btn btn-outline-primary" | ||
aria-label="{{ next }}" | ||
> | ||
<p>{{ page.next.title }}</p> | ||
</a> | ||
<div class="btn btn-outline-primary disabled" aria-label="{{ previous }}"> | ||
<p>-</p> | ||
</div> | ||
{% endif %} {% if page.next.url %} | ||
<a | ||
href="{{ site.baseurl }}{{page.next.url}}" | ||
class="btn btn-outline-primary" | ||
aria-label="{{ next }}" | ||
> | ||
<p>{{ page.next.title }}</p> | ||
</a> | ||
{% else %} | ||
<div class="btn btn-outline-primary disabled" aria-label="{{ next }}"> | ||
<p>-</p> | ||
</div> | ||
<div class="btn btn-outline-primary disabled" aria-label="{{ next }}"> | ||
<p>-</p> | ||
</div> | ||
{% endif %} | ||
</nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.