From e03bc919bce8fbaa359409b1c183558d950a8350 Mon Sep 17 00:00:00 2001
From: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
Date: Tue, 6 Oct 2020 09:20:21 +0530
Subject: [PATCH 001/669] Add Stale bot
---
.github/stale.yml | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 .github/stale.yml
diff --git a/.github/stale.yml b/.github/stale.yml
new file mode 100644
index 00000000..7b5f5711
--- /dev/null
+++ b/.github/stale.yml
@@ -0,0 +1,17 @@
+# Number of days of inactivity before an issue becomes stale
+daysUntilStale: 7
+# Number of days of inactivity before a stale issue is closed
+daysUntilClose: 3
+# Issues with these labels will never be considered stale
+exemptLabels:
+ - pinned
+ - keep
+# Label to use when marking an issue as stale
+staleLabel: stale
+# Comment to post when marking an issue as stale. Set to `false` to disable
+markComment: >
+ This issue has been automatically marked as stale because it has not had
+ recent activity. It will be closed if no further activity occurs. Thank you
+ for your contributions.
+# Comment to post when closing a stale issue. Set to `false` to disable
+closeComment: false
From fae1c47611e3204d08becb5e9c6e9ec707901a7a Mon Sep 17 00:00:00 2001
From: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
Date: Tue, 6 Oct 2020 15:41:44 +0530
Subject: [PATCH 002/669] update theme meta
---
theme.toml | 35 +++++++++++++++++++++++++++++++----
1 file changed, 31 insertions(+), 4 deletions(-)
diff --git a/theme.toml b/theme.toml
index 592d009b..926792e9 100644
--- a/theme.toml
+++ b/theme.toml
@@ -4,11 +4,38 @@
name = "PaperMod"
license = "MIT"
licenselink = "https://github.com/adityatelange/hugo-PaperMod/blob/master/LICENSE"
-description = "A simple, clean, flexible Hugo theme"
+description = "A fast, clean, responsive Hugo theme"
homepage = "https://github.com/adityatelange/hugo-PaperMod"
-tags = ["Responsive", "Simple", "Clean", "Light", "White", "Dark", "Blog", "PaperMod"]
-features = ["Responsive", "One Column", "Blog"]
-min_version = "0.57.1"
+tags = [
+ "responsive",
+ "simple",
+ "clean",
+ "light",
+ "dark",
+ "blog",
+ "minimalist",
+ "highlight.js"
+]
+features = [
+ "responsive",
+ "single-column",
+ "blog",
+ "cover-image",
+ "table-of-contents",
+ "opengraph",
+ "highlight.js",
+ "favicon",
+ "archive",
+ "share-icons",
+ "cover",
+ "multilingual",
+ "social-icons",
+ "minified-assets",
+ "theme-toggle",
+ "menu-location-indicator",
+ "scroll-to-top"
+]
+min_version = "0.74.0"
[author]
name = "Aditya Telange"
From 82e9b29bf4092ad3d5e1fdf81380e9d465e0e333 Mon Sep 17 00:00:00 2001
From: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
Date: Thu, 8 Oct 2020 09:21:57 +0530
Subject: [PATCH 003/669] post-cover: fix strange `/./ ` in cover image url
#13
---
layouts/_default/single.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 97821ccd..a4c847f5 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -31,7 +31,7 @@
{{- if (or (fileExists (path.Join "static" .Params.cover.image)) (hasPrefix .Params.cover.image "http://") (hasPrefix .Params.cover.image "https://")) }}
{{- else}}
-
+
{{- end}}
{{.Params.cover.caption | markdownify }}
From 724e73facbcc860f0c5e25f528bda4ac43ff82f7 Mon Sep 17 00:00:00 2001
From: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
Date: Thu, 8 Oct 2020 14:27:43 +0530
Subject: [PATCH 004/669] social-icons: add buymeacoffee icon
* icon belongs to buymeacoffee.com
* edited to fit dual-tone theme
---
layouts/partials/svg.html | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html
index 30722642..58fbe422 100644
--- a/layouts/partials/svg.html
+++ b/layouts/partials/svg.html
@@ -19,6 +19,44 @@
style="font-variation-settings:normal"
d="M1.774 18.063V5.466h5.51c1.978 0 3.116 1.326 3.055 2.806-.043 1.049-.711 2.988-2.643 2.988h-5.93H7.73c1.224 0 3.532 1.13 3.532 3.532 0 2.4-1.873 3.27-3.318 3.27zm12.57-4.459h7.89s.012-4.18-4.167-4.18c-5.237 0-5.277 9.11-.3 9.11 3.06 0 3.935-1.806 3.935-1.806M15.526 5.823h4.987" />
+{{- else if (eq .name "buymeacoffee") -}}
+
{{- else if (eq .name "codepen") -}}
+{{- partial "extend_footer.html" . -}}
{{ if in site.Params.mainSections .Type }}
{{- $highlight := slice (resources.Get "js/highlight.min.js") | resources.Concat "assets/js/highlight.js" | minify | fingerprint -}}
@@ -66,4 +67,4 @@
-{{- end }}
\ No newline at end of file
+{{- end }}
From a153a7cc6fe6498029105f8af73587291d7276b0 Mon Sep 17 00:00:00 2001
From: Mehdy Khoshnoody
Date: Mon, 19 Oct 2020 12:47:23 +0330
Subject: [PATCH 025/669] Add RTL support for multilingual mode (#47)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Usage:
in site config:
languages:
ar:
languagedirection: rtl
title: مدونتي
weight: 2
* ref: https://gohugo.io/content-management/multilingual/#configure-languages
---
assets/css/footer.css | 4 ++--
assets/css/header.css | 8 ++++----
assets/css/main.css | 18 +++++++++++++++---
assets/css/post-single.css | 24 ++++++++++++------------
layouts/_default/baseof.html | 2 +-
5 files changed, 34 insertions(+), 22 deletions(-)
diff --git a/assets/css/footer.css b/assets/css/footer.css
index 4fd3acea..cf7197f9 100644
--- a/assets/css/footer.css
+++ b/assets/css/footer.css
@@ -11,8 +11,8 @@
}
.footer span {
- margin-left: 1px;
- margin-right: 1px;
+ margin-inline-start: 1px;
+ margin-inline-end: 1px;
}
.footer a {
diff --git a/assets/css/header.css b/assets/css/header.css
index e5061d43..ef68ef48 100644
--- a/assets/css/header.css
+++ b/assets/css/header.css
@@ -5,8 +5,8 @@
flex-wrap: wrap;
justify-content: space-between;
max-width: calc(var(--nav-width) + var(--gap) * 2);
- margin-left: auto;
- margin-right: auto;
+ margin-inline-start: auto;
+ margin-inline-end: auto;
}
.nav a {
@@ -31,7 +31,7 @@
pointer-events: none;
transform: translate(0, -10%);
border-radius: 6px;
- margin-right: 8px;
+ margin-inline-end: 8px;
}
.theme-toggle svg{
@@ -56,7 +56,7 @@ body:not(.dark) #sun {
}
.menu li+li {
- margin-left: var(--gap);
+ margin-inline-start: var(--gap);
}
.menu a {
diff --git a/assets/css/main.css b/assets/css/main.css
index 8b6c492d..68f8a2f1 100644
--- a/assets/css/main.css
+++ b/assets/css/main.css
@@ -36,7 +36,7 @@
}
.pagination .next {
- margin-left: auto;
+ margin-inline-start: auto;
}
.social-icons {
@@ -44,10 +44,22 @@
}
.social-icons a:not(:last-of-type) {
- margin-right: 12px;
+ margin-inline-end: 12px;
}
.social-icons a svg {
height: 26px;
width: 26px;
-}
\ No newline at end of file
+}
+
+.direction-rtl {
+ direction: rtl;
+}
+
+.direction-ltr {
+ direction: ltr;
+}
+
+code {
+ direction: ltr;
+}
diff --git a/assets/css/post-single.css b/assets/css/post-single.css
index e472704c..57269ddf 100644
--- a/assets/css/post-single.css
+++ b/assets/css/post-single.css
@@ -85,7 +85,7 @@
.post-content ul,
.post-content ol {
- padding-left: 20px;
+ padding-inline-start: 20px;
}
.post-content li {
@@ -109,8 +109,8 @@
.post-content dd {
width: 75%;
- margin-left: 0;
- padding-left: 10px;
+ margin-inline-start: 0;
+ padding-inline-start: 10px;
}
.post-content dt~dt,
@@ -147,11 +147,11 @@
}
.post-content li>.highlight {
- margin-right: 0
+ margin-inline-end: 0
}
.post-content ul pre {
- margin-left: calc(var(--gap) * -2);
+ margin-inline-start: calc(var(--gap) * -2);
}
.post-content .highlight pre {
@@ -168,7 +168,7 @@
}
.post-content .highlighttable td .linenodiv {
- padding-right: 0 !important;
+ padding-inline-end: 0 !important;
}
.post-content .highlighttable td .linenodiv pre,
@@ -236,7 +236,7 @@
.toc details summary {
cursor: zoom-in;
- margin-left: 20px;
+ margin-inline-start: 20px;
}
.toc details[open] summary {
@@ -254,7 +254,7 @@
}
.toc li ul {
- margin-left: var(--gap);
+ margin-inline-start: var(--gap);
}
.post-footer {
@@ -263,14 +263,14 @@
.post-tags li {
display: inline-block;
- margin-right: 3px;
+ margin-inline-end: 3px;
margin-bottom: 5px;
}
.post-tags a {
display: block;
- padding-left: 14px;
- padding-right: 14px;
+ padding-inline-start: 14px;
+ padding-inline-end: 14px;
color: var(--secondary);
font-size: 14px;
line-height: 34px;
@@ -297,7 +297,7 @@
}
.share-buttons a:not(:last-of-type) {
- margin-right: 12px;
+ margin-inline-end: 12px;
}
.share-buttons a svg {
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 6deb9a91..cd999824 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -1,5 +1,5 @@
-
+
{{- partial "head.html" . }}
From ddbd65b93760d647be430110bc575068d2135035 Mon Sep 17 00:00:00 2001
From: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
Date: Mon, 19 Oct 2020 15:58:50 +0530
Subject: [PATCH 026/669] Update README
---
README.md | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index 6746fdd6..8b19ce2e 100755
--- a/README.md
+++ b/README.md
@@ -45,6 +45,7 @@ Read this post For More Details => [hugo-PaperMod - Installation](https://aditya
- Multilingual support.
- Cover image for each post
- Light/Dark theme ( automatic theme switch a/c to browser theme)
+- SEO Friendly
- No webpack, nodejs and other depedencies required to edit the theme :)
Read this post For More Details => [hugo-PaperMod - Features](https://adityatelange.github.io/hugo-PaperMod/posts/papermod/papermod-features/)
@@ -65,12 +66,22 @@ Read this post For More Details => [Social-Icons](https://adityatelange.github.i
---
+### Sponsoring
+
+If you like my work and if you think this project is worth to support it, you can
+
+
+
+
+
+---
+
## Found a bug?
If you spot any bugs, please use [Issue Tracker](https://github.com/adityatelange/hugo-PaperMod/issues) and/or
create a new [Pull Request](https://github.com/adityatelange/hugo-PaperMod/pulls) to fix the issue.
-
-
-
-
\ No newline at end of file
+[](https://github.com/adityatelange/hugo-PaperMod/issues?q=is%3Aopen)
+[](https://github.com/adityatelange/hugo-PaperMod/issues?q=is%3Aissue+is%3Aclosed)
+[](https://github.com/adityatelange/hugo-PaperMod/pulls?q=is%3Aopen+is%3Apr)
+[](https://github.com/adityatelange/hugo-PaperMod/pulls?q=is%3Apr+is%3Aclosed)
From c0ba1ce20dfe9823fff3a4b86e0b04fe8ebb0287 Mon Sep 17 00:00:00 2001
From: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
Date: Mon, 19 Oct 2020 19:00:01 +0530
Subject: [PATCH 027/669] social-icons: add svg for medium
* icon belong to medium[.]com
* converted to svg with online-convert[.]com
---
layouts/partials/svg.html | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html
index 58fbe422..0ab8f789 100644
--- a/layouts/partials/svg.html
+++ b/layouts/partials/svg.html
@@ -177,6 +177,14 @@
+{{- else if (eq .name "medium") -}}
+
{{- else if (eq .name "mixcloud") -}}
-{{- end -}}
\ No newline at end of file
+{{- end -}}
From ea9aa385734acce8aedabd70d83ff30c47fa945d Mon Sep 17 00:00:00 2001
From: Zhangyuan Nie
Date: Tue, 20 Oct 2020 01:08:43 -0400
Subject: [PATCH 028/669] header: disable user-select for theme-toggle (#52)
* fix: clicking twice on theme switch selects other text on the nav-bar.
---
assets/css/header.css | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/assets/css/header.css b/assets/css/header.css
index ef68ef48..72b5f6aa 100644
--- a/assets/css/header.css
+++ b/assets/css/header.css
@@ -34,9 +34,10 @@
margin-inline-end: 8px;
}
-.theme-toggle svg{
+.theme-toggle svg {
height: 18px;
margin: 0 10px;
+ user-select: none;
}
body.dark #moon{
From 3e92b5aa2938adc41cc5a376d3ad7cd1dc2fd99e Mon Sep 17 00:00:00 2001
From: Zhangyuan Nie
Date: Wed, 21 Oct 2020 01:06:44 -0400
Subject: [PATCH 029/669] chore: add go.mod (#51)
* more about this: https://gohugo.io/hugo-modules/use-modules/
---
go.mod | 3 +++
1 file changed, 3 insertions(+)
create mode 100644 go.mod
diff --git a/go.mod b/go.mod
new file mode 100644
index 00000000..af958556
--- /dev/null
+++ b/go.mod
@@ -0,0 +1,3 @@
+module github.com/adityatelange/hugo-PaperMod
+
+go 1.12
From 21241c212ea9b6a7f8727564bd245bf3857e1a0d Mon Sep 17 00:00:00 2001
From: Niek Blankers
Date: Thu, 22 Oct 2020 13:12:26 +0200
Subject: [PATCH 030/669] relative-cover: init Responsive cover images (#43)
Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
- generates images of different sizes
- browser can choose between set of images w.r.t viewport width
- is enabled by default
- supported image formats :
https://gohugo.io/content-management/image-processing/#target-format
- Customizing site config params:
params:
cover:
responsiveImages: false # if want to disable it
linkFullImages: true # if link original image on clicking cover
---
layouts/_default/list.html | 12 ++----------
layouts/_default/single.html | 13 ++-----------
layouts/partials/cover.html | 32 ++++++++++++++++++++++++++++++++
3 files changed, 36 insertions(+), 21 deletions(-)
create mode 100644 layouts/partials/cover.html
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index a92fe71d..3596a931 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -31,15 +31,7 @@
{{- $class = "post-entry tag-entry" }}
{{- end }}
- {{- if .Params.cover.image }}
-
- {{- if (ne .Params.cover.relative true) }}
-
- {{- else}}
-
- {{- end}}
-
- {{- end }}
+ {{- partial "cover.html" (dict "cxt" . "IsHome" true) }}
{{ .Title }}
@@ -75,4 +67,4 @@
{{- end }}
{{end}}{{/* end profileMode */}}
-{{- end }}{{- /* end main */ -}}
\ No newline at end of file
+{{- end }}{{- /* end main */ -}}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index ec8038e9..20c3bc93 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -26,16 +26,7 @@
{{- end}}
-
- {{- if $.Site.Params.ShowReadingTime }} ·
- {{- $default_txt := print .ReadingTime " " "min" }}
- {{- i18n "read_time" .ReadingTime | default $default_txt }}{{ end }}
- {{- if or .Params.author .Site.Params.author }} · {{- .Params.author | default .Site.Params.author }}{{ end }}
+ {{- partial "post_meta.html" . -}}
@@ -39,4 +35,4 @@
{{- end }}
{{- end }}
-{{- end }}{{/* end main */}}
\ No newline at end of file
+{{- end }}{{/* end main */}}
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 3596a931..dad1d3ce 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -44,11 +44,7 @@
{{- end }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 20c3bc93..b13fb74a 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -8,11 +8,7 @@
{{- if .Params.hideMeta }}{{ else }}
-
- {{- if $.Site.Params.ShowReadingTime -}} ·
- {{- $default_txt := print .ReadingTime " " "min" }}
- {{- i18n "read_time" .ReadingTime | default $default_txt }}{{ end }}
- {{- if or .Params.author .Site.Params.author }} · {{- .Params.author | default .Site.Params.author }}{{ end }}
+ {{- partial "post_meta.html" . -}}
{{- if .IsTranslated -}} |
{{- i18n "translations" | default "Translations"}}:
diff --git a/layouts/partials/post_meta.html b/layouts/partials/post_meta.html
new file mode 100644
index 00000000..dd3b9a5c
--- /dev/null
+++ b/layouts/partials/post_meta.html
@@ -0,0 +1,5 @@
+
+{{- if $.Site.Params.ShowReadingTime -}} ·
+{{- $default_txt := print .ReadingTime " " "min" }}
+{{- i18n "read_time" .ReadingTime | default $default_txt }}{{ end }}
+{{- if or .Params.author .Site.Params.author }} · {{- .Params.author | default .Site.Params.author }}{{ end }}
From 16213a37e5e6748e0951e0547402996317238856 Mon Sep 17 00:00:00 2001
From: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
Date: Thu, 22 Oct 2020 20:39:45 +0530
Subject: [PATCH 033/669] post-meta: improvements
- hide zero date (closes #33)
- fix separator
- refactor
---
layouts/partials/post_meta.html | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/layouts/partials/post_meta.html b/layouts/partials/post_meta.html
index dd3b9a5c..479ab897 100644
--- a/layouts/partials/post_meta.html
+++ b/layouts/partials/post_meta.html
@@ -1,5 +1,11 @@
-
-{{- if $.Site.Params.ShowReadingTime -}} ·
-{{- $default_txt := print .ReadingTime " " "min" }}
-{{- i18n "read_time" .ReadingTime | default $default_txt }}{{ end }}
-{{- if or .Params.author .Site.Params.author }} · {{- .Params.author | default .Site.Params.author }}{{ end }}
+{{- if not .Date.IsZero -}}
+ ·
+{{- end -}}
+
+{{- if $.Site.Params.ShowReadingTime -}}
+{{- i18n "read_time" .ReadingTime | default (printf "%s min" .ReadingTime) }} ·
+{{- end -}}
+
+{{- if or .Params.author .Site.Params.author }}
+{{- printf "%s" (.Params.author | default .Site.Params.author) }}
+{{- end -}}
From 51c58ad0d570f4a7f2e460da524b01b9a5710473 Mon Sep 17 00:00:00 2001
From: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
Date: Fri, 23 Oct 2020 11:04:10 +0530
Subject: [PATCH 034/669] social-icons: add rel=me
* rel=me links allow cross-linking of user's identities, improving SEO
---
layouts/partials/social_icons.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/layouts/partials/social_icons.html b/layouts/partials/social_icons.html
index 1a5d6d24..5cc5f8bc 100644
--- a/layouts/partials/social_icons.html
+++ b/layouts/partials/social_icons.html
@@ -1,6 +1,6 @@