Skip to content

Commit

Permalink
Fixing prevnext translations (pydata#486)
Browse files Browse the repository at this point in the history
  • Loading branch information
choldgraf authored and matthewevans committed Dec 16, 2021
1 parent 20414d3 commit aada6f9
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
8 changes: 4 additions & 4 deletions pydata_sphinx_theme/_templates/prev-next.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<!-- Previous / next buttons -->
<div class='prev-next-area'>
{%- if prev %}
<a class='left-prev' id="prev-link" href="{{ prev.link|e }}" title="{{ _('previous page')}}">
<a class='left-prev' id="prev-link" href="{{ prev.link|e }}" title="{{ _('previous') }} {{ _('page') }}">
<i class="fas fa-angle-left"></i>
<div class="prev-next-info">
<p class="prev-next-subtitle">{{ _("Previous") }}</p>
<p class="prev-next-subtitle">{{ _("previous") }}</p>
<p class="prev-next-title">{{ prev_title or prev.title }}</p>
</div>
</a>
{%- endif %}
{%- if next %}
<a class='right-next' id="next-link" href="{{ next.link|e }}" title="{{ _('next page')}}">
<a class='right-next' id="next-link" href="{{ next.link|e }}" title="{{ _('next') }} {{ _('page') }}">
<div class="prev-next-info">
<p class="prev-next-subtitle">{{ _("Next") }}</p>
<p class="prev-next-subtitle">{{ _("next") }}</p>
<p class="prev-next-title">{{ next_title or next.title }}</p>
</div>
<i class="fas fa-angle-right"></i>
Expand Down

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions pydata_sphinx_theme/static/webpack-macros.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@

{% macro head_pre_bootstrap() %}
<link href="{{ pathto('_static/css/theme.css', 1) }}" rel="stylesheet">
<link href="{{ pathto('_static/css/index.f8312eac34e2432659a6ef7e609c047e.css', 1) }}" rel="stylesheet">
<link href="{{ pathto('_static/css/index.ff1ffe594081f20da1ef19478df9384b.css', 1) }}" rel="stylesheet">
{% endmacro %}

{% macro head_js_preload() %}
<link rel="preload" as="script" href="{{ pathto('_static/js/index.c258f241e0e9126fa012.js', 1) }}">
<link rel="preload" as="script" href="{{ pathto('_static/js/index.be7d3bbb2ef33a8344ce.js', 1) }}">
{% endmacro %}

{% macro body_post() %}
<script src="{{ pathto('_static/js/index.c258f241e0e9126fa012.js', 1) }}"></script>
<script src="{{ pathto('_static/js/index.be7d3bbb2ef33a8344ce.js', 1) }}"></script>
{% endmacro %}
4 changes: 4 additions & 0 deletions src/scss/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,10 @@ nav.bd-links {
.prev-next-info {
flex-direction: column;
margin: 0 .5em;

.prev-next-subtitle {
text-transform: capitalize;
}
}

&.left-prev {
Expand Down

0 comments on commit aada6f9

Please sign in to comment.