summaryrefslogtreecommitdiff
path: root/themes/blowfish/layouts/partials
diff options
context:
space:
mode:
Diffstat (limited to 'themes/blowfish/layouts/partials')
-rw-r--r--themes/blowfish/layouts/partials/article-link/card-related.html4
-rw-r--r--themes/blowfish/layouts/partials/article-link/card.html4
-rw-r--r--themes/blowfish/layouts/partials/article-link/simple.html4
-rw-r--r--themes/blowfish/layouts/partials/author-extra.html6
-rw-r--r--themes/blowfish/layouts/partials/author.html6
-rw-r--r--themes/blowfish/layouts/partials/footer.html8
-rw-r--r--themes/blowfish/layouts/partials/header/basic.html8
-rw-r--r--themes/blowfish/layouts/partials/header/header-mobile-option-nested.html6
-rw-r--r--themes/blowfish/layouts/partials/header/header-mobile-option-simple.html4
-rw-r--r--themes/blowfish/layouts/partials/header/header-option-nested.html4
-rw-r--r--themes/blowfish/layouts/partials/header/header-option-simple.html4
-rw-r--r--themes/blowfish/layouts/partials/home/background.html4
-rw-r--r--themes/blowfish/layouts/partials/home/card.html4
-rw-r--r--themes/blowfish/layouts/partials/home/hero.html4
-rw-r--r--themes/blowfish/layouts/partials/home/page.html2
-rw-r--r--themes/blowfish/layouts/partials/home/profile.html6
-rw-r--r--themes/blowfish/layouts/partials/meta/date-updated.html2
-rw-r--r--themes/blowfish/layouts/partials/meta/date.html2
-rw-r--r--themes/blowfish/layouts/partials/meta/word-count.html2
-rw-r--r--themes/blowfish/layouts/partials/recent-articles/main.html4
-rw-r--r--themes/blowfish/layouts/partials/toc.html37
-rw-r--r--themes/blowfish/layouts/partials/translations.html2
22 files changed, 77 insertions, 50 deletions
diff --git a/themes/blowfish/layouts/partials/article-link/card-related.html b/themes/blowfish/layouts/partials/article-link/card-related.html
index c7dbcc3..b1369a1 100644
--- a/themes/blowfish/layouts/partials/article-link/card-related.html
+++ b/themes/blowfish/layouts/partials/article-link/card-related.html
@@ -65,7 +65,7 @@
{{ if .Params.showSummary | default (.Site.Params.list.showSummary | default false) }}
<div class="py-1 prose dark:prose-invert">
- {{ .Summary | emojify }}
+ {{ .Summary }}
</div>
{{ end }}
</div>
@@ -73,4 +73,4 @@
</div>
</div>
- </a> \ No newline at end of file
+ </a>
diff --git a/themes/blowfish/layouts/partials/article-link/card.html b/themes/blowfish/layouts/partials/article-link/card.html
index dd2a788..b01603e 100644
--- a/themes/blowfish/layouts/partials/article-link/card.html
+++ b/themes/blowfish/layouts/partials/article-link/card.html
@@ -66,7 +66,7 @@
{{ if .Params.showSummary | default (.Site.Params.list.showSummary | default false) }}
<div class="py-1 prose dark:prose-invert">
- {{ .Summary | emojify }}
+ {{ .Summary }}
</div>
{{ end }}
</div>
@@ -74,4 +74,4 @@
</div>
</div>
- </a> \ No newline at end of file
+ </a>
diff --git a/themes/blowfish/layouts/partials/article-link/simple.html b/themes/blowfish/layouts/partials/article-link/simple.html
index afee487..a230b2d 100644
--- a/themes/blowfish/layouts/partials/article-link/simple.html
+++ b/themes/blowfish/layouts/partials/article-link/simple.html
@@ -94,8 +94,8 @@
</div>
{{ if .Params.showSummary | default (.Site.Params.list.showSummary | default false) }}
<div class="py-1 max-w-fit prose dark:prose-invert">
- {{ .Summary | emojify }}
+ {{ .Summary }}
</div>
{{ end }}
</div>
- </a> \ No newline at end of file
+ </a>
diff --git a/themes/blowfish/layouts/partials/author-extra.html b/themes/blowfish/layouts/partials/author-extra.html
index 701e9fa..9f98342 100644
--- a/themes/blowfish/layouts/partials/author-extra.html
+++ b/themes/blowfish/layouts/partials/author-extra.html
@@ -21,13 +21,13 @@
{{ $link := .link}}
{{ with .data.name | markdownify | emojify }}
<div class="text-[0.6rem] uppercase leading-3 text-neutral-500 dark:text-neutral-400">
- {{ i18n "author.byline_title" | markdownify | emojify }}
+ {{ i18n "author.byline_title" | markdownify }}
</div>
<a {{ if $link }} href="{{ $link }}" {{ end }} class="font-semibold leading-6 text-neutral-800 dark:text-neutral-300">
{{ . }}
</a>
{{ end }}
- {{ with .data.bio | markdownify | emojify }}
+ {{ with .data.bio | markdownify }}
<div class="text-sm text-neutral-700 dark:text-neutral-400">{{ . }}</div>
{{ end }}
<div class="text-2xl sm:text-lg">
@@ -41,4 +41,4 @@
</div>
</div>
</div>
-</div> \ No newline at end of file
+</div>
diff --git a/themes/blowfish/layouts/partials/author.html b/themes/blowfish/layouts/partials/author.html
index c544a2f..53fd9be 100644
--- a/themes/blowfish/layouts/partials/author.html
+++ b/themes/blowfish/layouts/partials/author.html
@@ -23,15 +23,15 @@
{{ end }}
{{ end }}
<div class="place-self-center">
- {{ with .Site.Author.name | markdownify | emojify }}
+ {{ with .Site.Author.name | markdownify }}
<div class="text-[0.6rem] uppercase leading-3 text-neutral-500 dark:text-neutral-400">
- {{ i18n "author.byline_title" | markdownify | emojify }}
+ {{ i18n "author.byline_title" | markdownify }}
</div>
<div class="font-semibold leading-6 text-neutral-800 dark:text-neutral-300">
{{ . }}
</div>
{{ end }}
- {{ with .Site.Author.bio | markdownify | emojify }}
+ {{ with .Site.Author.bio | markdownify }}
<div class="text-sm text-neutral-700 dark:text-neutral-400">{{ . }}</div>
{{ end }}
<div class="text-2xl sm:text-lg">{{ partialCached "author-links.html" . }}</div>
diff --git a/themes/blowfish/layouts/partials/footer.html b/themes/blowfish/layouts/partials/footer.html
index 1f8fc5f..d31cecd 100644
--- a/themes/blowfish/layouts/partials/footer.html
+++ b/themes/blowfish/layouts/partials/footer.html
@@ -13,7 +13,7 @@
{{ partial "icon.html" .Pre }}
</span>
{{ end }}
- {{ .Name | markdownify | emojify }}
+ {{ .Name | markdownify }}
</a>
</li>
{{ end }}
@@ -27,11 +27,11 @@
{{ if .Site.Params.footer.showCopyright | default true }}
<p class="text-sm text-neutral-500 dark:text-neutral-400">
{{- with replace .Site.Params.copyright "{ year }" now.Year }}
- {{ . | emojify | markdownify }}
+ {{ . | markdownify }}
{{- else }}
&copy;
{{ now.Format "2006" }}
- {{ .Site.Author.name | markdownify | emojify }}
+ {{ .Site.Author.name | markdownify }}
{{- end }}
</p>
{{ end }}
@@ -65,4 +65,4 @@
{{ if templates.Exists "partials/extend-footer.html" }}
{{ partialCached "extend-footer.html" . }}
{{ end }}
-</footer> \ No newline at end of file
+</footer>
diff --git a/themes/blowfish/layouts/partials/header/basic.html b/themes/blowfish/layouts/partials/header/basic.html
index 3a513c6..6b2c6fa 100644
--- a/themes/blowfish/layouts/partials/header/basic.html
+++ b/themes/blowfish/layouts/partials/header/basic.html
@@ -5,7 +5,7 @@
{{ if $logo }}
<div>
<a href="{{ "" | relLangURL }}" class="flex">
- <span class="sr-only">{{ .Site.Title | markdownify | emojify }}</span>
+ <span class="sr-only">{{ .Site.Title | markdownify }}</span>
<img src="{{ $logo.RelPermalink }}" width="{{ div $logo.Width 2 }}" height="{{ div $logo.Height 2 }}"
class="logo max-h-[5rem] max-w-[5rem] object-scale-down object-left nozoom" alt="{{ .Site.Title }}" />
@@ -20,7 +20,7 @@
{{ if not .Site.Params.disableTextInHeader | default true }}
<a href="{{ "" | relLangURL }}" class="text-base font-medium text-gray-500 hover:text-gray-900">{{
.Site.Title | markdownify
- | emojify }}</a>
+ }}</a>
{{ end }}
</nav>
@@ -129,7 +129,7 @@
</span>
{{ end }}
<p class="text-sm font-sm text-gray-500 hover:text-gray-900" title="{{ .Title }}">
- {{ .Name | markdownify | emojify }}
+ {{ .Name | markdownify }}
</p>
</a>
</li>
@@ -157,7 +157,7 @@
</span>
{{ end }}
<p class="text-xs font-light text-gray-500 hover:text-gray-900" title="{{ .Title }}">
- {{ .Name | markdownify | emojify }}
+ {{ .Name | markdownify }}
</p>
</a>
{{ end }}
diff --git a/themes/blowfish/layouts/partials/header/header-mobile-option-nested.html b/themes/blowfish/layouts/partials/header/header-mobile-option-nested.html
index 04c3e6d..01b1359 100644
--- a/themes/blowfish/layouts/partials/header/header-mobile-option-nested.html
+++ b/themes/blowfish/layouts/partials/header/header-mobile-option-nested.html
@@ -6,7 +6,7 @@
</span>
{{ end }}
<p class="text-bg font-bg" title="{{ .Title }}">
- {{ .Name | markdownify | emojify }}
+ {{ .Name | markdownify }}
</p>
<span>
{{ partial "icon.html" "chevron-down" }}
@@ -23,9 +23,9 @@
</span>
{{ end }}
<p class="text-sm font-small" title="{{ .Title }}">
- {{ .Name | markdownify | emojify }}
+ {{ .Name | markdownify }}
</p>
</a>
</li>
{{ end }}
-<li class="mb-2"></li> \ No newline at end of file
+<li class="mb-2"></li>
diff --git a/themes/blowfish/layouts/partials/header/header-mobile-option-simple.html b/themes/blowfish/layouts/partials/header/header-mobile-option-simple.html
index e4d2d64..f7594f1 100644
--- a/themes/blowfish/layouts/partials/header/header-mobile-option-simple.html
+++ b/themes/blowfish/layouts/partials/header/header-mobile-option-simple.html
@@ -7,7 +7,7 @@
</div>
{{ end }}
<p class="text-bg font-bg" title="{{ .Title }}">
- {{ .Name | markdownify | emojify }}
+ {{ .Name | markdownify }}
</p>
</a>
-</li> \ No newline at end of file
+</li>
diff --git a/themes/blowfish/layouts/partials/header/header-option-nested.html b/themes/blowfish/layouts/partials/header/header-option-nested.html
index b86fed6..7f7a632 100644
--- a/themes/blowfish/layouts/partials/header/header-option-nested.html
+++ b/themes/blowfish/layouts/partials/header/header-option-nested.html
@@ -7,7 +7,7 @@
{{ end }}
<a {{ if .URL }} href="{{ .URL }}" {{ if or (strings.HasPrefix .URL "http:" ) (strings.HasPrefix .URL "https:" ) }}
target="_blank" {{ end }} {{ end }} class="text-base font-medium text-gray-500 hover:text-primary-600 dark:hover:text-primary-400" title="{{ .Title }}">
- {{ .Name | markdownify | emojify }}
+ {{ .Name | markdownify }}
</a>
<span>
{{ partial "icon.html" "chevron-down" }}
@@ -25,7 +25,7 @@
</span>
{{ end }}
<p class="text-sm font-sm" title="{{ .Title }}">
- {{ .Name | markdownify | emojify }}
+ {{ .Name | markdownify }}
</p>
</a>
{{ end }}
diff --git a/themes/blowfish/layouts/partials/header/header-option-simple.html b/themes/blowfish/layouts/partials/header/header-option-simple.html
index 9ce01b8..b8d324d 100644
--- a/themes/blowfish/layouts/partials/header/header-option-simple.html
+++ b/themes/blowfish/layouts/partials/header/header-option-simple.html
@@ -6,6 +6,6 @@
</span>
{{ end }}
<p class="text-base font-medium" title="{{ .Title }}">
- {{ .Name | markdownify | emojify }}
+ {{ .Name | markdownify }}
</p>
-</a> \ No newline at end of file
+</a>
diff --git a/themes/blowfish/layouts/partials/home/background.html b/themes/blowfish/layouts/partials/home/background.html
index 2549033..2746eea 100644
--- a/themes/blowfish/layouts/partials/home/background.html
+++ b/themes/blowfish/layouts/partials/home/background.html
@@ -51,7 +51,7 @@
</h1>
{{ with .Site.Author.headline }}
<h2 class="mt-0 mb-0 text-xl text-neutral-800 dark:text-neutral-300">
- {{ . | markdownify | emojify }}
+ {{ . | markdownify }}
</h2>
{{ end }}
<div class="mt-3 mb-10 text-2xl">
@@ -67,7 +67,7 @@
</div>
{{ end }}
</div>
- <section class="prose dark:prose-invert">{{ .Content | emojify }}</section>
+ <section class="prose dark:prose-invert">{{ .Content }}</section>
</div>
</div>
</div>
diff --git a/themes/blowfish/layouts/partials/home/card.html b/themes/blowfish/layouts/partials/home/card.html
index 0b17f83..8e85455 100644
--- a/themes/blowfish/layouts/partials/home/card.html
+++ b/themes/blowfish/layouts/partials/home/card.html
@@ -9,7 +9,7 @@
<h1>{{ . | emojify }}</h1>
</header>
{{ end }}
- <section>{{ .Content | emojify }}</section>
+ <section>{{ .Content }}</section>
</article>
</div>
<div class="mt-6 sm:mt-16 lg:mt-0 mx-auto max-w-xl px-4 sm:px-6 lg:mx-0 lg:max-w-none lg:py-16 lg:px-0">
@@ -40,4 +40,4 @@
</div>
<section>
{{ partial "recent-articles/main.html" . }}
-</section> \ No newline at end of file
+</section>
diff --git a/themes/blowfish/layouts/partials/home/hero.html b/themes/blowfish/layouts/partials/home/hero.html
index cb5933d..7a0a511 100644
--- a/themes/blowfish/layouts/partials/home/hero.html
+++ b/themes/blowfish/layouts/partials/home/hero.html
@@ -48,7 +48,7 @@
</h1>
{{ with .Site.Author.headline }}
<h2 class="mt-0 mb-0 text-xl text-neutral-300">
- {{ . | markdownify | emojify }}
+ {{ . | markdownify }}
</h2>
{{ end }}
<div class="mt-3 mb-10 text-2xl">
@@ -64,7 +64,7 @@
</div>
{{ end }}
</div>
- <section class="prose prose-invert">{{ .Content | emojify }}</section>
+ <section class="prose prose-invert">{{ .Content }}</section>
</div>
</div>
</div>
diff --git a/themes/blowfish/layouts/partials/home/page.html b/themes/blowfish/layouts/partials/home/page.html
index d715b78..45b681d 100644
--- a/themes/blowfish/layouts/partials/home/page.html
+++ b/themes/blowfish/layouts/partials/home/page.html
@@ -4,7 +4,7 @@
<h1>{{ . | emojify }}</h1>
</header>
{{ end }}
- <section>{{ .Content | emojify }}</section>
+ <section>{{ .Content }}</section>
</article>
<section>
{{ partial "recent-articles/main.html" . }}
diff --git a/themes/blowfish/layouts/partials/home/profile.html b/themes/blowfish/layouts/partials/home/profile.html
index 70e4ac9..09e8ada 100644
--- a/themes/blowfish/layouts/partials/home/profile.html
+++ b/themes/blowfish/layouts/partials/home/profile.html
@@ -23,15 +23,15 @@
</h1>
{{ with .Site.Author.headline }}
<h2 class="text-xl text-neutral-500 dark:text-neutral-400">
- {{ . | markdownify | emojify }}
+ {{ . | markdownify }}
</h2>
{{ end }}
<div class="mt-1 text-2xl">
{{ partialCached "author-links.html" . }}
</div>
</header>
- <section class="prose dark:prose-invert">{{ .Content | emojify }}</section>
+ <section class="prose dark:prose-invert">{{ .Content }}</section>
</article>
<section>
{{ partial "recent-articles/main.html" . }}
-</section> \ No newline at end of file
+</section>
diff --git a/themes/blowfish/layouts/partials/meta/date-updated.html b/themes/blowfish/layouts/partials/meta/date-updated.html
index cc25c69..e0fca35 100644
--- a/themes/blowfish/layouts/partials/meta/date-updated.html
+++ b/themes/blowfish/layouts/partials/meta/date-updated.html
@@ -1,4 +1,4 @@
<time datetime="{{ . }}">
- {{- i18n "article.date_updated" (dict "Date" (partial "functions/date.html" .)) | markdownify | emojify -}}
+ {{- i18n "article.date_updated" (dict "Date" (partial "functions/date.html" .)) | markdownify -}}
</time>
{{- /* Trim EOF */ -}}
diff --git a/themes/blowfish/layouts/partials/meta/date.html b/themes/blowfish/layouts/partials/meta/date.html
index 654a6c7..10a639e 100644
--- a/themes/blowfish/layouts/partials/meta/date.html
+++ b/themes/blowfish/layouts/partials/meta/date.html
@@ -1,4 +1,4 @@
<time datetime="{{ . }}">
- {{- i18n "article.date" (dict "Date" (partial "functions/date.html" .)) | markdownify | emojify -}}
+ {{- i18n "article.date" (dict "Date" (partial "functions/date.html" .)) | markdownify -}}
</time>
{{- /* Trim EOF */ -}}
diff --git a/themes/blowfish/layouts/partials/meta/word-count.html b/themes/blowfish/layouts/partials/meta/word-count.html
index 517101a..4dea78b 100644
--- a/themes/blowfish/layouts/partials/meta/word-count.html
+++ b/themes/blowfish/layouts/partials/meta/word-count.html
@@ -1,4 +1,4 @@
<span>
- {{- i18n "article.word_count" .WordCount | markdownify | emojify -}}
+ {{- i18n "article.word_count" .WordCount | markdownify -}}
</span>
{{- /* Trim EOF */ -}}
diff --git a/themes/blowfish/layouts/partials/recent-articles/main.html b/themes/blowfish/layouts/partials/recent-articles/main.html
index 8addb36..856cb3f 100644
--- a/themes/blowfish/layouts/partials/recent-articles/main.html
+++ b/themes/blowfish/layouts/partials/recent-articles/main.html
@@ -22,9 +22,9 @@
<a href="{{ $showMoreLinkDest }}">
<button
class="bg-transparent hover:text-primary-500 prose dark:prose-invert font-semibold hover:text-white py-2 px-4 border border-primary-500 hover:border-transparent rounded">
- {{ i18n "recent.show_more" | markdownify | emojify }}
+ {{ i18n "recent.show_more" | markdownify }}
</button>
</a>
</div>
{{ end }}
-{{ end }} \ No newline at end of file
+{{ end }}
diff --git a/themes/blowfish/layouts/partials/toc.html b/themes/blowfish/layouts/partials/toc.html
index e9dc950..5f3ffa1 100644
--- a/themes/blowfish/layouts/partials/toc.html
+++ b/themes/blowfish/layouts/partials/toc.html
@@ -1,10 +1,11 @@
-<details open class="toc-right mt-0 overflow-hidden rounded-lg ltr:-ml-5 ltr:pl-5 rtl:-mr-5 rtl:pr-5 hidden lg:block">
+<details open id="TOCView"
+ class="toc-right mt-0 overflow-y-scroll overscroll-contain scrollbar-thin scrollbar-track-neutral-200 scrollbar-thumb-neutral-400 dark:scrollbar-track-neutral-800 dark:scrollbar-thumb-neutral-600 rounded-lg ltr:-ml-5 ltr:pl-5 rtl:-mr-5 rtl:pr-5 hidden lg:block">
<summary
class="block py-1 text-lg font-semibold cursor-pointer bg-neutral-100 text-neutral-800 ltr:-ml-5 ltr:pl-5 rtl:-mr-5 rtl:pr-5 dark:bg-neutral-700 dark:text-neutral-100 lg:hidden">
{{ i18n "article.table_of_contents" }}
</summary>
<div
- class="min-w-[220px] py-2 border-dotted border-neutral-300 ltr:-ml-5 ltr:border-l ltr:pl-5 rtl:-mr-5 rtl:border-r rtl:pr-5 dark:border-neutral-600">
+ class="min-w-[220px] py-2 border-dotted ltr:-ml-5 ltr:border-l ltr:pl-5 rtl:-mr-5 rtl:border-r rtl:pr-5 dark:border-neutral-600">
{{ .TableOfContents | emojify }}
</div>
</details>
@@ -19,8 +20,33 @@
</div>
</details>
-{{ if .Site.Params.smartTOC }}
<script>
+
+ var margin = 200;
+ var marginError = 50;
+
+ (function () {
+ var $window = $(window);
+ var $toc = $('#TOCView');
+ var tocHeight = $toc.height();
+
+ function onResize() {
+ var windowAndMarginHeight = $window.height() - margin;
+ if(tocHeight >= windowAndMarginHeight) {
+ $toc.css("overflow-y", "scroll")
+ $toc.css("max-height", (windowAndMarginHeight + marginError) + "px")
+ } else {
+ $toc.css("overflow-y", "hidden")
+ $toc.css("max-height", "9999999px")
+ }
+ }
+
+ $window.on('resize', onResize);
+ $(document).ready(onResize);
+ })();
+
+{{ if .Site.Params.smartTOC }}
+
(function () {
var $toc = $('#TableOfContents');
if ($toc.length > 0) {
@@ -33,7 +59,7 @@
h.each(function (i, e) {
e = $(e);
if (e.offset().top - $(window).height()/3 <= currentScroll) {
- id = e.attr('id');
+ id = decodeURIComponent(e.attr('id'));
}
});
var active = $toc.find('a.active');
@@ -61,5 +87,6 @@
});
}
})();
+{{ end }}
+
</script>
-{{ end }} \ No newline at end of file
diff --git a/themes/blowfish/layouts/partials/translations.html b/themes/blowfish/layouts/partials/translations.html
index e09ffb3..657a65f 100644
--- a/themes/blowfish/layouts/partials/translations.html
+++ b/themes/blowfish/layouts/partials/translations.html
@@ -5,7 +5,7 @@
{{ partial "icon.html" "language" }}
</span>
<div class="text-sm font-medium text-gray-500 hover:text-primary-600 dark:hover:text-primary-400" title="{{ .Title }}">
- {{- i18n "global.language" | markdownify | emojify -}}
+ {{- i18n "global.language" | markdownify -}}
</div>
</div>
<div class="absolute menuhide">