Skip to content

Commit d9a26d3

Browse files
committed
Updated themes
1 parent b004e6b commit d9a26d3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+5726
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
MIT License
2+
3+
Copyright (c) 2020 nanxiaobei and adityatelange
4+
Copyright (c) 2021-2025 adityatelange
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE.
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
<h1 align=center>Hugo PaperMod | <a href="https://adityatelange.github.io/hugo-PaperMod/" rel="nofollow">Demo</a></h1>
2+
3+
<h4 align=center>☄️ Fast | ☁️ Fluent | 🌙 Smooth | 📱 Responsive</h4>
4+
<br>
5+
6+
> Hugo PaperMod is a theme based on [hugo-paper](https://github.com/nanxiaobei/hugo-paper/tree/4330c8b12aa48bfdecbcad6ad66145f679a430b3).<br>
7+
> The goal of this project is to add more features and customization to the og theme.
8+
9+
**Documentation** can be found here: [**📚 Wiki**](https://github.com/adityatelange/hugo-PaperMod/wiki)
10+
11+
**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.
12+
13+
[![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.125.7&color=blue&logo=hugo)](https://github.com/gohugoio/hugo/releases/tag/v0.125.7)
15+
[![Discord](https://img.shields.io/discord/971046860317921340?label=Discord&logo=discord)](https://discord.gg/ahpmTvhVmp)
16+
[![GitHub](https://img.shields.io/github/license/adityatelange/hugo-PaperMod)](https://github.com/adityatelange/hugo-PaperMod/blob/master/LICENSE)
17+
![code-size](https://img.shields.io/github/languages/code-size/adityatelange/hugo-PaperMod)
18+
[![X (formerly Twitter) URL](https://img.shields.io/badge/-Share%20on%20X-gray?style=flat&logo=x)](https://x.com/intent/tweet/?text=Checkout%20Hugo%20PaperMod%20%E2%9C%A8%0AA%20fast,%20clean,%20responsive%20Hugo%20theme.&url=https://github.com/adityatelange/hugo-PaperMod&hashtags=Hugo,PaperMod)
19+
20+
21+
---
22+
23+
<p align="center">
24+
<kbd><img src="https://user-images.githubusercontent.com/21258296/114303440-bfc0ae80-9aeb-11eb-8cfa-48a4bb385a6d.png" alt="Mockup image" title="Mockup"/></kbd>
25+
</p>
26+
27+
---
28+
29+
## Features/Mods 💥
30+
31+
- Uses Hugo's asset generator with pipelining, fingerprinting, bundling and minification by default.
32+
- 3 Modes:
33+
- [Regular Mode.](https://github.com/adityatelange/hugo-PaperMod/wiki/Features#regular-mode-default-mode)
34+
- [Home-Info Mode.](https://github.com/adityatelange/hugo-PaperMod/wiki/Features#home-info-mode)
35+
- [Profile Mode.](https://github.com/adityatelange/hugo-PaperMod/wiki/Features#profile-mode)
36+
- Table of Content Generation (newer implementation).
37+
- Archive of posts.
38+
- Social Icons (home-info and profile-mode).
39+
- Social-Media Share buttons on posts.
40+
- Menu location indicator.
41+
- Multilingual support. (with language selector).
42+
- Taxonomies.
43+
- Cover image for each post (with Responsive image support).
44+
- Light/Dark theme (automatic theme switch a/c to browser theme and theme-switch button).
45+
- SEO Friendly.
46+
- Multiple Author support.
47+
- Search Page with Fuse.js
48+
- Other Posts suggestion below a post
49+
- Breadcrumb Navigation.
50+
- Code Block Copy buttons.
51+
- Hugo's Chroma syntax highlighter.
52+
- No webpack, nodejs and other dependencies are required to edit the theme.
53+
54+
Read Wiki For More Details => **[PaperMod - Features](https://github.com/adityatelange/hugo-PaperMod/wiki/Features)**
55+
56+
---
57+
58+
## Install/Update 📥
59+
60+
Read Wiki For More Details => **[PaperMod - Installation](https://github.com/adityatelange/hugo-PaperMod/wiki/Installation)**
61+
62+
---
63+
64+
## FAQs / How To's Guide 🙋
65+
66+
Read Wiki For More Details => **[PaperMod-FAQs](https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs)**
67+
68+
---
69+
70+
## Social-Icons/Share-Icons 🖼️
71+
72+
Read Wiki For More Details => **[PaperMod-Icons](https://github.com/adityatelange/hugo-PaperMod/wiki/Icons)**
73+
74+
---
75+
76+
## Release Changelog 📃
77+
78+
Release ChangeLog has info about stuff added: **[Releases](https://github.com/adityatelange/hugo-PaperMod/releases)**
79+
80+
---
81+
82+
## [Pagespeed Insights (100% ?)](https://pagespeed.web.dev/report?url=https://adityatelange.github.io/hugo-PaperMod/) 👀
83+
84+
---
85+
86+
## Support 🫶
87+
88+
- Star 🌟 this repository.
89+
- Help spread the word about PaperMod by sharing it on social media and recommending it to your friends. 🗣️
90+
- You can also sponsor 🏅 on [Github Sponsors](https://github.com/sponsors/adityatelange) / [Ko-Fi](https://ko-fi.com/adityatelange).
91+
92+
---
93+
94+
## Special Thanks 🌟
95+
96+
- [**Highlight.js**](https://github.com/highlightjs/highlight.js)
97+
- [**Fuse.js**](https://github.com/krisk/fuse)
98+
- [**Feather Icons**](https://github.com/feathericons/feather)
99+
- [**Simple Icons**](https://github.com/simple-icons/simple-icons)
100+
- **All Contributors and Supporters**
101+
102+
---
103+
104+
## Stargazers over time 📈
105+
106+
[![Stargazers over time](https://starchart.cc/adityatelange/hugo-PaperMod.svg?background=%23ffffff00&axis=%23858585&line=%236b63ff)](https://starchart.cc/adityatelange/hugo-PaperMod)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.not-found {
2+
position: absolute;
3+
left: 0;
4+
right: 0;
5+
display: flex;
6+
align-items: center;
7+
justify-content: center;
8+
height: 80%;
9+
font-size: 160px;
10+
font-weight: 700;
11+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
.archive-posts {
2+
width: 100%;
3+
font-size: 16px;
4+
}
5+
6+
.archive-year {
7+
margin-top: 40px;
8+
}
9+
10+
.archive-year:not(:last-of-type) {
11+
border-bottom: 2px solid var(--border);
12+
}
13+
14+
.archive-month {
15+
display: flex;
16+
align-items: flex-start;
17+
padding: 10px 0;
18+
}
19+
20+
.archive-month-header {
21+
margin: 25px 0;
22+
width: 200px;
23+
}
24+
25+
.archive-month:not(:last-of-type) {
26+
border-bottom: 1px solid var(--border);
27+
}
28+
29+
.archive-entry {
30+
position: relative;
31+
padding: 5px;
32+
margin: 10px 0;
33+
}
34+
35+
.archive-entry-title {
36+
margin: 5px 0;
37+
font-weight: 400;
38+
}
39+
40+
.archive-count,
41+
.archive-meta {
42+
color: var(--secondary);
43+
font-size: 14px;
44+
}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
.footer,
2+
.top-link {
3+
font-size: 12px;
4+
color: var(--secondary);
5+
}
6+
7+
.footer {
8+
max-width: calc(var(--main-width) + var(--gap) * 2);
9+
margin: auto;
10+
padding: calc((var(--footer-height) - var(--gap)) / 2) var(--gap);
11+
text-align: center;
12+
line-height: 24px;
13+
}
14+
15+
.footer span {
16+
margin-inline-start: 1px;
17+
margin-inline-end: 1px;
18+
}
19+
20+
.footer span:last-child {
21+
white-space: nowrap;
22+
}
23+
24+
.footer a {
25+
color: inherit;
26+
border-bottom: 1px solid var(--secondary);
27+
}
28+
29+
.footer a:hover {
30+
border-bottom: 1px solid var(--primary);
31+
}
32+
33+
.top-link {
34+
visibility: hidden;
35+
position: fixed;
36+
bottom: 60px;
37+
right: 30px;
38+
z-index: 99;
39+
background: var(--tertiary);
40+
width: 42px;
41+
height: 42px;
42+
padding: 12px;
43+
border-radius: 64px;
44+
transition: visibility 0.5s, opacity 0.8s linear;
45+
}
46+
47+
.top-link,
48+
.top-link svg {
49+
filter: drop-shadow(0px 0px 0px var(--theme));
50+
}
51+
52+
.footer a:hover,
53+
.top-link:hover {
54+
color: var(--primary);
55+
}
56+
57+
.top-link:focus,
58+
#theme-toggle:focus {
59+
outline: 0;
60+
}
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
.nav {
2+
display: flex;
3+
flex-wrap: wrap;
4+
justify-content: space-between;
5+
max-width: calc(var(--nav-width) + var(--gap) * 2);
6+
margin-inline-start: auto;
7+
margin-inline-end: auto;
8+
line-height: var(--header-height);
9+
}
10+
11+
.nav a {
12+
display: block;
13+
}
14+
15+
.logo,
16+
#menu {
17+
display: flex;
18+
margin: auto var(--gap);
19+
}
20+
21+
.logo {
22+
flex-wrap: inherit;
23+
}
24+
25+
.logo a {
26+
font-size: 24px;
27+
font-weight: 700;
28+
}
29+
30+
.logo a img, .logo a svg {
31+
display: inline;
32+
vertical-align: middle;
33+
pointer-events: none;
34+
transform: translate(0, -10%);
35+
border-radius: 6px;
36+
margin-inline-end: 8px;
37+
}
38+
39+
button#theme-toggle {
40+
font-size: 26px;
41+
margin: auto 4px;
42+
}
43+
44+
body.dark #moon {
45+
vertical-align: middle;
46+
display: none;
47+
}
48+
49+
body:not(.dark) #sun {
50+
display: none;
51+
}
52+
53+
#menu {
54+
list-style: none;
55+
word-break: keep-all;
56+
overflow-x: auto;
57+
white-space: nowrap;
58+
}
59+
60+
#menu li + li {
61+
margin-inline-start: var(--gap);
62+
}
63+
64+
#menu a {
65+
font-size: 16px;
66+
}
67+
68+
#menu .active {
69+
font-weight: 500;
70+
border-bottom: 2px solid currentColor;
71+
}
72+
73+
.lang-switch li,
74+
.lang-switch ul,
75+
.logo-switches {
76+
display: inline-flex;
77+
margin: auto 4px;
78+
}
79+
80+
.lang-switch {
81+
display: flex;
82+
flex-wrap: inherit;
83+
}
84+
85+
.lang-switch a {
86+
margin: auto 3px;
87+
font-size: 16px;
88+
font-weight: 500;
89+
}
90+
91+
.logo-switches {
92+
flex-wrap: inherit;
93+
}

0 commit comments

Comments
 (0)