Merge branch 'hugo-toha:main' into main

This commit is contained in:
Jean-Baptiste Le Duigou 2021-10-01 20:44:35 +02:00 committed by GitHub
commit 8fc634023c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
39 changed files with 1011 additions and 690 deletions

View file

@ -17,7 +17,7 @@ categories:
- 'feature' - 'feature'
- 'enhancement' - 'enhancement'
- title: 'New Translations' - title: 'Translations'
label: 'translation' label: 'translation'
- title: 'Bug Fixes' - title: 'Bug Fixes'

View file

@ -11,7 +11,7 @@ jobs:
uses: actions/checkout@v2.3.4 uses: actions/checkout@v2.3.4
- name: Setup Node - name: Setup Node
uses: actions/setup-node@v2.1.5 uses: actions/setup-node@v2.4.1
with: with:
node-version: "15.x" node-version: "15.x"
@ -21,7 +21,7 @@ jobs:
npm run autoprefixer npm run autoprefixer
- name: Create Pull Request - name: Create Pull Request
uses: peter-evans/create-pull-request@v3.10.0 uses: peter-evans/create-pull-request@v3.10.1
with: with:
branch: autoprefixer branch: autoprefixer
branch-suffix: timestamp branch-suffix: timestamp

View file

@ -10,4 +10,4 @@ jobs:
# checkout to latest commit # checkout to latest commit
- uses: actions/checkout@master - uses: actions/checkout@master
# run markdown linter # run markdown linter
- uses: gaurav-nelson/github-action-markdown-link-check@1.0.12 - uses: gaurav-nelson/github-action-markdown-link-check@1.0.13

View file

@ -8,6 +8,12 @@ other = "পোষ্ট সমূহ"
[toc_heading] [toc_heading]
other = "সুচিপত্র" other = "সুচিপত্র"
[tags]
other = "ট্যাগ সমুহ"
[categories]
other = "বিভাগ সমুহ"
[resume] [resume]
other = "আমার জীবনবৃত্তান্ত" other = "আমার জীবনবৃত্তান্ত"
@ -30,7 +36,7 @@ other = "ইমেইল নোটিফিকেশান এর মাধ্
other = "ইমেইল প্রবেশ করান" other = "ইমেইল প্রবেশ করান"
[newsletter_warning] [newsletter_warning]
other = "আমরা আপনার ইমেল অন্য কারও সাথে শেয়ার করব না।" other = "আপনার ইমেইল ঠিকানা প্রবেশের মাধমে আপনি এই ওয়েবসাইটের নিউজ লেটার পেতে সম্মত হচ্ছেন।"
[submit] [submit]
other = "জমা দিন" other = "জমা দিন"
@ -44,6 +50,9 @@ other = "পূর্ববর্তী"
[next] [next]
other = "পরবর্তী" other = "পরবর্তী"
[share_on]
other = "শেয়ার করুন"
[improve_this_page] [improve_this_page]
other = "এই পৃষ্ঠাটি উন্নত করুন" other = "এই পৃষ্ঠাটি উন্নত করুন"

View file

@ -8,6 +8,12 @@ other = "Beiträge"
[toc_heading] [toc_heading]
other = "Inhaltsverzeichnis" other = "Inhaltsverzeichnis"
[tags]
other = "Stichworte"
[categories]
other = "Kategorien"
[at] [at]
other = "bei" other = "bei"
@ -33,7 +39,7 @@ other = "Mit dem Newsletter auf dem neuesten Stand bleiben"
other = "E-Mail Adresse eingeben" other = "E-Mail Adresse eingeben"
[newsletter_warning] [newsletter_warning]
other = "Wir geben deine E-Mail Adresse nicht an Dritte weiter." other = "Mit der Eingabe Ihrer E-Mail-Adresse erklären Sie sich damit einverstanden, den Newsletter dieser Website zu erhalten."
[submit] [submit]
other = "Absenden" other = "Absenden"
@ -47,6 +53,9 @@ other = "Vorherige"
[next] [next]
other = "Nächste" other = "Nächste"
# [share_on]
# other = "Share on"
[improve_this_page] [improve_this_page]
other = "Diese Seite verbessern" other = "Diese Seite verbessern"

View file

@ -8,6 +8,12 @@ other = "Posts"
[toc_heading] [toc_heading]
other = "Table of Contents" other = "Table of Contents"
[tags]
other = "Tags"
[categories]
other = "Categories"
[at] [at]
other = "at" other = "at"
@ -33,7 +39,7 @@ other = "Stay up to date with email notification"
other = "Enter email" other = "Enter email"
[newsletter_warning] [newsletter_warning]
other = "We'll never share your email with anyone else." other = "By entering your email address, you agree to receive the newsletter of this website."
[submit] [submit]
other = "Submit" other = "Submit"
@ -47,6 +53,9 @@ other = "Prev"
[next] [next]
other = "Next" other = "Next"
[share_on]
other = "Share on"
[improve_this_page] [improve_this_page]
other = "Improve this page" other = "Improve this page"

View file

@ -8,6 +8,12 @@ other = "Posts"
[toc_heading] [toc_heading]
other = "Contenido" other = "Contenido"
[tags]
other = "Etiquetas"
[categories]
other = "Categorías"
[at] [at]
other = "en" other = "en"
@ -33,7 +39,7 @@ other = "Subscribirse"
other = "Ingrese email" other = "Ingrese email"
[newsletter_warning] [newsletter_warning]
other = "Jamás compartiremos tus datos con alguién mas" other = "Al ingresar su dirección de correo electrónico, acepta recibir el boletín de este sitio web."
[submit] [submit]
other = "Enviar" other = "Enviar"
@ -47,6 +53,9 @@ other = "Anterior"
[next] [next]
other = "Siguiente" other = "Siguiente"
[share_on]
other = "Compartir en"
[improve_this_page] [improve_this_page]
other = "Mejorar esta página" other = "Mejorar esta página"
@ -77,29 +86,29 @@ other = "Ver más"
[show_less] [show_less]
other = "Muestra menos" other = "Muestra menos"
# [responsibilities] [responsibilities]
# other = "Responsibilities:" other = "Responsabilidades:"
# [present] [present]
# other = "Present" other = "Presente"
# [comments_javascript] [comments_javascript]
# other = "Please enable JavaScript to view the" other = "Por favor, activa JavaScript para ver el"
# [comments_by] [comments_by]
# other = "comments powered by" other = "comentarios cortesía de"
# [read] [read]
# other = "Read" other = "Leer"
# [project_star] [project_star]
# other = "Star" other = "Favorito"
# [project_details] [project_details]
# other = "Details" other = "Detalles"
# [err_404] [err_404]
# other = "The page you are looking for is not there yet." other = "La página que estás buscando no está aquí (todavía)"
[more] [more]
other = "Más" other = "Más"

View file

@ -8,11 +8,17 @@ other = "Articles"
[toc_heading] [toc_heading]
other = "Table des matières" other = "Table des matières"
[tags]
other = "Mots clés"
[categories]
other = "Catégories"
[at] [at]
other = "chez" other = "chez"
[resume] [resume]
other = "Mon Curriculum vitæ" other = "Mon Curriculum Vitæ"
[navigation] [navigation]
other = "Navigation" other = "Navigation"
@ -33,7 +39,7 @@ other = "Restez à jour par e-mail"
other = "Entrez une adresse e-mail" other = "Entrez une adresse e-mail"
[newsletter_warning] [newsletter_warning]
other = "Nous ne partagerons jamais votre courriel avec quelqu'un d'autre." other = "En renseignant votre adresse e-mail, vous acceptez de recevoir la newsletter de ce site."
[submit] [submit]
other = "Envoyer" other = "Envoyer"
@ -47,6 +53,9 @@ other = "Précédent"
[next] [next]
other = "Suivant" other = "Suivant"
[share_on]
other = "Partager sur"
[improve_this_page] [improve_this_page]
other = "Améliorez cette page" other = "Améliorez cette page"
@ -57,10 +66,10 @@ other = "sur"
other = "Publications" other = "Publications"
[taken_courses] [taken_courses]
other = "Taken Courses" other = "Cours suivis"
[course_name] [course_name]
other = "Cours suivis" other = "Intitulé du cours"
[total_credit] [total_credit]
other = "Crédit total" other = "Crédit total"
@ -77,17 +86,17 @@ other = "En savoir plus"
[show_less] [show_less]
other = "Montrer moins" other = "Montrer moins"
# [responsibilities] [responsibilities]
# other = "Responsibilities:" other = "Responsabilitiés :"
# [present] [present]
# other = "Present" other = "Aujourd'hui"
# [comments_javascript] [comments_javascript]
# other = "Please enable JavaScript to view the" other = "Merci d'activer JavaScript pour voir le"
# [comments_by] [comments_by]
# other = "comments powered by" other = "commentaires fournis par"
[read] [read]
other = "Lire" other = "Lire"
@ -95,11 +104,11 @@ other = "Lire"
# [project_star] # [project_star]
# other = "Star" # other = "Star"
# [project_details] [project_details]
# other = "Details" other = "Détails"
# [err_404] [err_404]
# other = "The page you are looking for is not there yet." other = "La page que vous recherchez n'est pas disponible."
[more] [more]
other = "Suite" other = "Suite"

View file

@ -8,6 +8,12 @@ other = "पोस्ट"
[toc_heading] [toc_heading]
other = "विषयसूची" other = "विषयसूची"
[tags]
other = "टैग"
[categories]
other = "श्रेणियाँ"
[at] [at]
other = "अन्य" other = "अन्य"
@ -33,7 +39,7 @@ other = "ईमेल अधिसूचना से अवगत रहें"
other = "ईमेल दर्ज करें" other = "ईमेल दर्ज करें"
[newsletter_warning] [newsletter_warning]
other = "हम आपके ईमेल को कभी भी किसी और के साथ साझा नहीं करेंगे" other = "अपना ईमेल पता दर्ज करके, आप इस वेबसाइट का न्यूज़लेटर प्राप्त करने के लिए सहमत होते हैं।"
[submit] [submit]
other = "जमा करें" other = "जमा करें"
@ -47,6 +53,9 @@ other = "पिछला"
[next] [next]
other = "आगे" other = "आगे"
# [share_on]
# other = "Share on"
[improve_this_page] [improve_this_page]
other = "इस पृष्ठ को सुधारें" other = "इस पृष्ठ को सुधारें"

View file

@ -8,6 +8,12 @@ other = "Artikel"
[toc_heading] [toc_heading]
other = "Daftar Isi" other = "Daftar Isi"
[tags]
other = "Tags"
[categories]
other = "Kategori"
[at] [at]
other = "at" other = "at"
@ -33,7 +39,7 @@ other = "Ingin selalu update dengan notifikasi email"
other = "Masukkan email" other = "Masukkan email"
[newsletter_warning] [newsletter_warning]
other = "Kami tidak pernah berbagi data email dengan siapapun." other = "Dengan memasukkan alamat email Anda, Anda setuju untuk menerima buletin situs web ini."
[submit] [submit]
other = "Kirim" other = "Kirim"
@ -47,6 +53,9 @@ other = "Sebelumnya"
[next] [next]
other = "Lanjut" other = "Lanjut"
# [share_on]
# other = "Share on"
[improve_this_page] [improve_this_page]
other = "Perbaiki halaman ini" other = "Perbaiki halaman ini"

View file

@ -8,6 +8,12 @@ other = "Post"
[toc_heading] [toc_heading]
other = "Contenuti" other = "Contenuti"
[tags]
other = "Tags"
[categories]
other = "Categorie"
[at] [at]
other = "presso" other = "presso"
@ -33,7 +39,7 @@ other = "Resta aggiornato con la notifica di email"
other = "Inserisci l'email" other = "Inserisci l'email"
[newsletter_warning] [newsletter_warning]
other = "Non condivideremo l'email con altri." other = "Inserendo il tuo indirizzo email, accetti di ricevere la newsletter di questo sito."
[submit] [submit]
other = "Invia" other = "Invia"
@ -47,6 +53,9 @@ other = "Precedente"
[next] [next]
other = "Successivo" other = "Successivo"
# [share_on]
# other = "Share on"
[improve_this_page] [improve_this_page]
other = "Migliora questa pagina" other = "Migliora questa pagina"
@ -105,7 +114,7 @@ other = "Mostra meno"
other = "Di più" other = "Di più"
[view_certificate] [view_certificate]
other = "Féach ar an Teastas" other = "Vedi certificato"
[notes] [notes]
other = "Appunti" other = "Appunti"

View file

@ -8,6 +8,12 @@ other = "記事"
[toc_heading] [toc_heading]
other = "目次" other = "目次"
[tags]
other = "タグ"
[categories]
other = "カテゴリ"
[resume] [resume]
other = "職務経歴書" other = "職務経歴書"
@ -30,7 +36,7 @@ other = "メールで最新情報を受け取る"
other = "ここにメールアドレスを入力" other = "ここにメールアドレスを入力"
[newsletter_warning] [newsletter_warning]
other = "ご入力いただいたメールアドレスが他人に開示されることは決してございません。" other = "メールアドレスを入力すると、このウェブサイトのニュースレターを受け取ることに同意したことになります。"
[submit] [submit]
other = "登録" other = "登録"
@ -44,6 +50,9 @@ other = "前"
[next] [next]
other = "次" other = "次"
# [share_on]
# other = "Share on"
[improve_this_page] [improve_this_page]
other = "編集リクエストを送る" other = "編集リクエストを送る"

View file

@ -8,6 +8,12 @@ other = "게시글"
[toc_heading] [toc_heading]
other = "목차" other = "목차"
[tags]
other = "태그"
[categories]
other = "카테고리"
[at] [at]
other = "at" other = "at"
@ -33,7 +39,7 @@ other = "이메일 알림으로 최신 상태를 유지해보세요"
other = "이메일을 입력하세요" other = "이메일을 입력하세요"
[newsletter_warning] [newsletter_warning]
other = "이메일을 다른 목적으로 사용하지 않습니다." other = "이메일 주소를 입력하면이 웹 사이트의 뉴스 레터 수신에 동의하는 것입니다."
[submit] [submit]
other = "제출" other = "제출"
@ -47,6 +53,9 @@ other = "이전"
[next] [next]
other = "다음" other = "다음"
# [share_on]
# other = "Share on"
[improve_this_page] [improve_this_page]
other = "이 페이지를 개선" other = "이 페이지를 개선"

View file

@ -7,6 +7,12 @@ other = "Beiträge"
[toc_heading] [toc_heading]
other = "Inhaltsverzeichnis" other = "Inhaltsverzeichnis"
[tags]
other = "Tags"
[categories]
other = "Categorieën"
[at] [at]
other = "bei" other = "bei"
@ -32,7 +38,7 @@ other = "Mit dem Newsletter auf dem neuesten Stand bleiben"
other = "E-Mail-Adresse eingeben" other = "E-Mail-Adresse eingeben"
[newsletter_warning] [newsletter_warning]
other = "Wir werden Ihre E-Mail-Adresse nicht an Dritte weitergeben." other = "Door uw e-mailadres in te voeren, gaat u akkoord met het ontvangen van de nieuwsbrief van deze website."
[submit] [submit]
other = "Absenden" other = "Absenden"
@ -46,6 +52,9 @@ other = "Vorherige"
[next] [next]
other = "Nächste" other = "Nächste"
# [share_on]
# other = "Share on"
[improve_this_page] [improve_this_page]
other = "Diese Seite verbessern" other = "Diese Seite verbessern"

View file

@ -8,6 +8,12 @@ other = "Посты"
[toc_heading] [toc_heading]
other = "Оглавление" other = "Оглавление"
[tags]
other = "Теги"
[categories]
other = "Категории"
[at] [at]
other = "в" other = "в"
@ -33,7 +39,7 @@ other = "Подпишитесь на уведомления, чтобы не п
other = "Введите email" other = "Введите email"
[newsletter_warning] [newsletter_warning]
other = "Ваши данные в безопасности" other = "Вводя свой адрес электронной почты, вы соглашаетесь получать информационный бюллетень этого веб-сайта."
[submit] [submit]
other = "Подтвердить" other = "Подтвердить"
@ -47,6 +53,9 @@ other = "Предыдущий"
[next] [next]
other = "Следующий" other = "Следующий"
# [share_on]
# other = "Share on"
[improve_this_page] [improve_this_page]
other = "Улучшить эту страницу" other = "Улучшить эту страницу"

View file

@ -8,6 +8,12 @@ other = "Bài viết"
[toc_heading] [toc_heading]
other = "Mục lục" other = "Mục lục"
[tags]
other = "Thẻ"
[categories]
other = "Thể loại"
[at] [at]
other = "tại" other = "tại"
@ -33,7 +39,7 @@ other = "Nhận email cập nhật thông tin"
other = "Nhập email" other = "Nhập email"
[newsletter_warning] [newsletter_warning]
other = "Chúng tôi sẽ không bao giờ chia sẻ email của bạn." other = "Bằng cách nhập địa chỉ email của bạn, bạn đồng ý nhận bản tin của trang web này."
[submit] [submit]
other = "Gửi" other = "Gửi"
@ -47,6 +53,9 @@ other = "Trước"
[next] [next]
other = "Tiếp theo" other = "Tiếp theo"
# [share_on]
# other = "Share on"
[improve_this_page] [improve_this_page]
other = "Cải thiện trang này" other = "Cải thiện trang này"

View file

@ -8,6 +8,12 @@ other = "博文"
[toc_heading] [toc_heading]
other = "目录" other = "目录"
[tags]
other = "标签"
[categories]
other = "类别"
[at] [at]
other = "at" other = "at"
@ -33,7 +39,7 @@ other = "通过电子邮件接收最新信息"
other = "填入 E-mail" other = "填入 E-mail"
[newsletter_warning] [newsletter_warning]
other = "我们绝不会与任何人共享您的电子邮件。" other = "输入您的电子邮件地址,即表示您同意接收本网站的时事通讯"
[submit] [submit]
other = "提交" other = "提交"
@ -47,6 +53,9 @@ other = "上一篇"
[next] [next]
other = "下一篇" other = "下一篇"
[share_on]
other = "分享"
[improve_this_page] [improve_this_page]
other = "改善此页面" other = "改善此页面"
@ -77,29 +86,29 @@ other = "查看更多"
[show_less] [show_less]
other = "显示较少" other = "显示较少"
# [responsibilities] [responsibilities]
# other = "Responsibilities:" other = "职责:"
# [present] [present]
# other = "Present" other = "至今"
# [comments_javascript] [comments_javascript]
# other = "Please enable JavaScript to view the" other = "请启用 JavaScript 以查看"
# [comments_by] [comments_by]
# other = "comments powered by" other = "评论支持 by"
# [read] [read]
# other = "Read" other = "阅读"
# [project_star] [project_star]
# other = "Star" other = "Star"
# [project_details] [project_details]
# other = "Details" other = "详情"
# [err_404] [err_404]
# other = "The page you are looking for is not there yet." other = "您查找的页面已私奔。"
[more] [more]
other = "更多的" other = "更多的"
@ -111,4 +120,4 @@ other = "查看证书"
other = "笔记" other = "笔记"
[disclaimer_text] [disclaimer_text]
other = "责任通知" other = "免责声明"

123
i18n/zh-tw.toml Normal file
View file

@ -0,0 +1,123 @@
# More documentation here: https://github.com/nicksnyder/go-i18n
[home]
other = "首頁"
[posts]
other = "文章"
[toc_heading]
other = "目錄"
[tags]
other = "标签"
[categories]
other = "类别"
[at]
other = "at"
[resume]
other = "履歷"
[navigation]
other = "導覽列"
[contact_me]
other = "聯絡方式:"
[email]
other = "信箱"
[phone]
other = "電話"
[newsletter_text]
other = "通過電子郵件接收最新消息"
[newsletter_input_placeholder]
other = "在此輸入您的電子郵件地址"
[newsletter_warning]
other = "輸入您的電子郵件地址,即表示您同意接受本網站的最新消息"
[submit]
other = "提交"
[hugoAttributionText]
other = "Powered by"
[prev]
other = "上一篇"
[next]
other = "下一篇"
[share_on]
other = "分享"
[improve_this_page]
other = "改善此頁面"
[out_of]
other = "/"
[publications]
other = "出版"
[taken_courses]
other = "修習課程"
[course_name]
other = "課程名稱"
[total_credit]
other = "總分"
[obtained_credit]
other = "獲得學分"
[extracurricular_activities]
other = "課外活動"
[show_more]
other = "查看更多"
[show_less]
other = "顯示較少"
# [responsibilities]
# other = "Responsibilities:"
# [present]
# other = "Present"
# [comments_javascript]
# other = "Please enable JavaScript to view the"
# [comments_by]
# other = "comments powered by"
# [read]
# other = "Read"
# [project_star]
# other = "Star"
# [project_details]
# other = "Details"
# [err_404]
# other = "The page you are looking for is not there yet."
[more]
other = "更多的"
[view_certificate]
other = "查看證書"
[notes]
other = "筆記"
[disclaimer_text]
other = "免責聲明"

View file

@ -11,8 +11,14 @@
<!-- ADD GOOGLE ANALYTICS IF ENABLED --> <!-- ADD GOOGLE ANALYTICS IF ENABLED -->
{{ if site.GoogleAnalytics }} {{ if site.GoogleAnalytics }}
<!-- Google Analytics v3 ID -->
{{ if hasPrefix site.GoogleAnalytics "UA-"}}
{{ template "_internal/google_analytics_async.html" . }}
{{ else }}
<!-- Google Analytics v4 ID -->
{{ template "_internal/google_analytics.html" . }} {{ template "_internal/google_analytics.html" . }}
{{ end }} {{ end }}
{{ end }}
</head> </head>
<body data-spy="scroll" data-target="#TableOfContents" data-offset="80"> <body data-spy="scroll" data-target="#TableOfContents" data-offset="80">

View file

@ -54,20 +54,102 @@
<div class="title"> <div class="title">
<h1>{{ .Page.Title }}</h1> <h1>{{ .Page.Title }}</h1>
</div> </div>
{{ if site.Params.enableTags }}
<div class="taxonomy-terms">
<ul>
{{ range .Params.tags }}
{{ $url:= printf "tags/%s" . }}
<li class="rounded"><a href="{{ $url | urlize | relLangURL }}" class="btn, btn-sm">{{ . }}</a></li>
{{ end }}
</ul>
</div>
{{ end }}
<div class="post-content" id="post-content"> <div class="post-content" id="post-content">
{{ .Page.Content }} {{ .Page.Content }}
</div> </div>
<!-- Share or Contribute -->
<div class="row pl-3 pr-3">
<!--Social Media Share Buttons-->
<div class="col-md-6 share-buttons">
{{ if site.Params.features.blog.shareButtons }}
<strong>{{ i18n "share_on" }}:</strong>
{{ if site.Params.features.blog.shareButtons.facebook }}
<a class="btn btn-sm facebook-btn" href="https://www.facebook.com/sharer.php?u={{ .Permalink }}" target="_blank">
<i class="fab fa-facebook"></i>
</a>
{{ end }}
{{ if site.Params.features.blog.shareButtons.twitter }}
<a class="btn btn-sm twitter-btn" href="https://twitter.com/share?url={{ .Permalink }}&text={{ .Title }}&via={{- site.Title -}}" target="_blank">
<i class="fab fa-twitter"></i>
</a>
{{ end }}
{{ if site.Params.features.blog.shareButtons.reddit }}
<a class="btn btn-sm reddit-btn" href="https://reddit.com/submit?url={{ .Permalink }}&title={{ .Title }}" target="_blank">
<i class="fab fa-reddit"></i>
</a>
{{ end }}
{{ if site.Params.features.blog.shareButtons.tumblr }}
<a class="btn btn-sm tumblr-btn" href="https://www.tumblr.com/share/link?url={{ .Permalink }}&name={{ .Title }}{{- with .Params.description -}}&description={{- . -}}{{- end -}}" target="_blank">
<i class="fab fa-tumblr"></i>
</a>
{{ end }}
{{ if site.Params.features.blog.shareButtons.pocket }}
<a class="btn btn-sm pocket-btn" href="https://getpocket.com/save?url={{ .Permalink }}&title={{ .Title }}" target="_blank">
<i class="fab fa-get-pocket"></i>
</a>
{{ end }}
{{ if site.Params.features.blog.shareButtons.linkedin }}
<a class="btn btn-sm linkedin-btn" href="https://www.linkedin.com/shareArticle?url={{ .Permalink }}&title={{ .Title }}" target="_blank">
<i class="fab fa-linkedin"></i>
</a>
{{ end }}
{{ if site.Params.features.blog.shareButtons.diaspora }}
<a class="btn btn-sm diaspora-btn" href="https://share.diasporafoundation.org/?title={{ .Title }}&url={{ .Permalink }}" rel="nofollow" target="_blank">
<i class="fab fa-diaspora"></i>
</a>
{{ end }}
{{ if site.Params.features.blog.shareButtons.mastodon }}
<a class="btn btn-sm mastodon-btn" href="https://mastodon.social/share?text={{ .Title }} - {{ .Permalink }}" target="_blank">
<i class="fab fa-mastodon"></i>
</a>
{{ end }}
{{ if site.Params.features.blog.shareButtons.whatsapp }}
<a class="btn btn-sm whatsapp-btn" href="https://api.whatsapp.com/send?text={{ .Title }} {{ .Permalink }}" target="_blank">
<i class="fab fa-whatsapp"></i>
</a>
{{ end }}
{{ if site.Params.features.blog.shareButtons.email }}
<a class="btn btn-sm email-btn" href="mailto:?subject={{ .Title }}&body={{ .Permalink }}" target="_blank">
<i class="fas fa-envelope-open-text"></i>
</a>
{{ end }}
{{ end }}
</div>
<!--- Improve this page button ---> <!--- Improve this page button --->
{{ if site.Params.GitRepo }} {{ if site.Params.GitRepo }}
<div class="btn-improve-page"> {{ if site.Params.GitBranch }}
<a href="{{ site.Params.GitRepo }}/edit/{{ site.Params.GitBranch }}/content/{{ .File.Path }}" title="{{ i18n "improve_this_page" }}" target="_blank" rel="noopener"> {{ .Scratch.Set "GitBranch" site.Params.GitBranch }}
{{ else }}
{{ .Scratch.Set "GitBranch" "main" }}
{{ end }}
<div class="col-md-6 btn-improve-page">
{{ if ( eq site.Params.GitForge "gitlab" ) }}
<a href="{{ site.Params.GitRepo }}/-/edit/{{ .Scratch.Get "GitBranch" }}/{{ .File.Path }}" title="{{ i18n "improve_this_page" }}" target="_blank" rel="noopener">
{{ else if ( eq site.Params.GitForge "gitea" ) }}
<a href="{{ site.Params.GitRepo }}/_edit/{{ .Scratch.Get "GitBranch" }}/content/{{ .File.Path }}" title="{{ i18n "improve_this_page" }}" target="_blank" rel="noopener">
{{ else }} <!--- Make Github-style the default -->
<a href="{{ site.Params.GitRepo }}/edit/{{ .Scratch.Get "GitBranch" }}/content/{{ .File.Path }}" title="{{ i18n "improve_this_page" }}" target="_blank" rel="noopener">
{{ end }}
<i class="fas fa-code-branch"></i> <i class="fas fa-code-branch"></i>
{{ i18n "improve_this_page" }} {{ i18n "improve_this_page" }}
</a> </a>
</div> </div>
{{ end }} {{ end }}
</div>
<!---Next and Previous Navigator --> <!---Next and Previous Navigator -->
<hr /> <hr />

View file

@ -0,0 +1,62 @@
{{ define "header" }}
<link rel="stylesheet" href="{{ "/css/layouts/list.css" | relURL }}">
<link rel="stylesheet" href="{{ "/css/navigators/sidebar.css" | relURL}}">
<!--================= custom style overrides =========================-->
<link rel="stylesheet" href="{{ "/css/style.css" | relURL }}"/>
{{ end }}
{{ define "navbar" }}
{{ partial "navigators/navbar-2.html" . }}
{{ end }}
{{ define "sidebar" }}
{{ $homePage:="#" }}
{{ if site.IsMultiLingual }}
{{ $homePage = (path.Join (cond ( eq .Language.Lang "en") "" .Language.Lang) .Type) }}
{{ end }}
<section class="sidebar-section" id="sidebar-section">
<div class="sidebar-holder">
<div class="sidebar" id="sidebar">
<form class="mx-auto" method="get" action="{{ "search" | relLangURL }}">
<input type="text" name="keyword" value="" placeholder="Search" data-search="" id="search-box" />
</form>
<div class="sidebar-tree">
<ul class="tree" id="tree">
<li id="list-heading"><a href="{{ .Type | relLangURL }}" data-filter="all">{{ i18n .Type }}</a></li>
<div class="subtree taxonomy-terms">
{{ $context := . }}
{{ partial "navigators/taxonomies.html" (dict "context" $context "taxo" "categories" "title" ( humanize "categories" ) ) }}
</div>
</ul>
</div>
</div>
</div>
</section>
{{ end }}
{{ define "content" }}
<section class="content-section" id="content-section">
<div class="content container-fluid" id="content">
<div class="container-fluid post-card-holder" id="post-card-holder">
{{ $posts := where .RegularPagesRecursive "Layout" "!=" "search" }}
{{ $paginator := .Paginate $posts 12 }}
{{ range $paginator.Pages }}
{{ if .Layout }}
{{/* ignore the search.md file*/}}
{{ else }}
{{ partial "cards/post.html" . }}
{{ end }}
{{ end }}
</div>
<div class="paginator">
{{ template "_internal/pagination.html" . }}
</div>
</div>
</section>
{{ end }}
{{ define "scripts" }}
<script src="{{ "/js/list.js" | relURL }}"></script>
{{ end }}

View file

@ -31,8 +31,14 @@
<!-- Add Google Analytics if enabled in configuration --> <!-- Add Google Analytics if enabled in configuration -->
{{ if site.GoogleAnalytics }} {{ if site.GoogleAnalytics }}
<!-- Google Analytics v3 ID -->
{{ if hasPrefix site.GoogleAnalytics "UA-"}}
{{ template "_internal/google_analytics_async.html" . }}
{{ else }}
<!-- Google Analytics v4 ID -->
{{ template "_internal/google_analytics.html" . }} {{ template "_internal/google_analytics.html" . }}
{{ end }} {{ end }}
{{ end }}
</head> </head>
<body data-spy="scroll" data-target="#top-navbar" data-offset="100"> <body data-spy="scroll" data-target="#top-navbar" data-offset="100">

View file

@ -11,7 +11,10 @@
{{ $logoImage:= resources.Get .logo}} {{ $logoImage:= resources.Get .logo}}
{{ if $logoImage }} {{ if $logoImage }}
{{/* svg don't support "Fit" operation */}}
{{ if ne $logoImage.MediaType.SubType "svg" }}
{{ $logoImage = $logoImage.Fit "24x24" }} {{ $logoImage = $logoImage.Fit "24x24" }}
{{ end }}
<img class="card-img-xs" src="{{ $logoImage.RelPermalink }}" alt="{{ .name }}" /> <img class="card-img-xs" src="{{ $logoImage.RelPermalink }}" alt="{{ .name }}" />
{{ end }} {{ end }}

View file

@ -121,13 +121,13 @@
<button type="submit" class="btn btn-info">{{ i18n "submit" }}</button> <button type="submit" class="btn btn-info">{{ i18n "submit" }}</button>
</form> </form>
{{ else }} {{ else }}
<!-- a dummy form --> <form method='post' action='https://blogtrottr.com'>
<form>
<div class="form-group"> <div class="form-group">
<input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="{{ i18n "newsletter_input_placeholder" }}"/> <input type='email' class="form-control" name='btr_email' placeholder="{{ i18n "newsletter_input_placeholder" }}"/><br />
<input type='hidden' name='btr_url' value='{{ "" | absLangURL }}index.xml' />
<input type='hidden' name='schedule_type' value='1' />
<small id="emailHelp" class="form-text text-muted">{{ i18n "newsletter_warning" }}</small> <small id="emailHelp" class="form-text text-muted">{{ i18n "newsletter_warning" }}</small>
</div> <button type="submit" class="btn btn-info"> {{ i18n "submit" }} </button>
<button type="submit" class="btn btn-info">{{ i18n "submit" }}</button>
</form> </form>
{{ end }} {{ end }}
</div> </div>
@ -137,7 +137,7 @@
{{ if and $disclaimerEnabled $disclaimer}} {{ if and $disclaimerEnabled $disclaimer}}
<hr /> <hr />
<div class="container"> <div class="container">
<p id="disclaimer"><strong>{{ i18n "disclaimer_text" }}:</strong> {{ $disclaimer }}</p> <p id="disclaimer"><strong>{{ i18n "disclaimer_text" }}:</strong> {{ $disclaimer | markdownify }}</p>
</div> </div>
{{ end }} {{ end }}
{{ if $credentialsEnabled }} {{ if $credentialsEnabled }}

View file

@ -18,12 +18,12 @@
{{ end }} {{ end }}
{{ end }} {{ end }}
{{/* apply image processing. don't use "Fit" in svg because its not supported */}} {{/* apply image processing. don't use "Fit" in svg or gif because its not supported */}}
{{ $authorImage:= resources.Get $authorImage}} {{ $authorImage:= resources.Get $authorImage}}
{{ if and $authorImage (ne $authorImage.MediaType.SubType "svg") }}
{{ if and $authorImage (and (ne $authorImage.MediaType.SubType "svg") ( ne $authorImage.MediaType.SubType "gif")) }}
{{ $authorImage = $authorImage.Fit "120x120" }} {{ $authorImage = $authorImage.Fit "120x120" }}
{{ end }} {{ end }}
{{/* return the author image link */}} {{/* return the author image link */}}
{{ return $authorImage.RelPermalink }} {{ return $authorImage.RelPermalink }}

View file

@ -2,7 +2,7 @@
{{ if eq .type "certification" }} {{ if eq .type "certification" }}
{{/* Verifiable certificate badge from https://www.credly.com */}} {{/* Verifiable certificate badge from https://www.credly.com */}}
<div class=""> <div class="">
<a href="{{ .url }}" target="_blank" > <a href="{{ .url }}" target="_blank" rel="noopener noreferrer">
<img src="{{ .badge }}" alt="{{ .name }}" /> <img src="{{ .badge }}" alt="{{ .name }}" />
</a> </a>
</div> </div>

View file

@ -3,7 +3,11 @@
{{ $nextPage := "" }} {{ $nextPage := "" }}
<!-- List all the pages. It uses the sidebar menu to discover the page order. --> <!-- List all the pages. It uses the sidebar menu to discover the page order. -->
{{ $pages := partial "helpers/get-pages.html" site.Menus.sidebar }} {{ $pages := slice }}
{{ if isset site.Menus "sidebar" }}
{{ $pages = partial "helpers/get-pages.html" site.Menus.sidebar }}
{{ end }}
<!-- Now, find the current page index in the pages list. Then, find previous page and next page. --> <!-- Now, find the current page index in the pages list. Then, find previous page and next page. -->
{{ $idx := 0 }} {{ $idx := 0 }}

View file

@ -0,0 +1,16 @@
{{ $context := .context }}
{{ $taxo := .taxo }}
{{ $class:= "" }}
{{ if isset $context.Site.Taxonomies ( lower $taxo ) }}
{{ $taxonomy := index $context.Site.Taxonomies ( lower $taxo ) }}
{{ if (gt (len $taxonomy) 0)}}
{{ range $taxonomy }}
{{if eq $context.Title .Page.Title}}
{{ $class = "active" }}
{{else}}
{{$class = ""}}
{{end}}
<li><a class="taxonomy-term {{ $class }}" href="{{ .Page.Permalink }}" data-taxonomy-term="{{ urlize .Page.Title }}"><span class="taxonomy-label">{{ .Page.Title }}</span></a></li>
{{ end }}
{{ end }}
{{ end }}

View file

@ -11,7 +11,8 @@
<div class="container anchor p-lg-5 about-section" id="{{ $sectionID }}"> <div class="container anchor p-lg-5 about-section" id="{{ $sectionID }}">
<div class="row pt-sm-2 pt-md-4 align-self-center"> <div class="row pt-sm-2 pt-md-4 align-self-center">
<!-- summary --> <!-- summary -->
<div class="col-sm-6"> <!-- takes up full section width if no badges/soft skills are specified -->
{{ if or (.softSkills) (.badges) }} <div class="col-sm-6"> {{ else }} <div class="col-sm-12"> {{ end }}
<h3 class="p-1">{{ $author.name }}</h3> <h3 class="p-1">{{ $author.name }}</h3>
{{ if .designation }} {{ if .designation }}
<h5 class="p-1"> <h5 class="p-1">

View file

@ -26,8 +26,11 @@
{{ $authorImage = $author.image }} {{ $authorImage = $author.image }}
{{ end }} {{ end }}
{{ $authorImage := resources.Get $authorImage }} {{ $authorImage := resources.Get $authorImage }}
{{ $authorImage = $authorImage.Fit "148x148" }}
{{/* apply image processing. don't use "Fit" in svg or gif because its not supported */}}
{{ if and $authorImage (and (ne $authorImage.MediaType.SubType "svg") ( ne $authorImage.MediaType.SubType "gif")) }}
{{ $authorImage = $authorImage.Fit "148x148" }}
{{ end }}
{{/* get file that matches the filename as specified as src="" in shortcode */}} {{/* get file that matches the filename as specified as src="" in shortcode */}}
{{ $src := resources.Get $backgroundImage }} {{ $src := resources.Get $backgroundImage }}

View file

@ -3,13 +3,19 @@
{{ $sectionID = .section.id }} {{ $sectionID = .section.id }}
{{ end }} {{ end }}
{{ $numShow := 3}}
{{ if .section.numShow }}
{{ $numShow = .section.numShow }}
{{ end }}
<div class="container-fluid anchor pb-5 recent-posts-section" id="{{ $sectionID }}"> <div class="container-fluid anchor pb-5 recent-posts-section" id="{{ $sectionID }}">
{{ if not (.section.hideTitle) }} {{ if not (.section.hideTitle) }}
<h1 class="text-center">{{ .section.name }}</h1> <h1 class="text-center">{{ .section.name }}</h1>
{{ end }} {{ end }}
<div class="container"> <div class="container">
<div class="row" id="recent-post-cards"> <div class="row" id="recent-post-cards">
{{ range first 3 (where site.RegularPages.ByDate.Reverse "Type" "in" "posts" )}} {{ range first $numShow (where site.RegularPages.ByDate.Reverse "Type" "in" "posts" )}}
{{ partial "cards/recent-post.html" . }} {{ partial "cards/recent-post.html" . }}
{{ end }} {{ end }}
</div> </div>

62
layouts/tags/list.html Normal file
View file

@ -0,0 +1,62 @@
{{ define "header" }}
<link rel="stylesheet" href="{{ "/css/layouts/list.css" | relURL }}">
<link rel="stylesheet" href="{{ "/css/navigators/sidebar.css" | relURL}}">
<!--================= custom style overrides =========================-->
<link rel="stylesheet" href="{{ "/css/style.css" | relURL }}"/>
{{ end }}
{{ define "navbar" }}
{{ partial "navigators/navbar-2.html" . }}
{{ end }}
{{ define "sidebar" }}
{{ $homePage:="#" }}
{{ if site.IsMultiLingual }}
{{ $homePage = (path.Join (cond ( eq .Language.Lang "en") "" .Language.Lang) .Type) }}
{{ end }}
<section class="sidebar-section" id="sidebar-section">
<div class="sidebar-holder">
<div class="sidebar" id="sidebar">
<form class="mx-auto" method="get" action="{{ "search" | relLangURL }}">
<input type="text" name="keyword" value="" placeholder="Search" data-search="" id="search-box" />
</form>
<div class="sidebar-tree">
<ul class="tree" id="tree">
<li id="list-heading"><a href="{{ .Type | relLangURL }}" data-filter="all">{{ i18n .Type }}</a></li>
<div class="subtree taxonomy-terms">
{{ $context := . }}
{{ partial "navigators/taxonomies.html" (dict "context" $context "taxo" "tags" "title" ( humanize "tags" ) ) }}
</div>
</ul>
</div>
</div>
</div>
</section>
{{ end }}
{{ define "content" }}
<section class="content-section" id="content-section">
<div class="content container-fluid" id="content">
<div class="container-fluid post-card-holder" id="post-card-holder">
{{ $posts := where .RegularPagesRecursive "Layout" "!=" "search" }}
{{ $paginator := .Paginate $posts 12 }}
{{ range $paginator.Pages }}
{{ if .Layout }}
{{/* ignore the search.md file*/}}
{{ else }}
{{ partial "cards/post.html" . }}
{{ end }}
{{ end }}
</div>
<div class="paginator">
{{ template "_internal/pagination.html" . }}
</div>
</div>
</section>
{{ end }}
{{ define "scripts" }}
<script src="{{ "/js/list.js" | relURL }}"></script>
{{ end }}

919
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -17,8 +17,8 @@
}, },
"homepage": "https://github.com/hossainemruz/toha#readme", "homepage": "https://github.com/hossainemruz/toha#readme",
"devDependencies": { "devDependencies": {
"autoprefixer": "^10.2.6", "autoprefixer": "^10.3.6",
"postcss": "^8.3.4", "postcss": "^8.3.8",
"postcss-cli": "^8.3.1" "postcss-cli": "^8.3.1"
} }
} }

View file

@ -50,17 +50,17 @@ a:hover {
} }
.btn-dark { .btn-dark {
background-color: #3c4858; background-color: #3c4858!important;
border-color: #3c4858; border-color: #3c4858!important;
color: #e5e9f2; color: #e5e9f2!important;
transition: all 0.3s ease-out; transition: all 0.3s ease-out!important;
} }
.btn-dark:hover, .btn-dark:hover,
.btn-dark:focus { .btn-dark:focus {
background-color: #248aaa; background-color: #248aaa!important;
border-color: #248aaa; border-color: #248aaa!important;
transition: all 0.3s ease-out; transition: all 0.3s ease-out!important;
} }
.btn-outline-info { .btn-outline-info {

View file

@ -205,6 +205,69 @@ h6 {
padding: 10px; padding: 10px;
} }
.share-buttons .btn {
color: #e5e9f2 !important;
transition: all 0.3s ease-out !important;
}
.share-buttons .btn:hover,
.share-buttons .btn:focus {
background-color: #248aaa !important;
border-color: #248aaa !important;
transition: all 0.3s ease-out !important;
}
.share-buttons .facebook-btn {
background-color: #4267b2 !important;
border-color: #4267b2 !important;
}
.share-buttons .twitter-btn {
background-color: #1da1f2 !important;
border-color: #1da1f2 !important;
}
.share-buttons .reddit-btn {
background-color: #ff4500 !important;
border-color: #ff4500 !important;
}
.share-buttons .tumblr-btn {
background-color: #34465d !important;
border-color: #34465d !important;
}
.share-buttons .pocket-btn {
background-color: #ef4056 !important;
border-color: #ef4056 !important;
}
.share-buttons .linkedin-btn {
background-color: #2867b2 !important;
border-color: #2867b2 !important;
}
.share-buttons .diaspora-btn {
background-color: #3c4858 !important;
border-color: #3c4858 !important;
}
.share-buttons .mastodon-btn {
background-color: #2791da !important;
border-color: #2791da !important;
}
.share-buttons .whatsapp-btn {
background-color: #4ac959 !important;
border-color: #4ac959 !important;
}
.share-buttons .email-btn {
background-color: #3c4858 !important;
border-color: #3c4858 !important;
transition: all 0.3s ease-out !important;
}
.btn-improve-page { .btn-improve-page {
text-align: right; text-align: right;
} }
@ -236,6 +299,19 @@ h6 {
#scroll-to-top.show { #scroll-to-top.show {
visibility: visible; visibility: visible;
} }
.taxonomy-terms {
text-align: center;
}
.taxonomy-terms li {
font-size: 0.8em;
list-style-type: none;
display: inline-block;
background: #248aaa;
}
.taxonomy-terms a {
color: #f9fafc;
}
/* ============= Device specific fixes ======= */ /* ============= Device specific fixes ======= */

File diff suppressed because one or more lines are too long

View file

@ -36,7 +36,7 @@
} }
.education-section .education-info-table tr:first-child .hline { .education-section .education-info-table tr:first-child .hline {
height: 60%; height: 65%;
top: auto; top: auto;
} }

File diff suppressed because one or more lines are too long