Skip to content
Permalink
Browse files
Adding styles.
  • Loading branch information
felixfontein committed May 20, 2017
1 parent 74bc6d6 commit 4cc056486a909de510fffdb93ce6f27dc5c391ed
@@ -23,5 +23,13 @@
</ul>
</nav>
{% endif %}
{% if other_archive_languages %}
<div class="translationslist translations">
<h3 class="translationslist-intro">{{ messages("Also available in:") }}</h3>
{% for language, archive_path, _ in other_archive_languages %}
<p><a href="{{ _link('archive', archive_path, language) }}" rel="alternate">{{ messages("LANGUAGE", language) }}</a></p>
{% endfor %}
</div>
{% endif %}
{% endif %}
{% endmacro %}
@@ -11,6 +11,9 @@
{% elif generate_atom %}
<link rel="alternate" type="application/atom+xml" title="Atom for the {{ archive_name }} archive" href="{{ _link("archive_atom", archive_name) }}">
{% endif %}
{% for language, archive_path, _ in other_archive_languages %}
<link rel="alternate" hreflang="{{ language }}" href="{{ _link('archive', archive_path, language) }}">
{% endfor %}
{% endblock %}

{% block content_header %}
@@ -2,6 +2,14 @@
{% extends 'base.tmpl' %}
{% import 'archive_navigation_helper.tmpl' as archive_nav with context %}

{% block extra_head %}
{% if 'archive_page' in pagekind %}
{% for language, archive_path, _ in other_archive_languages %}
<link rel="alternate" hreflang="{{ language }}" href="{{ _link('archive', archive_path, language) }}">
{% endfor %}
{% endif %}
{% endblock %}

{% block content %}
<article class="listpage">
<header>
@@ -2,6 +2,14 @@
{% extends 'base.tmpl' %}
{% import 'archive_navigation_helper.tmpl' as archive_nav with context %}

{% block extra_head %}
{% if 'archive_page' in pagekind %}
{% for language, archive_path, _ in other_archive_languages %}
<link rel="alternate" hreflang="{{ language }}" href="{{ _link('archive', archive_path, language) }}">
{% endfor %}
{% endif %}
{% endblock %}

{% block content %}
<article class="listpage">
<header>
@@ -84,7 +84,7 @@ body {
float: left;
}

.posttranslations h3 {
.posttranslations h3, .translationslist h3 {
display: inline;
font-size: 1em;
}
@@ -93,10 +93,22 @@ body {
font-size: 2em;
}

.posttranslations h3:last-child {
.posttranslations h3:last-child, .translationslist h3:last-child {
display: none;
}

.translationslist p:before {
content: " — ";
}

.translationslist p:first-of-type:before {
content: "";
}

.translationslist p {
display: inline;
}

.postindex article {
border-bottom: 1px solid #4F5151;
padding-bottom: 1em;
@@ -24,14 +24,12 @@
</nav>
%endif
%if other_archive_languages:
<nav class="archivelang">
<h3 class="posttranslations-intro">${messages("Also available in:")}</h3>
<ul>
%for language, archive_path, title in other_archive_languages:
<li><a href="${_link('archive', archive_path, language)}" rel="alternate">${messages("LANGUAGE", language)} (${title|h})</a></li>
<div class="translationslist translations">
<h3 class="translationslist-intro">${messages("Also available in:")}</h3>
%for language, archive_path, _ in other_archive_languages:
<p><a href="${_link('archive', archive_path, language)}" rel="alternate">${messages("LANGUAGE", language)}</a></p>
%endfor
</ul>
</nav>
</div>
%endif
% endif
</%def>
@@ -130,16 +130,28 @@ article.post-micro {
display: inline;
}

.posttranslations h3 {
.posttranslations h3, .translationslist h3 {
display: inline;
font-size: 1em;
font-weight: bold;
}

.posttranslations h3:last-child {
.posttranslations h3:last-child, .translationslist h3:last-child {
display: none;
}

.translationslist p:before {
content: " — ";
}

.translationslist p:first-of-type:before {
content: "";
}

.translationslist p {
display: inline;
}

.entry-content {
margin-top: 1em;
}
@@ -49,6 +49,13 @@
width: 100%;
}
</style>
{% if translations|length > 1 %}
{% for langname in translations.keys() %}
{% if langname != lang %}
<link rel="alternate" hreflang="{{ langname }}" href="{{ _link('gallery', gallery_path, langname) }}">
{% endif %}
{% endfor %}
{% endif %}
{% endblock %}


@@ -130,16 +130,28 @@ article.post-micro {
display: inline;
}

.posttranslations h3 {
.posttranslations h3, .translationslist h3 {
display: inline;
font-size: 1em;
font-weight: bold;
}

.posttranslations h3:last-child {
.posttranslations h3:last-child, .translationslist h3:last-child {
display: none;
}

.translationslist p:before {
content: " — ";
}

.translationslist p:first-of-type:before {
content: "";
}

.translationslist p {
display: inline;
}

.entry-content {
margin-top: 1em;
}

0 comments on commit 4cc0564

Please sign in to comment.