Skip to content

Commit 9af8437

Browse files
vikas-0adityatelangeensag-devBeryesageeqla
authored
update theme (#14)
* improve Toc * i18n: adds Occitan language (adityatelange#1539) * Update Turkish translation (adityatelange#1564) Fix a typo and improve the translation * Update bug report template to use GitHub's form schema * Update enhancement issue template to use GitHub's form schema * Add a social icon for Dzen (adityatelange#1599) * Add a social icon for Wikipedia (adityatelange#1600) * Use new 'Image render hook' template from Hugo. (adityatelange#1526) * Pull render-image template from Hugo https://github.com/gohugoio/hugo/commits/master/tpl/tplimpl/embedded/templates/_default/_markup/render-image.html cloned at b893a09aa62c01a62e32b0effdb02e86b51d46d6 * Add loading=lazy attribute adityatelange@c353447 * Update minimum required Hugo version to 0.125.7 * Update GitHub Actions workflows to use latest versions of dependencies * [PATCH] hugolib: Deprecate site methods Author, Authors, and Social cherry-picked from gohugoio/hugo@d4d49e0 * [PATCH] tpl/tplimpl: Remove trailing slash from void elements cherry-picked from gohugoio/hugo@2f7df4b * Update translations for he.yaml (adityatelange#1594) * Replace thumbnailUrl with logo for json schema (adityatelange#1488) thumbnailUrl is not part of Organization: https://schema.org/Organization * JSON Schema uses 'image' for a Person and 'logo' for an Organization. * [PATCH] tpl/tplimpl: Improve embedded opengraph template Changes: - Add tags per documentation - Prefer site.Title over site.Params.title - Plainify titles, tags, and descriptions - Add fallback values for locale - Fix pages related by series - Improve readability Co-authored-by: tomy0000000 <git@tomy.me> Co-authored-by: sean-au <sean@powerfulwebdesign.com.au> * Re-add support for cover images in OpenGraph 4a4d0c0 * [PATCH] tpl/tplimpl: Fix double-escaping in opengraph template cherry-picked from gohugoio/hugo@fb51b69 * Update PaperMod version to v8+ in license.css and license.js * Update LICENSE Add current year 2025 * chore: remove obsolete polywork icon (adityatelange#1677) The service has been shutdown as of 2025-01-31 and is no more See https://deepnewz.com/startups/polywork-irish-startup-backed-stripe-collison-brothers-to-shut-down-560973fe * Fix typos in github templates (adityatelange#1673) * Fix typos in ISSUE_TEMPLATE * Remove redundant space in pull request template * Add social icon for Bookwyrm (adityatelange#1681) * add farcaster logo to social icons (adityatelange#1686) * Add social icon for Forgejo (adityatelange#1684) * Improve style consistency of Bluesky SVG icon (adityatelange#1679) * Add aria-label to theme toggle button for accessibility (adityatelange#1669) * feat: add svg icon for linktree (adityatelange#1652) * Add Whatsapp icon to social icons (adityatelange#1531) Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com> * Add social icon for Jamendo (adityatelange#1685) Co-authored-by: PepeV_nRT <153303346+pepev-nrt@users.noreply.github.com> * Add social icon for Nextcloud (adityatelange#1683) * [FEATURE] new opengraph 'fediverse:creator' meta (adityatelange#1619) **Usage** Site level: params: social: fediverse_creator: "@username@mastodon.social" Page (Overrides Site level value): --- title: "My Page" social: fediverse_creator: "@username@mastodon.social" --- Closes adityatelange#1618 adityatelange#1642 --------- Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com> * Feat/improve cover image gen (adityatelange#1628) * Refactor cover.html * Refactor 2 * Refactor 3 * Refactor 4 * Refactor 5 * add comments and refactor more * Refactor cover.html to use <figcaption> for image captions * Add comments and manage whitespace * Remove pointer-event prevention from entry-cover image * Add demosite link to theme.toml (adityatelange#1724) * Implement fixes for refreshed template system for Hugo v0.146.0+ (adityatelange#1726) * Add rel=edit attribute to change suggestion link * Add social icon for zcal (adityatelange#1746) * Add Finnish language translation (adityatelange#1736) * Fix breadcumb alignment in post-single fixes: adityatelange#1732 --------- Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Co-authored-by: ensag-dev <59049879+ensag-dev@users.noreply.github.com> Co-authored-by: Berk Elyesa Yıldırım <beryesa@sayafe.org> Co-authored-by: Geeqla <1140778+geeqla@users.noreply.github.com> Co-authored-by: Joe Mooring <joe.mooring@veriphor.com> Co-authored-by: Idan Hazan <as4ny0o@gmail.com> Co-authored-by: Hong Xu <hong@topbug.net> Co-authored-by: tomy0000000 <git@tomy.me> Co-authored-by: sean-au <sean@powerfulwebdesign.com.au> Co-authored-by: Morgan Roderick <20321+mroderick@users.noreply.github.com> Co-authored-by: Tim Hsiung <yutingh@synology.com> Co-authored-by: PepeV_nRT <153303346+pepev-nrt@users.noreply.github.com> Co-authored-by: Chris Natoli <natolichris@gmail.com> Co-authored-by: Davide Cultrera <6017063+dabikuru@users.noreply.github.com> Co-authored-by: Colton Loftus <70598503+C-Loftus@users.noreply.github.com> Co-authored-by: GiggleSquid <jack.connors@protonmail.com> Co-authored-by: misdirectionmaster <63507708+misdirectionmaster@users.noreply.github.com> Co-authored-by: Massimo Barbieri <massimo@fsfe.org> Co-authored-by: David Guillot <david@guillot.me> Co-authored-by: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Co-authored-by: James <37276661+capjamesg@users.noreply.github.com> Co-authored-by: Anthony Accioly <1591739+aaccioly@users.noreply.github.com> Co-authored-by: Atte <47223277+addei@users.noreply.github.com>
1 parent 828d915 commit 9af8437

27 files changed

Lines changed: 479 additions & 208 deletions

.github/ISSUE_TEMPLATE/bug.yaml

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
name: Bug Report 🐞
2+
description: Create a report to help us improve
3+
title: "[Bug]: "
4+
labels: ["bug", "triage"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill out this bug report :)
10+
- Kindly **DO NOT** ask for instructions.
11+
- Use [Discussions](https://github.com/adityatelange/hugo-PaperMod/discussions) section if you have a query or doubts or any other relevant question.
12+
- You may join [Discord community](https://discord.gg/ahpmTvhVmp) to interact with fellow contributors and users
13+
- Read project's [Wiki](https://github.com/adityatelange/hugo-PaperMod/wiki) for detailed documentation.
14+
- Read project's [FAQs](https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs) section for Frequently asked questions.
15+
- Search for previous [Issues](https://github.com/adityatelange/hugo-PaperMod/issues)/[Pull Requests](https://github.com/adityatelange/hugo-PaperMod/pulls) if this issue is already reported or fix has been created.
16+
- type: textarea
17+
id: what_happened
18+
attributes:
19+
label: What happened?
20+
description: Also tell us, what did you expect to happen?
21+
placeholder: A bug happened! Here are the screenshots.. Tell us what you see!
22+
validations:
23+
required: true
24+
- type: textarea
25+
id: steps_to_reproduce
26+
attributes:
27+
label: Steps to reproduce
28+
description: How to reproduce this issue. Here are the steps...
29+
placeholder: |
30+
1. Go to '...'
31+
2. Click on '....'
32+
3. Scroll down to '....'
33+
4. See error
34+
validations:
35+
required: true
36+
- type: dropdown
37+
id: hugo_version
38+
attributes:
39+
label: Hugo Version
40+
description: What version of Hugo are you running?
41+
options:
42+
- Hugo >= 0.146.0 (Recommended - Minimum version required for PaperMod)
43+
- Hugo < 0.146.0 (Incompatible - Not recommended to build PaperMod on lower versions)
44+
validations:
45+
required: true
46+
- type: input
47+
id: papermod_version
48+
attributes:
49+
label: PaperMod Version
50+
description: What version of PaperMod are you running?
51+
placeholder: |
52+
PaperMod v7.0 or
53+
Branch master or
54+
Commit-id: 3f50861a0ced88f9b614a43662edeb4c0bc45da8
55+
validations:
56+
required: true
57+
- type: dropdown
58+
id: browser_type
59+
attributes:
60+
label: What kind of devices are you seeing the problem on?
61+
multiple: true
62+
options:
63+
- Mobile
64+
- Desktop
65+
validations:
66+
required: false
67+
- type: dropdown
68+
id: browsers
69+
attributes:
70+
label: What browsers are you seeing the problem on?
71+
multiple: true
72+
options:
73+
- Firefox
74+
- Chrome
75+
- Safari
76+
- Microsoft Edge
77+
validations:
78+
required: false
79+
- type: input
80+
id: browser_version
81+
attributes:
82+
label: Browser Version
83+
description: Please add browser version or enter user agent string (navigator.userAgent)
84+
placeholder: ex. Google Chrome 86.0
85+
validations:
86+
required: false
87+
- type: textarea
88+
id: logs
89+
attributes:
90+
label: Relevant log output
91+
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
92+
render: shell
93+
validations:
94+
required: true
95+
- type: input
96+
id: repo_url
97+
attributes:
98+
label: Repository/Source Code link where this issue can be reproduced
99+
description: Please add url of the repository where this issue can be reproduced
100+
placeholder: https://github.com/<username>/<repo name>
101+
validations:
102+
required: false
103+
- type: checkboxes
104+
id: terms
105+
attributes:
106+
label: Code of Conduct
107+
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/adityatelange/hugo-PaperMod?tab=coc-ov-file#readme).
108+
options:
109+
- label: I agree to follow this project's Code of Conduct
110+
required: true
111+
validations:
112+
required: true

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 50 deletions
This file was deleted.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Enhancement 🚀
2+
description: Propose a new feature or change for enhancing the experience.
3+
title: "[Enhancement]: "
4+
labels: ["enhancement", "triage"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill out this enhancement form :)
10+
- Use [Discussions](https://github.com/adityatelange/hugo-PaperMod/discussions) section if you have a query or doubts or any other relevant question.
11+
- You may join [Discord community](https://discord.gg/ahpmTvhVmp) to interact with fellow contributors and users
12+
- Read project's [Wiki](https://github.com/adityatelange/hugo-PaperMod/wiki) for detailed documentation.
13+
- Read project's [FAQs](https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs) section for Frequently asked questions.
14+
- Search for previous [Issues](https://github.com/adityatelange/hugo-PaperMod/issues)/[Pull Requests](https://github.com/adityatelange/hugo-PaperMod/pulls) if this issue is already reported or fix has been created.
15+
- type: textarea
16+
id: what_happened
17+
attributes:
18+
label: What you'd like to propose?
19+
description:
20+
placeholder:
21+
validations:
22+
required: true
23+
- type: checkboxes
24+
id: terms
25+
attributes:
26+
label: Code of Conduct
27+
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/adityatelange/hugo-PaperMod?tab=coc-ov-file#readme).
28+
options:
29+
- label: I agree to follow this project's Code of Conduct
30+
required: true
31+
validations:
32+
required: true

.github/ISSUE_TEMPLATE/proposal.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs#custom-head--footer
1717
**What does this PR change? What problem does it solve?**
1818

1919
<!--
20-
Describe the changes and their purpose here, as detailed as and if needed.
20+
Describe the changes and their purpose here, as detailed as and if needed.
2121
2222
Please do not add 2 unrelated changes in a single PR as it is difficult to track/revert those in future.
2323
-->

.github/workflows/gh-pages.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
hugoVersion:
1616
description: "Hugo Version"
1717
required: false
18-
default: "0.112.4"
18+
default: "0.146.0"
1919

2020
# Allow one concurrent deployment
2121
concurrency:
@@ -38,19 +38,19 @@ jobs:
3838
build:
3939
runs-on: ubuntu-latest
4040
env:
41-
HUGO_VERSION: ${{ github.event.inputs.hugoVersion || '0.112.4' }}
41+
HUGO_VERSION: ${{ github.event.inputs.hugoVersion || '0.146.0' }}
4242
steps:
4343
- name: Install Hugo CLI
4444
run: |
4545
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_linux-amd64.deb \
4646
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
4747
- name: Checkout
48-
uses: actions/checkout@v3
48+
uses: actions/checkout@v4
4949
with:
5050
ref: exampleSite
5151
- name: Setup Pages
5252
id: pages
53-
uses: actions/configure-pages@v3
53+
uses: actions/configure-pages@v5
5454
- name: Get Theme
5555
run: git submodule update --init --recursive
5656
- name: Update theme to Latest commit
@@ -61,7 +61,7 @@ jobs:
6161
--buildDrafts --gc \
6262
--baseURL ${{ steps.pages.outputs.base_url }}
6363
- name: Upload artifact
64-
uses: actions/upload-pages-artifact@v2
64+
uses: actions/upload-pages-artifact@v3
6565
with:
6666
path: ./public
6767
# Deployment job
@@ -74,4 +74,4 @@ jobs:
7474
steps:
7575
- name: Deploy to GitHub Pages
7676
id: deployment
77-
uses: actions/deploy-pages@v2
77+
uses: actions/deploy-pages@v4

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
MIT License
22

33
Copyright (c) 2020 nanxiaobei and adityatelange
4-
Copyright (c) 2021-2024 adityatelange
4+
Copyright (c) 2021-2025 adityatelange
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
**ExampleSite** can be found here: [**exampleSite**](https://github.com/adityatelange/hugo-PaperMod/tree/exampleSite). Demo is built up with [exampleSite](https://github.com/adityatelange/hugo-PaperMod/tree/exampleSite) as source.
1212

1313
[![hugo-papermod](https://img.shields.io/badge/Hugo--Themes-@PaperMod-blue)](https://themes.gohugo.io/themes/hugo-papermod/)
14-
[![Minimum Hugo Version](https://img.shields.io/static/v1?label=min-HUGO-version&message=>=v0.112.4&color=blue&logo=hugo)](https://github.com/gohugoio/hugo/releases/tag/v0.112.4)
14+
[![Minimum Hugo Version](https://img.shields.io/static/v1?label=min-HUGO-version&message=>=v0.146.0&color=blue&logo=hugo)](https://github.com/gohugoio/hugo/releases/tag/v0.146.0)
1515
[![Discord](https://img.shields.io/discord/971046860317921340?label=Discord&logo=discord)](https://discord.gg/ahpmTvhVmp)
1616
[![GitHub](https://img.shields.io/github/license/adityatelange/hugo-PaperMod)](https://github.com/adityatelange/hugo-PaperMod/blob/master/LICENSE)
1717
![code-size](https://img.shields.io/github/languages/code-size/adityatelange/hugo-PaperMod)

assets/css/common/post-entry.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@
9797

9898
.entry-cover img {
9999
border-radius: var(--radius);
100-
pointer-events: none;
101100
width: 100%;
102101
height: auto;
103102
}

assets/css/common/post-single.css

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
font-size: 14px;
2020
display: flex;
2121
flex-wrap: wrap;
22+
align-items: center;
2223
}
2324

2425
.post-meta .i18n_list li {
@@ -124,8 +125,8 @@
124125
padding-inline-start: 10px;
125126
}
126127

127-
.post-content dd ~ dd,
128-
.post-content dt ~ dt {
128+
.post-content dd~dd,
129+
.post-content dt~dt {
129130
margin-top: 10px;
130131
}
131132

@@ -160,7 +161,7 @@
160161
direction: ltr;
161162
}
162163

163-
.post-content li > .highlight {
164+
.post-content li>.highlight {
164165
margin-inline-end: 0;
165166
}
166167

@@ -242,14 +243,14 @@
242243
text-align: center;
243244
}
244245

245-
.post-content figure > figcaption {
246+
.post-content figure>figcaption {
246247
color: var(--primary);
247248
font-size: 16px;
248249
font-weight: bold;
249250
margin: 8px 0 16px;
250251
}
251252

252-
.post-content figure > figcaption > p {
253+
.post-content figure>figcaption>p {
253254
color: var(--secondary);
254255
font-size: 14px;
255256
font-weight: normal;
@@ -269,7 +270,8 @@
269270

270271
.toc details summary {
271272
cursor: zoom-in;
272-
margin-inline-start: 20px;
273+
margin-inline-start: 10px;
274+
user-select: none;
273275
}
274276

275277
.toc details[open] summary {
@@ -282,8 +284,9 @@
282284
}
283285

284286
.toc .inner {
285-
margin: 0 20px;
286-
padding: 10px 20px;
287+
margin: 5px 20px 0;
288+
padding: 0 10px;
289+
opacity: 0.9;
287290
}
288291

289292
.toc li ul {

0 commit comments

Comments
 (0)