Fix translation + navbar CSS

This commit is contained in:
Emruz Hossain 2020-11-01 03:14:19 +06:00
parent beb9d55b95
commit 60a2d7e75d
9 changed files with 107 additions and 7 deletions

View file

@ -5,6 +5,9 @@ other = "হোম"
[posts] [posts]
other = "পোষ্ট সমূহ" other = "পোষ্ট সমূহ"
[toc_heading]
other = "সুচিপত্র"
[resume] [resume]
other = "আমার জীবনবৃত্তান্ত" other = "আমার জীবনবৃত্তান্ত"
@ -14,6 +17,12 @@ other = "নেভিগেশন"
[contact_me] [contact_me]
other = "আমার সাথে যোগাযোগ করুনঃ" other = "আমার সাথে যোগাযোগ করুনঃ"
[email]
other = "ইমেইল"
[phone]
other = "ফোন"
[newsletter_text] [newsletter_text]
other = "ইমেইল নোটিফিকেশান এর মাধ্যমে সর্বশেষ তথ্য জানুন" other = "ইমেইল নোটিফিকেশান এর মাধ্যমে সর্বশেষ তথ্য জানুন"
@ -28,3 +37,12 @@ other = "জমা দিন"
[hugoAttributionText] [hugoAttributionText]
other = "পাওয়ারড বাই" other = "পাওয়ারড বাই"
[prev]
other = "পূর্ববর্তী"
[next]
other = "পরবর্তী"
[improve_this_page]
other = "এই পৃষ্ঠাটি উন্নত করুন"

View file

@ -5,6 +5,9 @@ other = "Home"
[posts] [posts]
other = "Beiträge" other = "Beiträge"
[toc_heading]
other = "Inhoudsopgave"
[at] [at]
other = "bei" other = "bei"
@ -17,6 +20,12 @@ other = "Navigation"
[contact_me] [contact_me]
other = "Kontakt aufnehmen" other = "Kontakt aufnehmen"
[email]
other = "E-mail"
[phone]
other = "Telefoon"
[newsletter_text] [newsletter_text]
other = "Mit dem Newsletter auf dem neuesten Stand bleiben" other = "Mit dem Newsletter auf dem neuesten Stand bleiben"
@ -31,3 +40,12 @@ other = "Absenden"
[hugoAttributionText] [hugoAttributionText]
other = "Powered by" other = "Powered by"
[prev]
other = "Vorige"
[next]
other = "De volgende"
[improve_this_page]
other = "Verbeter deze pagina"

View file

@ -5,6 +5,9 @@ other = "Home"
[posts] [posts]
other = "Posts" other = "Posts"
[toc_heading]
other = "Table of Contents"
[at] [at]
other = "at" other = "at"
@ -17,6 +20,12 @@ other = "Navigation"
[contact_me] [contact_me]
other = "Contact me:" other = "Contact me:"
[email]
other = "Email"
[phone]
other = "Phone"
[newsletter_text] [newsletter_text]
other = "Stay up to date with email notification" other = "Stay up to date with email notification"
@ -31,3 +40,12 @@ other = "Submit"
[hugoAttributionText] [hugoAttributionText]
other = "Powered by" other = "Powered by"
[prev]
other = "Prev"
[next]
other = "Next"
[improve_this_page]
other = "Improve this page"

View file

@ -5,6 +5,9 @@ other = "Accueil"
[posts] [posts]
other = "Des postes" other = "Des postes"
[toc_heading]
other = "Table des matières"
[at] [at]
other = "chez" other = "chez"
@ -17,6 +20,12 @@ other = "Naviguation"
[contact_me] [contact_me]
other = "Contactez moi :" other = "Contactez moi :"
[email]
other = "Email"
[phone]
other = "Téléphone"
[newsletter_text] [newsletter_text]
other = "Restez à jour par e-mail" other = "Restez à jour par e-mail"
@ -31,3 +40,12 @@ other = "Envoyer"
[hugoAttributionText] [hugoAttributionText]
other = "Alimenté par" other = "Alimenté par"
[prev]
other = "Précédent"
[next]
other = "Suivant"
[improve_this_page]
other = "Améliorez cette page"

View file

@ -5,6 +5,9 @@ other = "Beranda"
[posts] [posts]
other = "Artikel" other = "Artikel"
[toc_heading]
other = "Daftar Isi"
[at] [at]
other = "at" other = "at"
@ -17,6 +20,12 @@ other = "Navigasi"
[contact_me] [contact_me]
other = "Hubungi saya:" other = "Hubungi saya:"
[email]
other = "Surel"
[phone]
other = "Telepon"
[newsletter_text] [newsletter_text]
other = "Ingin selalu update dengan notifikasi email" other = "Ingin selalu update dengan notifikasi email"
@ -30,4 +39,13 @@ other = "Kami tidak pernah berbagi data email dengan siapapun."
other = "Kirim" other = "Kirim"
[hugoAttributionText] [hugoAttributionText]
other = "Didukung oleh" other = "Didukung oleh"
[prev]
other = "Sebelumnya"
[next]
other = "Lanjut"
[improve_this_page]
other = "Perbaiki halaman ini"

View file

@ -19,7 +19,7 @@
<input type="text" value="" placeholder="Search" data-search="" id="search-box" /> <input type="text" value="" placeholder="Search" data-search="" id="search-box" />
<div class="sidebar-tree"> <div class="sidebar-tree">
<ul class="tree" id="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"> <div class="subtree">
{{ partial "navigators/sidebar.html" (dict "menus" site.Menus.sidebar "ctx" .) }} {{ partial "navigators/sidebar.html" (dict "menus" site.Menus.sidebar "ctx" .) }}
</div> </div>

View file

@ -19,7 +19,7 @@
<input type="text" value="" placeholder="Search" data-search="" id="search-box" /> <input type="text" value="" placeholder="Search" data-search="" id="search-box" />
<div class="sidebar-tree"> <div class="sidebar-tree">
<ul class="tree" id="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"> <div class="subtree">
{{ partial "navigators/sidebar.html" (dict "menus" site.Menus.sidebar "ctx" .) }} {{ partial "navigators/sidebar.html" (dict "menus" site.Menus.sidebar "ctx" .) }}
</div> </div>
@ -59,7 +59,7 @@
<div class="btn-improve-page"> <div class="btn-improve-page">
<a href="{{ site.Params.GitRepo }}/edit/master/content/{{ .File.Path }}"> <a href="{{ site.Params.GitRepo }}/edit/master/content/{{ .File.Path }}">
<i class="fas fa-code-branch"></i> <i class="fas fa-code-branch"></i>
Improve This Page {{ i18n "improve_this_page" }}
</a> </a>
</div> </div>
{{ end }} {{ end }}
@ -85,7 +85,7 @@
<section class="toc-section" id="toc-section"> <section class="toc-section" id="toc-section">
{{ if site.Params.enableTOC }} {{ if site.Params.enableTOC }}
<div class="toc-holder"> <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> <hr>
<div class="toc"> <div class="toc">
{{ .TableOfContents }} {{ .TableOfContents }}

View file

@ -6,7 +6,7 @@
{{ if (in site.Params.mainSections .Next.Type) }} {{ if (in site.Params.mainSections .Next.Type) }}
<div class="col-md-6 previous-article"> <div class="col-md-6 previous-article">
<a href="{{.Next.RelPermalink}}" class="btn btn-outline-info"> <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 /> <br />
<span>{{ .Next.Title }}</span> <span>{{ .Next.Title }}</span>
</a> </a>
@ -23,7 +23,7 @@
{{ end}} {{ end}}
<div class="{{ $columnWidth }} next-article"> <div class="{{ $columnWidth }} next-article">
<a href="{{ .Prev.RelPermalink }}" class="btn btn-outline-info"> <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 /> <br />
<span>{{ .Prev.Title }}</span> <span>{{ .Prev.Title }}</span>
</a> </a>

View file

@ -66,6 +66,7 @@ body {
.toc ul { .toc ul {
list-style: none; list-style: none;
padding-left: 0.5rem; padding-left: 0.5rem;
margin-bottom: 0rem;
width: 100%; width: 100%;
} }
@ -308,6 +309,10 @@ mark {
text-align: right; text-align: right;
} }
.languageSelector{
display: none;
}
/* ============= Device specific fixes ======= */ /* ============= Device specific fixes ======= */
/* Large screens such as TV */ /* Large screens such as TV */
@ -371,10 +376,15 @@ mark {
.navbar-toggler { .navbar-toggler {
display: block; display: block;
} }
.navbar-collapse.lang-selector { .navbar-collapse.lang-selector {
display: none; display: none;
} }
.languageSelector{
display: block;
}
.hero-area { .hero-area {
height: 300px; height: 300px;
margin-top: 1rem; margin-top: 1rem;