Skip to content

Commit 0191fa1

Browse files
committed
Fix missing translation titles
1 parent 1df24ad commit 0191fa1

File tree

5 files changed

+20
-92
lines changed

5 files changed

+20
-92
lines changed

_i18n/en.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ titles:
66
documentation: "Documentation"
77
download: "Download AntennaPod"
88
forum: "Forum"
9-
media: "Media Kit"
9+
media-kit: "Media Kit"
1010
license: "License"
1111
privacy: "Privacy Policy"
1212

@@ -34,6 +34,7 @@ generic:
3434
share-md: "Share on Mastodon"
3535
share-tw: "Share on Twitter"
3636
share-eml: "Share via email"
37+
logo: "AntennaPod Logo"
3738
eml-share:
3839
subject: "I wanted you to see this"
3940
body: "Check out this article"

_includes/head.html

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
1-
{% capture title %}{% t page.title %}{% endcapture %}
2-
{% unless title.size > 0 %}{% assign title = page.title %}{% endunless %}
3-
{% capture title %}{% if title.size > 0 %}{{ title }} – {{ site.title }}{% else %}{{ site.title }} – {% t homepage.header %}{% endif %}{% endcapture %}
1+
{% if page.layout == "blog" %}
2+
{% capture title %}{{ page.title }}{% endcapture %}
3+
{% elsif page.title %}
4+
{% capture title %}{% t page.title %}{% endcapture %}
5+
{% else %}
6+
{% capture title %}{{ site.title }} – {% t homepage.header %}{% endcapture %}
7+
{% endif %}
48

5-
{% capture descrlong %}
6-
{% capture descrtransl %}{% t page.excerpt %}{% endcapture %}
7-
{% if descrtransl.size > 0 %}
8-
{{ descrtransl }}
9-
{% elsif page.excerpt %}
10-
{{ page.excerpt }}
11-
{% else %}
12-
{% t homepage.description %}
13-
{% endif %}
14-
{% endcapture %}
9+
{% if page.layout == "blog" %}
10+
{% capture descrlong %}{{ page.excerpt }}{% endcapture %}
11+
{% elsif page.layout == "doc" %}
12+
{% capture descrlong %}{{ page.excerpt }}{% endcapture %}
13+
{% elsif page.excerpt %}
14+
{% capture descrlong %}{% t page.excerpt %}{% endcapture %}
15+
{% else %}
16+
{% capture descrlong %}{% t homepage.description %}{% endcapture %}
17+
{% endif %}
1518
{% capture description %}{{ descrlong | strip | strip_html | strip_newlines | truncate: 180 }}{% endcapture %}
1619

1720
{% capture image %}

_layouts/blog.html

Lines changed: 0 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515
{% assign author = site.data.authors[page.author] %}
1616

1717
<header class="post-header">
18-
<p class="size-14 color-orange-900 mb-2 weight-500">
19-
{% capture category %}{{ page.category }}{% endcapture %}
20-
{% t news.filters.{{ category }} %}
21-
</p>
2218
<h1 class="size-36 weight-700 color-gray-900">{{ page.title }}</h1>
2319
{% assign words = page.content | number_of_words %}
2420
{% if words < 360 %}
@@ -47,87 +43,13 @@ <h1 class="size-36 weight-700 color-gray-900">{{ page.title }}</h1>
4743
</div>
4844
<div class="container-fluid">
4945
<div class="container py-3">
50-
51-
5246
<div class="row no-gutters justify-content-center pb-4">
5347
<div class="col-lg-9">
5448
<article class="post-content pb-3">
5549
{{ content }}
5650
</article>
5751
</div>
5852
</div>
59-
60-
<hr>
61-
62-
<div class="row no-gutters pt-4">
63-
<h2 class="size-24 color-gray-900 pb-2">{% t news.related %}</h2>
64-
</div>
65-
66-
<div class="row no-gutters pb-4">
67-
<div class="row justify-content-start">
68-
69-
{% if page.url contains 'news' %}
70-
71-
{% assign maxRelated = 3 %}
72-
{% assign minCommonTags = 1 %}
73-
{% assign maxRelatedCounter = 0 %}
74-
75-
{% for news in site.news %}
76-
77-
{% assign sameTagCount = 0 %}
78-
{% assign commonTags = '' %}
79-
80-
{% for category in news.categories %}
81-
{% if news.url != page.url %}
82-
{% if page.categories contains category %}
83-
{% assign sameTagCount = sameTagCount | plus: 1 %}
84-
{% capture tagmarkup %} {% endcapture %}
85-
{% assign commonTags = commonTags | append: tagmarkup %}
86-
{% endif %}
87-
{% endif %}
88-
{% endfor %}
89-
90-
{% if sameTagCount >= minCommonTags %}
91-
<div class="col-12 col-md-4 mb-3 d-flex">
92-
<div class="highlight-card">
93-
<a class="stretched-link" href="{{ news.url | replace: '.html', '' }}"></a>
94-
<img class="mb-3" src="{{ site.baseurl_root }}/assets/images/posts/{{ news.image }}" alt="{{ news.title }}" />
95-
<h3 class="size-24 color-gray-900 weight-700">{{ news.title }}</h3>
96-
{% if news.excerpt %}
97-
{% assign excerpt = news.excerpt %}
98-
{% else %}
99-
{% assign excerpt = news.content %}
100-
{% endif %}
101-
<p class="size-14 color-gray-900 mb-3">{{ excerpt | strip_html | truncatewords: 15 }}</p>
102-
<div class="bottom">
103-
<span class="size-12 color-gray-900 weight-700 mb-0">
104-
{% capture category %}{{ news.category }}{% endcapture %}
105-
{% t news.filters.{{ category }} %}
106-
</span>
107-
</div>
108-
<div class="bottom right">
109-
<span class="size-12 color-gray-900 weight-700 mb-0">
110-
{% capture month %}{{ news.date | date: "%b" }}{% endcapture %}
111-
{% t month.{{ month }} %} {{ news.date | date: "%-d, %Y"}}
112-
</span>
113-
</div>
114-
</div>
115-
</div>
116-
{% assign maxRelatedCounter = maxRelatedCounter | plus: 1 %}
117-
{% if maxRelatedCounter >= maxRelated %}
118-
{% break %}
119-
{% endif %}
120-
{% endif %}
121-
122-
{% endfor %}
123-
124-
{% else %}
125-
126-
{% endif %}
127-
128-
</div>
129-
</div>
130-
13153
</div>
13254
</div>
13355
</div>

documentation-redirect.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ layout: redirect
33
sitemap: false
44
permalink: /documentation/
55
redirect_to: /documentation
6+
title: generic.redirect.title
67
---

privacy-redirect.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ layout: redirect
33
sitemap: false
44
permalink: /privacy/
55
redirect_to: /privacy
6+
title: generic.redirect.title
67
---

0 commit comments

Comments
 (0)