Zen-mode feature

This commit is contained in:
v20100v
2023-12-19 11:23:25 +01:00
parent b6744efbf2
commit e1f6607def
16 changed files with 2514 additions and 2392 deletions

View File

@@ -31,8 +31,8 @@
{{ $showAuthor := 0 }}
{{ if .Params.showAuthor | default (.Site.Params.article.showAuthor | default true) }}
{{ $showAuthor = 1 }}
{{ partial "author.html" . }}
{{ $showAuthor = 1 }}
{{ partial "author.html" . }}
{{ end }}
{{ if not (strings.HasSuffix $baseURL "/") }}
@@ -63,7 +63,7 @@
{{ if or (and (.Params.showTableOfContents | default (.Site.Params.article.showTableOfContents | default false)) (in
.TableOfContents "<ul")) (.Site.Params.article.showRelatedPosts | default false) }} <div
class="order-first sm:max-w-prose lg:ml-auto px-0 lg:order-last lg:max-w-xs ltr:lg:pl-8 rtl:lg:pr-8">
class="order-first lg:ml-auto px-0 lg:order-last ltr:lg:pl-8 rtl:lg:pr-8">
<div class="toc ltr:pl-5 rtl:pr-5 print:hidden lg:sticky {{ if hasPrefix .Site.Params.header.layout "fixed" -}}
lg:top-[140px]{{ else }}lg:top-10{{ end }}">
@@ -77,7 +77,7 @@
{{ partial "series.html" . }}
<div class="max-w-prose mb-20">
<div class="article-content max-w-prose mb-20">
{{ .Content | emojify }}
</div>