From 63ec83fda44ef3c74d801575619ee6c097e8cca2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Gmach?= Date: Thu, 10 Jun 2021 15:15:30 +0200 Subject: [PATCH 01/65] fix typos in README.md (#415) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e7c7cd2..bed6351 100644 --- a/README.md +++ b/README.md @@ -42,12 +42,12 @@ The [demo](https://adityatelange.github.io/hugo-PaperMod/) includes a lot of doc - Cover image for each post (with Responsive image support). - Light/Dark theme (automatic theme switch a/c to browser theme and theme-switch button). - SEO Friendly. -- Muliple Author support. +- Multiple Author support. - Search Page with Fuse.js - Other Posts suggestion below a post - BreadCrumb Navigation - Code Block Copy buttons -- No webpack, nodejs and other depedencies required to edit the theme. +- No webpack, nodejs and other dependencies required to edit the theme. Read Wiki For More Details => **[PaperMod - Features](https://github.com/adityatelange/hugo-PaperMod/wiki/Features)** From 378b81cb36c30747148be0cc05327eea55f53de5 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Thu, 10 Jun 2021 22:49:39 +0530 Subject: [PATCH 02/65] Use default code font-family --- assets/css/common/post-single.css | 1 - 1 file changed, 1 deletion(-) diff --git a/assets/css/common/post-single.css b/assets/css/common/post-single.css index 1d31b62..04642a2 100644 --- a/assets/css/common/post-single.css +++ b/assets/css/common/post-single.css @@ -200,7 +200,6 @@ .post-content code { margin: auto 4px; padding: 4px 6px; - font-family: Menlo, Monaco, 'Courier New', Courier, monospace; font-size: .78em; line-height: 1.5; background: var(--code-bg); From da69dda48cc9da18bd434890603a0aa1c92025e3 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Thu, 10 Jun 2021 23:10:40 +0530 Subject: [PATCH 03/65] Allow disabling anchored headings Usage => For site-wide: Params.disableAnchoredHeadings: true For front-matter: disableAnchoredHeadings: true --- layouts/_default/single.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index c73680f..8a85fc8 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -26,7 +26,9 @@ {{- partial "toc.html" . }} {{- end }}
+ {{- if not (.Param "disableAnchoredHeadings") }} {{- partial "anchored_headings.html" .Content -}} + {{- else }}{{ .Content }}{{ end }}