Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions exampleSite/config/_default/languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
title = "Hugo Zzo Theme"
languageName = "English"
weight = 1
languagedir = "ltr"
languageDirection = "ltr"
contentdir = "content/en"

[ko]
title = "Hugo Zzo Theme"
languageName = "한국어"
weight = 2
languagedir = "ltr"
languageDirection = "ltr"
contentdir = "content/ko"
2 changes: 1 addition & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="{{ .Site.Language.Lang }}" dir="{{ $.Param "languagedir" | default "ltr" }}">
<html lang="{{ .Site.Language.Lang }}" dir="{{ $.Site.Language.LanguageDirection | default "ltr" }}">

<head prefix="og: http://ogp.me/ns#">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h5 class="list__header--title capitalize h5">{{.Title}}</h5>
</div>

{{ if $.Param "enableSidebar" }}
<aside class="list__sidebar {{ if eq ($.Param "sidebarPosition") "left" }}l{{ else }}r{{ end }}" data-dir="{{ $.Param "languagedir" | default "ltr" }}">
<aside class="list__sidebar {{ if eq ($.Param "sidebarPosition") "left" }}l{{ else }}r{{ end }}" data-dir="{{ $.Site.Language.LanguageDirection | default "ltr" }}">
{{ partial "sidebar/sidebar-list" . }}
</aside>
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h3 class="single__subtitle">{{ .Params.subtitle }}</h3>
{{ partial "body/infos" . }}
{{ partial "body/tags" . }}
</div>
<article class="single__contents" data-dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}" data-ani="{{ $.Site.Params.enableUiAnimation | default "true" }}">
<article class="single__contents" data-dir="{{ if ne $.Site.Language.LanguageDirection "rtl" }}ltr{{ else }}rtl{{ end }}" data-ani="{{ $.Site.Params.enableUiAnimation | default "true" }}">
{{ partial "body/toc" . }}
{{ .Content }}
</article>
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/taxonomy.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h5 class="list__header--title capitalize h5">{{ .Title }}</h5>
</div>

{{ if $.Param "enableSidebar" }}
<aside class="list__sidebar {{ if eq ($.Param "sidebarPosition") "left" }}l{{ else }}r{{ end }}" data-dir="{{ $.Param "languagedir" | default "ltr" }}">
<aside class="list__sidebar {{ if eq ($.Param "sidebarPosition") "left" }}l{{ else }}r{{ end }}" data-dir="{{ $.Site.Language.LanguageDirection | default "ltr" }}">
{{ partial "sidebar/sidebar-list" . }}
</aside>
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/about/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ <h3 class="h3 terms__title">
</h3>
</header>
<main class="main about">
<article class="single__contents single__contents--about" data-dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}" data-ani="{{ $.Site.Params.enableUiAnimation | default "true" }}">
<article class="single__contents single__contents--about" data-dir="{{ if ne $.Site.Language.LanguageDirection "rtl" }}ltr{{ else }}rtl{{ end }}" data-ani="{{ $.Site.Params.enableUiAnimation | default "true" }}">
{{ .Content }}
</article>
</main>
Expand Down
8 changes: 4 additions & 4 deletions layouts/archive/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ <h3 class="h3 terms__title">
{{ $paginator := .Paginate ($filteredPages.GroupByDate ($.Param "archiveGroupByDate" | default "2006")) ($.Param "archivePaginate") }}
{{ range ($paginator).PageGroups }}
<span class="archive__key" data-ani="{{ $.Site.Params.enableUiAnimation | default "true" }}">{{ .Key }}</span>
<ul class="archive__ul" data-dir="{{ $.Param "languagedir" | default "ltr" }}">
<ul class="archive__ul" data-dir="{{ $.Site.Language.LanguageDirection | default "ltr" }}">
{{ range .Pages }}
<li class="archive__li" data-dir="{{ $.Param "languagedir" | default "ltr" }}">
<li class="archive__li" data-dir="{{ $.Site.Language.LanguageDirection | default "ltr" }}">
<span class="archive__meta" data-ani="{{ $.Site.Params.enableUiAnimation | default "true" }}">
{{ if ne ($.Param "languagedir") "rtl" }}
{{ if ne $.Site.Language.LanguageDirection "rtl" }}
<span class="archive__type">{{ .Type }}</span>
<span class="archive__date">{{ .Date.Format (i18n "archive-dateformat") }}</span>
{{ else }}
<span class="archive__date">{{ .Date.Format (i18n "archive-dateformat") }}</span>
<span class="archive__type">{{ .Type }}</span>
{{ end }}
</span>
<a href="{{ .Permalink }}" class="archive__title" data-title-wrap="{{ $titleWrap | default "wrap"}}" data-dir="{{ $.Param "languagedir" | default "ltr" }}">{{ .Title }}</a>
<a href="{{ .Permalink }}" class="archive__title" data-title-wrap="{{ $titleWrap | default "wrap"}}" data-dir="{{ $.Site.Language.LanguageDirection | default "ltr" }}">{{ .Title }}</a>
</li>
{{ end }}
</ul>
Expand Down
2 changes: 1 addition & 1 deletion layouts/contact/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h3 class="h3 terms__title">
</header>
<main class="main">
<div class="contact">
<article class="single__contents contact__desc" data-dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}" data-ani="{{ $.Site.Params.enableUiAnimation | default "true" }}">
<article class="single__contents contact__desc" data-dir="{{ if ne $.Site.Language.LanguageDirection "rtl" }}ltr{{ else }}rtl{{ end }}" data-ani="{{ $.Site.Params.enableUiAnimation | default "true" }}">
{{ .Content }}
</article>
{{ if eq .Params.service "formspree" }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</div>

{{ if $.Param "enableSidebar" }}
<aside class="list__sidebar {{ if eq ($.Param "sidebarPosition") "left" }}l{{ else }}r{{ end }}" data-dir="{{ $.Param "languagedir" | default "ltr" }}">
<aside class="list__sidebar {{ if eq ($.Param "sidebarPosition") "left" }}l{{ else }}r{{ end }}" data-dir="{{ $.Site.Language.LanguageDirection | default "ltr" }}">
{{ partial "sidebar/sidebar-home" . }}
</aside>
{{ end }}
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/body/main-left.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{ $isPad = or $isPad (and (eq .Kind "section") (eq .Type "publication")) }}
{{ $isPad = or $isPad (and (eq .Type "tags") (ne .Kind "taxonomyTerm")) }}

{{ if eq ($.Param "languagedir") "rtl" }}
{{ if eq $.Site.Language.LanguageDirection "rtl" }}
<div class="wrapper__left hide" data-pad="{{ $isPad }}" dir="rtl">
<script>document.querySelector('.wrapper__left').classList.remove('hide')</script>
{{ if and (eq ($.Param "tocPosition") "outer") .IsPage }}
Expand All @@ -25,7 +25,7 @@ <h6 class="toc__title toc__title--outer" data-ani="{{ $.Site.Params.enableUiAnim
{{ end }}
{{ end }}
</div>
{{ else if and (eq ($.Param "languagedir") "ltr") ($.Param "enableSidebarMenu") }}
{{ else if and (eq $.Site.Language.LanguageDirection "ltr") ($.Param "enableSidebarMenu") }}
<div class="wrapper__left" data-pad="{{ $isPad }}" dir="ltr">
<div class="sidebar__menu">
{{ partial "sidebar/sidebar-menu" . }}
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/body/main-right.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{ $isPad = or $isPad (and (eq .Kind "section") (eq .Type "publication")) }}
{{ $isPad = or $isPad (and (eq .Type "tags") (ne .Kind "taxonomyTerm")) }}

{{ if ne ($.Param "languagedir") "rtl" }}
{{ if ne $.Site.Language.LanguageDirection "rtl" }}
<div class="wrapper__right hide" data-pad="{{ $isPad }}" dir="ltr">
<script>document.querySelector('.wrapper__right').classList.remove('hide')</script>
{{ if and (eq ($.Param "tocPosition") "outer") .IsPage }}
Expand All @@ -25,7 +25,7 @@ <h6 class="toc__title toc__title--outer" data-ani="{{ $.Site.Params.enableUiAnim
{{ end }}
{{ end }}
</div>
{{ else if and (eq ($.Param "languagedir") "rtl") ($.Param "enableSidebarMenu") }}
{{ else if and (eq $.Site.Language.LanguageDirection "rtl") ($.Param "enableSidebarMenu") }}
<div class="wrapper__right" data-pad="{{ $isPad }}" dir="rtl">

</div>
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/navbar/nav-menu-mobile.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<span aria-hidden="true"></span>
</a>
<div class="navbarm__collapse" data-open="false">
<ul dir="{{ $.Param "languagedir" | default "ltr" }}">
<ul dir="{{ $.Site.Language.LanguageDirection | default "ltr" }}">
{{ $current := . }}
{{ range $index, $menu := .Site.Menus.main }}
{{ $active := or ($current.IsMenuCurrent "main" $menu) ($current.HasMenuCurrent "main" $menu) }}
Expand Down
6 changes: 3 additions & 3 deletions layouts/partials/navbar/nav-menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@
{{ if .HasChildren }}
<div class="navbar__dropdown navbar__slide-down" data-ani="{{ $.Site.Params.enableUiAnimation | default "true" }}">
<a href="{{ .URL | relLangURL }}" class="navbar__menu-item {{ if $active }}active{{ end }}"
dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}">
dir="{{ if ne $.Site.Language.LanguageDirection "rtl" }}ltr{{ else }}rtl{{ end }}">
{{ safeHTML .Name }}
{{ partial "svgs/arrow/keyboard-arrow-down.svg" (dict "width" 18 "height" 18) }}
</a>
<div class="navbar__dropdown--content">
{{ range .Children }}
<a href="{{ .URL | relLangURL }}" class="navbar__dropdown--item" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}">{{ safeHTML .Name }}</a>
<a href="{{ .URL | relLangURL }}" class="navbar__dropdown--item" dir="{{ if ne $.Site.Language.LanguageDirection "rtl" }}ltr{{ else }}rtl{{ end }}">{{ safeHTML .Name }}</a>
{{ end }}
</div>
</div>
{{ else }}
<a href="{{ .URL | relLangURL }}" class="navbar__menu-item navbar__slide-down {{ if $active }}active{{ end }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}" data-ani="{{ $.Site.Params.enableUiAnimation | default "true" }}">{{ safeHTML .Name }}</a>
<a href="{{ .URL | relLangURL }}" class="navbar__menu-item navbar__slide-down {{ if $active }}active{{ end }}" dir="{{ if ne $.Site.Language.LanguageDirection "rtl" }}ltr{{ else }}rtl{{ end }}" data-ani="{{ $.Site.Params.enableUiAnimation | default "true" }}">{{ safeHTML .Name }}</a>
{{ end }}
{{ end }}
</div>
2 changes: 1 addition & 1 deletion layouts/partials/navbar/site-nav.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<nav class="navbar scrolling" role="navigation" aria-label="main navigation" data-dir="{{ if $.Param "navbardir" }}{{ $.Param "navbardir" }}{{ else }}{{ $.Param "languagedir" | default "ltr" }}{{ end }}">
<nav class="navbar scrolling" role="navigation" aria-label="main navigation" data-dir="{{ if $.Param "navbardir" }}{{ $.Param "navbardir" }}{{ else }}{{ $.Site.Language.LanguageDirection | default "ltr" }}{{ end }}">
<div class="navbar__brand">
{{ if $.Param "logo" | default true }}
<a href="{{ "/" | relLangURL }}" title="{{ i18n "tooltip-home" }}" rel="home" class="{{ if eq ($.Param "logoType") "long" }}navbar__long-link{{ else }}navbar__logo-link{{ end }}">
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/pagination/pagination-single.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="grow"></div>
<nav class="pagination-single">
{{ if eq ($.Param "languagedir") "rtl" }}
{{ if eq $.Site.Language.LanguageDirection "rtl" }}
{{ with .NextInSection }}
<a href="{{ .Permalink }}" class="pagination-single__right">
<div class="pagination-single__icon">
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/publication/pub-overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<div class="pub__box--desc">
{{ .Params.abstract }}
</div>
<div class="pub__box--links" data-dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}">
<div class="pub__box--links" data-dir="{{ if ne $.Site.Language.LanguageDirection "rtl" }}ltr{{ else }}rtl{{ end }}">
<a href="{{ .FirstSection.Permalink }}/{{ .Params.ENTRYTYPE }}">
🎯 {{ .Params.ENTRYTYPE }}
</a>
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/script/single-script.html
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@
var text, clip = new ClipboardJS('.anchor');
var headers = singleContentsElem.querySelectorAll("h1, h2, h3, h4");

{{ $languagedir := ($.Param "languagedir" | default "ltr") }}
{{ $languagedir := ($.Site.Language.LanguageDirection | default "ltr") }}
var languagedir = JSON.parse({{ $languagedir | jsonify }});

headers ?
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/search/search-result-desktop.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="search-result" data-display="none">
<div class="search-result__header">
<div class="search-result__close" data-dir="{{ if or (ne ($.Param "languagedir") "rtl") (eq ($.Param "sidebarPosition") "left") }}ltr{{ else }}rtl{{ end }}">
<div class="search-result__close" data-dir="{{ if or (ne $.Site.Language.LanguageDirection "rtl") (eq ($.Param "sidebarPosition") "left") }}ltr{{ else }}rtl{{ end }}">
{{ partial "svgs/etc/cancel.svg" (dict "width" 28 "height" 28) }}
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/search/site-search-mobile.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{ partial "svgs/etc/search.svg" (dict "width" 22 "height" 22) }}
</div>

<div id="search-mobile-container" class="mobile-search hide" data-dir="{{ $.Param "languagedir" | default "ltr" }}">
<div id="search-mobile-container" class="mobile-search hide" data-dir="{{ $.Site.Language.LanguageDirection | default "ltr" }}">
<div class="mobile-search__top">
<input id="search-mobile" type="text" aria-label="Mobile Search" placeholder="{{T "search-placeholder"}}" class="mobile-search__top--input"/>
<div id="search-mobile-close" class="mobile-search__top--icon">
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/showcase/show-pinned.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{{ $category := .Params.category }}
{{ $categoryIcon := (print "svgs/showcase/" (.Params.categoryIcon | default "code") ".svg") }}
{{ range where .Pages "Params.pinned" true }}
<li class="showcase__box" data-dir="{{ $.Param "languagedir" | default "ltr" }}">
<li class="showcase__box" data-dir="{{ $.Site.Language.LanguageDirection | default "ltr" }}">
<a href="{{ .Params.Link }}" class="showcase__box--link" target="_blank" rel="noreferrer"></a>
<span class="showcase__box--title">
{{ .Title }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/showcase/show-section.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{{ $category := .Params.category }}
{{ $categoryIcon := (print "svgs/showcase/" (.Params.categoryIcon | default "code") ".svg") }}
{{ range .Pages }}
<div class="showcase__box" data-dir="{{ $.Param "languagedir" | default "ltr" }}">
<div class="showcase__box" data-dir="{{ $.Site.Language.LanguageDirection | default "ltr" }}">
<a href="{{ .Params.Link }}" class="showcase__box--link" target="_blank" rel="noreferrer"></a>
<a href="{{ .Params.Link }}" class="showcase__box--title" target="_blank" rel="noreferrer">
{{ .Title }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/sidebar/sidebar-single.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h6 class="toc__title" data-ani="{{ $.Site.Params.enableUiAnimation | default "t
</label>
{{ end }}
</div>
<div class="toc {{ if $.Param "hideToc" }}hide{{ end }}" data-dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}" data-folding="{{ if $.Param "tocFolding" }}true{{ else }}false{{ end }}" data-ani="{{ $.Site.Params.enableUiAnimation | default "true" }}">
<div class="toc {{ if $.Param "hideToc" }}hide{{ end }}" data-dir="{{ if ne $.Site.Language.LanguageDirection "rtl" }}ltr{{ else }}rtl{{ end }}" data-folding="{{ if $.Param "tocFolding" }}true{{ else }}false{{ end }}" data-ani="{{ $.Site.Params.enableUiAnimation | default "true" }}">
{{ .TableOfContents }}
</div>
</section>
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/sidebar/site-bio.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ if $.Param "enableBio" }}
<section class="bio" data-dir="{{ $.Param "languagedir" | default "ltr" }}">
<section class="bio" data-dir="{{ $.Site.Language.LanguageDirection | default "ltr" }}">
{{ if ($.Param "enableBioImage" | default true) }}
<hr class="hr-slash bio-hr"/>
<div class="bio__photo-wrapper">
Expand Down
8 changes: 4 additions & 4 deletions layouts/partials/summary/card.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
<header>
<h5 class="title h5"><a href='{{ .Permalink }}'>{{- with .Params.pinned -}}{{ ($.Site.Params.pinIcon | safeHTML) | default "📌" }}&nbsp;{{- end -}}{{ .Title }}</a> </h5>
<h6 class="subtitle caption">
<time title="{{ i18n "tooltip-written" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}">{{ ($.Site.Params.writtenTimeIcon | safeHTML) | default "📅" }}{{ .Date.Format (i18n "summary-dateformat") }} </time>
<time title="{{ i18n "tooltip-written" }}" dir="{{ if ne $.Site.Language.LanguageDirection "rtl" }}ltr{{ else }}rtl{{ end }}">{{ ($.Site.Params.writtenTimeIcon | safeHTML) | default "📅" }}{{ .Date.Format (i18n "summary-dateformat") }} </time>
{{ if ne (.Date.Format (i18n "summary-dateformat")) (.Lastmod.Format (i18n "summary-dateformat")) }}
<time title="{{ i18n "tooltip-modified" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}"> &middot; {{ ($.Site.Params.modifiedTimeIcon | safeHTML) | default "📝" }} {{ .Lastmod.Format (i18n "summary-dateformat") }} </time>
<time title="{{ i18n "tooltip-modified" }}" dir="{{ if ne $.Site.Language.LanguageDirection "rtl" }}ltr{{ else }}rtl{{ end }}"> &middot; {{ ($.Site.Params.modifiedTimeIcon | safeHTML) | default "📝" }} {{ .Lastmod.Format (i18n "summary-dateformat") }} </time>
{{ end }}
<span title="{{ i18n "tooltip-reading-time" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}"> &middot; {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }} {{ .ReadingTime }} {{ i18n "reading-time" }}</span>
<span title="{{ i18n "tooltip-reading-time" }}" dir="{{ if ne $.Site.Language.LanguageDirection "rtl" }}ltr{{ else }}rtl{{ end }}"> &middot; {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }} {{ .ReadingTime }} {{ i18n "reading-time" }}</span>
{{ with $.Param "author" }}
&middot; <span title="{{ i18n "single-writtenBy" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}">{{ if $.Param "AuthorEmoji" }}{{ $.Param "AuthorEmoji" }}{{ else }}{{ ($.Site.Params.authorIcon | safeHTML) | default "✍️" }}{{ end }}&nbsp;{{ . }}</span>
&middot; <span title="{{ i18n "single-writtenBy" }}" dir="{{ if ne $.Site.Language.LanguageDirection "rtl" }}ltr{{ else }}rtl{{ end }}">{{ if $.Param "AuthorEmoji" }}{{ $.Param "AuthorEmoji" }}{{ else }}{{ ($.Site.Params.authorIcon | safeHTML) | default "✍️" }}{{ end }}&nbsp;{{ . }}</span>
{{ end }}
</h6>
</header>
Expand Down
8 changes: 4 additions & 4 deletions layouts/partials/summary/classic.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
<header>
<h5 class="title h5"><a href='{{ .Permalink }}'>{{- with .Params.pinned -}}{{ ($.Site.Params.pinIcon | safeHTML) | default "📌" }}&nbsp;{{- end -}}{{ .Title }}</a> </h5>
<h6 class="subtitle caption">
<time title="{{ i18n "tooltip-written" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}">{{ ($.Site.Params.writtenTimeIcon | safeHTML) | default "📅" }}&nbsp;{{ .Date.Format (i18n "summary-dateformat") }} </time>
<time title="{{ i18n "tooltip-written" }}" dir="{{ if ne $.Site.Language.LanguageDirection "rtl" }}ltr{{ else }}rtl{{ end }}">{{ ($.Site.Params.writtenTimeIcon | safeHTML) | default "📅" }}&nbsp;{{ .Date.Format (i18n "summary-dateformat") }} </time>
{{ if ne (.Date.Format (i18n "summary-dateformat")) (.Lastmod.Format (i18n "summary-dateformat")) }}
<time title="{{ i18n "tooltip-modified" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}"> &middot; {{ ($.Site.Params.modifiedTimeIcon | safeHTML) | default "📝" }}&nbsp;{{ .Lastmod.Format (i18n "summary-dateformat") }} </time>
<time title="{{ i18n "tooltip-modified" }}" dir="{{ if ne $.Site.Language.LanguageDirection "rtl" }}ltr{{ else }}rtl{{ end }}"> &middot; {{ ($.Site.Params.modifiedTimeIcon | safeHTML) | default "📝" }}&nbsp;{{ .Lastmod.Format (i18n "summary-dateformat") }} </time>
{{ end }}
<span title="{{ i18n "tooltip-reading-time" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}"> &middot; {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }}&nbsp;{{ .ReadingTime }}&nbsp;{{ i18n "reading-time" }} </span>
<span title="{{ i18n "tooltip-reading-time" }}" dir="{{ if ne $.Site.Language.LanguageDirection "rtl" }}ltr{{ else }}rtl{{ end }}"> &middot; {{ ($.Site.Params.readingTimeIcon | safeHTML) | default "☕" }}&nbsp;{{ .ReadingTime }}&nbsp;{{ i18n "reading-time" }} </span>
{{ with $.Param "author" }}
&middot; <span title="{{ i18n "single-writtenBy" }}" dir="{{ if ne ($.Param "languagedir") "rtl" }}ltr{{ else }}rtl{{ end }}">{{ if $.Param "authorEmoji" }}{{ $.Param "authorEmoji" }}{{ else }}{{ ($.Site.Params.authorIcon | safeHTML) | default "✍️" }}{{ end }}&nbsp;{{ . }}</span>
&middot; <span title="{{ i18n "single-writtenBy" }}" dir="{{ if ne $.Site.Language.LanguageDirection "rtl" }}ltr{{ else }}rtl{{ end }}">{{ if $.Param "authorEmoji" }}{{ $.Param "authorEmoji" }}{{ else }}{{ ($.Site.Params.authorIcon | safeHTML) | default "✍️" }}{{ end }}&nbsp;{{ . }}</span>
{{ end }}
</h6>
</header>
Expand Down
Loading