forked from adityatelange/hugo-PaperMod
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ebe7400
commit 8411411
Showing
16 changed files
with
153 additions
and
1,820 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
run-example: | ||
cd exampleSite && hugo server -D --gc -p 13131 | ||
|
||
chroma-css: | ||
hugo gen chromastyles --style=dracula > assets/css/common/chroma.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,96 +1,10 @@ | ||
<h1 align=center>Hugo PaperMod | <a href="https://adityatelange.github.io/hugo-PaperMod/" rel="nofollow">Demo</a></h1> | ||
WonderMod is a fork of an original theme for [Hugo](https://gohugo.io/) called [PaperMod](https://github.com/adityatelange/hugo-PaperMod) (made by adityatelange). Since PaperMod isn't interested in a few changes such as removing inline JavaScript, which I personally require to harden my websites, I decided to maintain my own fork (I didn't want to keep overwriting a bunch of files as a fork workflow is much cleaner). Don't expect a ton of changes, and unless you know me, you probably don't want to use WonderMod. | ||
|
||
<h4 align=center>☄️ Fast | ☁️ Fluent | 🌙 Smooth | 📱 Responsive</h4> | ||
<br> | ||
|
||
> Hugo PaperMod is a theme based on [hugo-paper](https://github.com/nanxiaobei/hugo-paper). | ||
> The goal of this project is to add more features and customization to the og theme. | ||
The [demo](https://adityatelange.github.io/hugo-PaperMod/) includes a lot of documentation about Installation, Features with a few more stuff. Make sure you visit it, to get an awesome hands-on experience and get to know about the features ... | ||
|
||
**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. | ||
|
||
[![Minimum Hugo Version](https://img.shields.io/static/v1?label=min-HUGO-version&message=0.83.0&color=blue&logo=hugo)](https://github.com/gohugoio/hugo/releases/tag/v0.83.0) | ||
[![Build GH-Pages](https://github.com/adityatelange/hugo-PaperMod/workflows/Build%20GH-Pages/badge.svg)](https://github.com/adityatelange/hugo-PaperMod/deployments/activity_log?environment=github-pages) | ||
[![GitHub](https://img.shields.io/github/license/adityatelange/hugo-PaperMod)](https://github.com/adityatelange/hugo-PaperMod/blob/master/LICENSE) | ||
[![hugo-papermod](https://img.shields.io/badge/Hugo--Themes-@PaperMod-blue)](https://themes.gohugo.io/themes/hugo-papermod/) | ||
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=adityatelange_hugo-PaperMod&metric=alert_status)](https://sonarcloud.io/dashboard?id=adityatelange_hugo-PaperMod) | ||
![code-size](https://img.shields.io/github/languages/code-size/adityatelange/hugo-PaperMod) | ||
[![Discord](https://img.shields.io/discord/971046860317921340?label=Discord)](https://discord.gg/ahpmTvhVmp) | ||
|
||
--- | ||
|
||
<p align="center"> | ||
<kbd><img src="https://user-images.githubusercontent.com/21258296/114303440-bfc0ae80-9aeb-11eb-8cfa-48a4bb385a6d.png" alt="Mockup image" title="Mockup"/></kbd> | ||
</p> | ||
|
||
--- | ||
|
||
## Features/Mods 💥 | ||
|
||
- Uses Hugo's asset generator with pipelining, fingerprinting, bundling and minification by default. | ||
- 3 Modes: | ||
- [Regular Mode.](https://github.com/adityatelange/hugo-PaperMod/wiki/Features#regular-mode-default-mode) | ||
- [Home-Info Mode.](https://github.com/adityatelange/hugo-PaperMod/wiki/Features#home-info-mode) | ||
- [Profile Mode.](https://github.com/adityatelange/hugo-PaperMod/wiki/Features#profile-mode) | ||
- Table of Content Generation (newer implementation). | ||
- Archive of posts. | ||
- Social Icons (home-info and profile-mode) | ||
- Social-Media Share buttons on posts. | ||
- Menu location indicator. | ||
- Multilingual support. (with language selector) | ||
- Taxonomies | ||
- 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. | ||
- 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 dependencies are required to edit the theme. | ||
|
||
Read Wiki For More Details => **[PaperMod - Features](https://github.com/adityatelange/hugo-PaperMod/wiki/Features)** | ||
|
||
--- | ||
|
||
## Install/Update 📥 | ||
|
||
Read Wiki For More Details => **[PaperMod - Installation](https://github.com/adityatelange/hugo-PaperMod/wiki/Installation)** | ||
|
||
--- | ||
|
||
## Social-Icons/Share-Icons 🖼️ | ||
|
||
Read Wiki For More Details => **[PaperMod-Icons](https://github.com/adityatelange/hugo-PaperMod/wiki/Icons)** | ||
|
||
--- | ||
|
||
## FAQs / How To's Guide 🙋 | ||
|
||
Read Wiki For More Details => **[PaperMod-FAQs](https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs)** | ||
|
||
--- | ||
|
||
## Release Changelog 📃 | ||
|
||
Release ChangeLog has info about stuff added: **[Releases](https://github.com/adityatelange/hugo-PaperMod/releases)** | ||
|
||
--- | ||
|
||
## [Pagespeed Insights (100% ?)](https://pagespeed.web.dev/report?url=https://adityatelange.github.io/hugo-PaperMod/) 👀 | ||
|
||
--- | ||
|
||
## Special Thanks 🌟 | ||
|
||
- [**Highlight.js**](https://github.com/highlightjs/highlight.js) | ||
- [**Fuse.js**](https://github.com/krisk/fuse) | ||
- [**Feather Icons**](https://github.com/feathericons/feather) | ||
- [**Simple Icons**](https://github.com/simple-icons/simple-icons) | ||
- **All Contributors and Supporters** | ||
|
||
## Stargazers over time 📈 | ||
|
||
<kbd>[![Stargazers over time](https://starchart.cc/adityatelange/hugo-PaperMod.svg)](https://starchart.cc/adityatelange/hugo-PaperMod)</kbd> | ||
Current "main" changes are as follows: | ||
- Remove inline JavaScript ([2528906](https://github.com/Wonderfall/hugo-WonderMod/commit/2528906a38a1ca8a50b3e3a74ffcf9a01a0483a7)) | ||
- Improved YouTube shortcode ([4dc3bee](https://github.com/Wonderfall/hugo-WonderMod/commit/4dc3bee5477b6d22ce830faa13375f4c2e6a216b)) | ||
- Built-in Chroma instead of client-side syntax highlighting with HLJS (see [documentation](https://gohugo.io/content-management/syntax-highlighting/)) | ||
- Bunch of CSS and other changes (see [commit history](https://github.com/Wonderfall/hugo-WonderMod/commits/master)) | ||
|
||
Additional credits: | ||
- [PaperModX](https://github.com/reorx/hugo-PaperModX/) by reorx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
/* Background */ .chroma { color: #f8f8f2; background-color: #282a36 } | ||
/* Other */ .chroma .x { } | ||
/* Error */ .chroma .err { } | ||
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; } | ||
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 20px; border: 0; width: auto; overflow: auto; display: block; } | ||
/* LineHighlight */ .chroma .hl { display: block; width: 100%;background-color: #ffffcc } | ||
/* LineNumbersTable */ .chroma .lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f } | ||
/* LineNumbers */ .chroma .ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f } | ||
/* Keyword */ .chroma .k { color: #ff79c6 } | ||
/* KeywordConstant */ .chroma .kc { color: #ff79c6 } | ||
/* KeywordDeclaration */ .chroma .kd { color: #8be9fd; font-style: italic } | ||
/* KeywordNamespace */ .chroma .kn { color: #ff79c6 } | ||
/* KeywordPseudo */ .chroma .kp { color: #ff79c6 } | ||
/* KeywordReserved */ .chroma .kr { color: #ff79c6 } | ||
/* KeywordType */ .chroma .kt { color: #8be9fd } | ||
/* Name */ .chroma .n { } | ||
/* NameAttribute */ .chroma .na { color: #50fa7b } | ||
/* NameBuiltin */ .chroma .nb { color: #8be9fd; font-style: italic } | ||
/* NameBuiltinPseudo */ .chroma .bp { } | ||
/* NameClass */ .chroma .nc { color: #50fa7b } | ||
/* NameConstant */ .chroma .no { } | ||
/* NameDecorator */ .chroma .nd { } | ||
/* NameEntity */ .chroma .ni { } | ||
/* NameException */ .chroma .ne { } | ||
/* NameFunction */ .chroma .nf { color: #50fa7b } | ||
/* NameFunctionMagic */ .chroma .fm { } | ||
/* NameLabel */ .chroma .nl { color: #8be9fd; font-style: italic } | ||
/* NameNamespace */ .chroma .nn { } | ||
/* NameOther */ .chroma .nx { } | ||
/* NameProperty */ .chroma .py { } | ||
/* NameTag */ .chroma .nt { color: #ff79c6 } | ||
/* NameVariable */ .chroma .nv { color: #8be9fd; font-style: italic } | ||
/* NameVariableClass */ .chroma .vc { color: #8be9fd; font-style: italic } | ||
/* NameVariableGlobal */ .chroma .vg { color: #8be9fd; font-style: italic } | ||
/* NameVariableInstance */ .chroma .vi { color: #8be9fd; font-style: italic } | ||
/* NameVariableMagic */ .chroma .vm { } | ||
/* Literal */ .chroma .l { } | ||
/* LiteralDate */ .chroma .ld { } | ||
/* LiteralString */ .chroma .s { color: #f1fa8c } | ||
/* LiteralStringAffix */ .chroma .sa { color: #f1fa8c } | ||
/* LiteralStringBacktick */ .chroma .sb { color: #f1fa8c } | ||
/* LiteralStringChar */ .chroma .sc { color: #f1fa8c } | ||
/* LiteralStringDelimiter */ .chroma .dl { color: #f1fa8c } | ||
/* LiteralStringDoc */ .chroma .sd { color: #f1fa8c } | ||
/* LiteralStringDouble */ .chroma .s2 { color: #f1fa8c } | ||
/* LiteralStringEscape */ .chroma .se { color: #f1fa8c } | ||
/* LiteralStringHeredoc */ .chroma .sh { color: #f1fa8c } | ||
/* LiteralStringInterpol */ .chroma .si { color: #f1fa8c } | ||
/* LiteralStringOther */ .chroma .sx { color: #f1fa8c } | ||
/* LiteralStringRegex */ .chroma .sr { color: #f1fa8c } | ||
/* LiteralStringSingle */ .chroma .s1 { color: #f1fa8c } | ||
/* LiteralStringSymbol */ .chroma .ss { color: #f1fa8c } | ||
/* LiteralNumber */ .chroma .m { color: #bd93f9 } | ||
/* LiteralNumberBin */ .chroma .mb { color: #bd93f9 } | ||
/* LiteralNumberFloat */ .chroma .mf { color: #bd93f9 } | ||
/* LiteralNumberHex */ .chroma .mh { color: #bd93f9 } | ||
/* LiteralNumberInteger */ .chroma .mi { color: #bd93f9 } | ||
/* LiteralNumberIntegerLong */ .chroma .il { color: #bd93f9 } | ||
/* LiteralNumberOct */ .chroma .mo { color: #bd93f9 } | ||
/* Operator */ .chroma .o { color: #ff79c6 } | ||
/* OperatorWord */ .chroma .ow { color: #ff79c6 } | ||
/* Punctuation */ .chroma .p { } | ||
/* Comment */ .chroma .c { color: #6272a4 } | ||
/* CommentHashbang */ .chroma .ch { color: #6272a4 } | ||
/* CommentMultiline */ .chroma .cm { color: #6272a4 } | ||
/* CommentSingle */ .chroma .c1 { color: #6272a4 } | ||
/* CommentSpecial */ .chroma .cs { color: #6272a4 } | ||
/* CommentPreproc */ .chroma .cp { color: #ff79c6 } | ||
/* CommentPreprocFile */ .chroma .cpf { color: #ff79c6 } | ||
/* Generic */ .chroma .g { } | ||
/* GenericDeleted */ .chroma .gd { color: #ff5555 } | ||
/* GenericEmph */ .chroma .ge { text-decoration: underline } | ||
/* GenericError */ .chroma .gr { } | ||
/* GenericHeading */ .chroma .gh { font-weight: bold } | ||
/* GenericInserted */ .chroma .gi { color: #50fa7b; font-weight: bold } | ||
/* GenericOutput */ .chroma .go { color: #44475a } | ||
/* GenericPrompt */ .chroma .gp { } | ||
/* GenericStrong */ .chroma .gs { } | ||
/* GenericSubheading */ .chroma .gu { font-weight: bold } | ||
/* GenericTraceback */ .chroma .gt { } | ||
/* GenericUnderline */ .chroma .gl { text-decoration: underline } | ||
/* TextWhitespace */ .chroma .w { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.youtube-embed-div { | ||
position: relative; | ||
padding-bottom: 56.25%; | ||
height: 0; | ||
overflow: hidden; | ||
} | ||
|
||
.youtube-embed-frame { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
border: 0; | ||
} |
Oops, something went wrong.