Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/hossainemruz/toha.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmruz Hossain <emruz@appscode.com>2020-11-01 00:15:37 +0300
committerGitHub <noreply@github.com>2020-11-01 00:15:37 +0300
commit49ba62a9da5f5461b424ff8c1cb39ad567e1e8a3 (patch)
tree4e3019a596348df646479b14629a8f241832fc54
parentbeb9d55b9599dd751149003ba36acf6262a79270 (diff)
Fix translation + navbar CSS (#142)
-rw-r--r--i18n/bn.toml18
-rw-r--r--i18n/de.toml18
-rw-r--r--i18n/en.toml18
-rw-r--r--i18n/fr.toml18
-rw-r--r--i18n/id.toml20
-rw-r--r--layouts/_default/list.html2
-rw-r--r--layouts/_default/single.html6
-rw-r--r--layouts/partials/navigators/next-prev-navigator.html4
-rw-r--r--static/assets/css/layouts/single.css10
9 files changed, 107 insertions, 7 deletions
diff --git a/i18n/bn.toml b/i18n/bn.toml
index 958f564..5f6e04a 100644
--- a/i18n/bn.toml
+++ b/i18n/bn.toml
@@ -5,6 +5,9 @@ other = "হোম"
[posts]
other = "পোষ্ট সমূহ"
+[toc_heading]
+other = "সুচিপত্র"
+
[resume]
other = "আমার জীবনবৃত্তান্ত"
@@ -14,6 +17,12 @@ other = "নেভিগেশন"
[contact_me]
other = "আমার সাথে যোগাযোগ করুনঃ"
+[email]
+other = "ইমেইল"
+
+[phone]
+other = "ফোন"
+
[newsletter_text]
other = "ইমেইল নোটিফিকেশান এর মাধ্যমে সর্বশেষ তথ্য জানুন"
@@ -28,3 +37,12 @@ other = "জমা দিন"
[hugoAttributionText]
other = "পাওয়ারড বাই"
+
+[prev]
+other = "পূর্ববর্তী"
+
+[next]
+other = "পরবর্তী"
+
+[improve_this_page]
+other = "এই পৃষ্ঠাটি উন্নত করুন" \ No newline at end of file
diff --git a/i18n/de.toml b/i18n/de.toml
index 779e415..f0c4b9b 100644
--- a/i18n/de.toml
+++ b/i18n/de.toml
@@ -5,6 +5,9 @@ other = "Home"
[posts]
other = "Beiträge"
+[toc_heading]
+other = "Inhoudsopgave"
+
[at]
other = "bei"
@@ -17,6 +20,12 @@ other = "Navigation"
[contact_me]
other = "Kontakt aufnehmen"
+[email]
+other = "E-mail"
+
+[phone]
+other = "Telefoon"
+
[newsletter_text]
other = "Mit dem Newsletter auf dem neuesten Stand bleiben"
@@ -31,3 +40,12 @@ other = "Absenden"
[hugoAttributionText]
other = "Powered by"
+
+[prev]
+other = "Vorige"
+
+[next]
+other = "De volgende"
+
+[improve_this_page]
+other = "Verbeter deze pagina" \ No newline at end of file
diff --git a/i18n/en.toml b/i18n/en.toml
index a768334..0831649 100644
--- a/i18n/en.toml
+++ b/i18n/en.toml
@@ -5,6 +5,9 @@ other = "Home"
[posts]
other = "Posts"
+[toc_heading]
+other = "Table of Contents"
+
[at]
other = "at"
@@ -17,6 +20,12 @@ other = "Navigation"
[contact_me]
other = "Contact me:"
+[email]
+other = "Email"
+
+[phone]
+other = "Phone"
+
[newsletter_text]
other = "Stay up to date with email notification"
@@ -31,3 +40,12 @@ other = "Submit"
[hugoAttributionText]
other = "Powered by"
+
+[prev]
+other = "Prev"
+
+[next]
+other = "Next"
+
+[improve_this_page]
+other = "Improve this page" \ No newline at end of file
diff --git a/i18n/fr.toml b/i18n/fr.toml
index 0640574..0157e98 100644
--- a/i18n/fr.toml
+++ b/i18n/fr.toml
@@ -5,6 +5,9 @@ other = "Accueil"
[posts]
other = "Des postes"
+[toc_heading]
+other = "Table des matières"
+
[at]
other = "chez"
@@ -17,6 +20,12 @@ other = "Naviguation"
[contact_me]
other = "Contactez moi :"
+[email]
+other = "Email"
+
+[phone]
+other = "Téléphone"
+
[newsletter_text]
other = "Restez à jour par e-mail"
@@ -31,3 +40,12 @@ other = "Envoyer"
[hugoAttributionText]
other = "Alimenté par"
+
+[prev]
+other = "Précédent"
+
+[next]
+other = "Suivant"
+
+[improve_this_page]
+other = "Améliorez cette page" \ No newline at end of file
diff --git a/i18n/id.toml b/i18n/id.toml
index 22b377f..c84fc44 100644
--- a/i18n/id.toml
+++ b/i18n/id.toml
@@ -5,6 +5,9 @@ other = "Beranda"
[posts]
other = "Artikel"
+[toc_heading]
+other = "Daftar Isi"
+
[at]
other = "at"
@@ -17,6 +20,12 @@ other = "Navigasi"
[contact_me]
other = "Hubungi saya:"
+[email]
+other = "Surel"
+
+[phone]
+other = "Telepon"
+
[newsletter_text]
other = "Ingin selalu update dengan notifikasi email"
@@ -30,4 +39,13 @@ other = "Kami tidak pernah berbagi data email dengan siapapun."
other = "Kirim"
[hugoAttributionText]
-other = "Didukung oleh" \ No newline at end of file
+other = "Didukung oleh"
+
+[prev]
+other = "Sebelumnya"
+
+[next]
+other = "Lanjut"
+
+[improve_this_page]
+other = "Perbaiki halaman ini" \ No newline at end of file
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 080337c..c8a5dfd 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -19,7 +19,7 @@
<input type="text" value="" placeholder="Search" data-search="" id="search-box" />
<div class="sidebar-tree">
<ul class="tree" id="tree">
- <li id="list-heading"><a href="{{ site.BaseURL | absLangURL }}/posts" data-filter="all">Posts</a></li>
+ <li id="list-heading"><a href="{{ "/posts" | relLangURL }}" data-filter="all">{{ i18n "posts" }}</a></li>
<div class="subtree">
{{ partial "navigators/sidebar.html" (dict "menus" site.Menus.sidebar "ctx" .) }}
</div>
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index af03ec1..dee6fe3 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -19,7 +19,7 @@
<input type="text" value="" placeholder="Search" data-search="" id="search-box" />
<div class="sidebar-tree">
<ul class="tree" id="tree">
- <li id="list-heading"><a href="{{ site.BaseURL | absLangURL }}posts" data-filter="all">Posts</a></li>
+ <li id="list-heading"><a href="{{ "/posts" | relLangURL }}" data-filter="all">{{ i18n "posts" }}</a></li>
<div class="subtree">
{{ partial "navigators/sidebar.html" (dict "menus" site.Menus.sidebar "ctx" .) }}
</div>
@@ -59,7 +59,7 @@
<div class="btn-improve-page">
<a href="{{ site.Params.GitRepo }}/edit/master/content/{{ .File.Path }}">
<i class="fas fa-code-branch"></i>
- Improve This Page
+ {{ i18n "improve_this_page" }}
</a>
</div>
{{ end }}
@@ -85,7 +85,7 @@
<section class="toc-section" id="toc-section">
{{ if site.Params.enableTOC }}
<div class="toc-holder">
- <h5 class="text-center pl-3">Table of Contents</h5>
+ <h5 class="text-center pl-3">{{ i18n "toc_heading" }}</h5>
<hr>
<div class="toc">
{{ .TableOfContents }}
diff --git a/layouts/partials/navigators/next-prev-navigator.html b/layouts/partials/navigators/next-prev-navigator.html
index eca6632..da50a52 100644
--- a/layouts/partials/navigators/next-prev-navigator.html
+++ b/layouts/partials/navigators/next-prev-navigator.html
@@ -6,7 +6,7 @@
{{ if (in site.Params.mainSections .Next.Type) }}
<div class="col-md-6 previous-article">
<a href="{{.Next.RelPermalink}}" class="btn btn-outline-info">
- <span><i class="fas fa-chevron-circle-left"></i> Prev</span>
+ <span><i class="fas fa-chevron-circle-left"></i> {{ i18n "prev" }}</span>
<br />
<span>{{ .Next.Title }}</span>
</a>
@@ -23,7 +23,7 @@
{{ end}}
<div class="{{ $columnWidth }} next-article">
<a href="{{ .Prev.RelPermalink }}" class="btn btn-outline-info">
- <span>Next <i class="fas fa-chevron-circle-right"></i></span>
+ <span>{{ i18n "next" }} <i class="fas fa-chevron-circle-right"></i></span>
<br />
<span>{{ .Prev.Title }}</span>
</a>
diff --git a/static/assets/css/layouts/single.css b/static/assets/css/layouts/single.css
index 3c1c0cb..37196d4 100644
--- a/static/assets/css/layouts/single.css
+++ b/static/assets/css/layouts/single.css
@@ -66,6 +66,7 @@ body {
.toc ul {
list-style: none;
padding-left: 0.5rem;
+ margin-bottom: 0rem;
width: 100%;
}
@@ -308,6 +309,10 @@ mark {
text-align: right;
}
+.languageSelector{
+ display: none;
+}
+
/* ============= Device specific fixes ======= */
/* Large screens such as TV */
@@ -371,10 +376,15 @@ mark {
.navbar-toggler {
display: block;
}
+
.navbar-collapse.lang-selector {
display: none;
}
+ .languageSelector{
+ display: block;
+ }
+
.hero-area {
height: 300px;
margin-top: 1rem;