-
Notifications
You must be signed in to change notification settings - Fork 28
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
290595d
commit d3c553c
Showing
154 changed files
with
4,753 additions
and
1 deletion.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
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 @@ | ||
/node_modules |
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,8 @@ | ||
/images | ||
/static | ||
|
||
.git* | ||
*.toml | ||
.prettierignore | ||
LICENSE | ||
yarn.lock |
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,7 @@ | ||
module.exports = { | ||
printWidth: 100, | ||
singleQuote: true, | ||
|
||
// https://github.com/tailwindlabs/prettier-plugin-tailwindcss | ||
plugins: [require('prettier-plugin-tailwindcss')], | ||
}; |
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,2 @@ | ||
*.md | ||
assets/main.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module.exports = { | ||
extends: ['stylelint-config-one'], | ||
rules: { | ||
'at-rule-no-unknown': null, | ||
'function-no-unknown': null, | ||
'function-url-quotes': null, | ||
'color-function-notation': null, | ||
'no-descending-specificity': null, | ||
'comment-empty-line-before': null, | ||
'comment-whitespace-inside': null, | ||
'custom-property-empty-line-before': null, | ||
}, | ||
}; |
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2022 南小北 | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,76 @@ | ||
<div align="center"> | ||
<h1>Paper <sup><sup><sub>6</sub></sup></sup></h1> | ||
|
||
Demo → [hugo-paper.vercel.app](https://hugo-paper.vercel.app/) | ||
|
||
<hr /> | ||
|
||
A simple, clean, flexible Hugo theme. | ||
|
||
⚡️ Fast | 📸 Fluent | 🫙 Smooth | ||
|
||
</div> | ||
|
||
--- | ||
|
||
## Links | ||
|
||
Product Hunt: [producthunt.com/posts/hugo-paper-6](https://www.producthunt.com/posts/hugo-paper-6) | ||
|
||
Hugo themes: [themes.gohugo.io/hugo-paper](https://themes.gohugo.io/hugo-paper/) | ||
|
||
## Overview | ||
|
||
![](https://raw.githubusercontent.com/nanxiaobei/hugo-paper/main/images/screenshot.png) | ||
![](https://raw.githubusercontent.com/nanxiaobei/hugo-paper/main/images/screenshot_dark.png) | ||
![](https://raw.githubusercontent.com/nanxiaobei/hugo-paper/main/images/screenshot_mobile.png) | ||
|
||
## Install | ||
|
||
Inside the folder of your Hugo project, run: | ||
|
||
```bash | ||
git submodule add https://github.com/nanxiaobei/hugo-paper themes/paper | ||
``` | ||
|
||
Open `config.toml`, change `theme` to `"paper"`: | ||
|
||
```toml | ||
theme = "paper" | ||
``` | ||
|
||
For more information, please read the [official guide](https://gohugo.io/getting-started/quick-start/#step-3-add-a-theme) of Hugo. | ||
|
||
## Options | ||
|
||
Available options to `config.toml`: | ||
|
||
```toml | ||
disqusShortname = 'YOUR_DISQUS_SHORTNAME' # add disqus comments | ||
|
||
[params] | ||
# show header social icons | ||
twitter = 'YOUR_TWITTER_ID' # twitter.com/YOUR_TWITTER_ID | ||
github = 'YOUR_GITHUB_ID' # github.com/YOUR_GITHUB_ID | ||
instagram = 'YOUR_INSTAGRAM_ID' # instagram.com/YOUR_INSTAGRAM_ID | ||
rss = true # show rss icon with link | ||
|
||
# show home page profile | ||
avatar = 'GRAVATAR_EMAIL' # Gravatar email or image url(e.g. "https://deno.land/logo.svg") | ||
name = 'YOUR_NAME' | ||
bio = 'YOUR_BIO' | ||
|
||
# misc | ||
disableHLJS = true # disable requesting highlight.js | ||
monoDarkIcon = true # show monochrome dark mode icon | ||
``` | ||
|
||
## License | ||
|
||
[MIT License](https://github.com/nanxiaobei/hugo-paper/blob/main/LICENSE) (c) [nanxiaobei](https://lee.so/) | ||
|
||
## FUTAKE | ||
|
||
Try [**FUTAKE**](https://sotake.com/f) in WeChat. A mini app for your inspiration moments. 🌈 | ||
|
||
![](https://s3.bmp.ovh/imgs/2022/07/21/452dd47aeb790abd.png) |
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,81 @@ | ||
/* | ||
* Paper | ||
* A simple, clean, flexible Hugo theme | ||
* https://github.com/nanxiaobei/hugo-paper | ||
* Designed by 南小北 (https://lee.so/) | ||
* Updated in 2022.7.20 | ||
*/ | ||
|
||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
@layer base { | ||
html, | ||
body { | ||
@apply h-full; | ||
} | ||
|
||
body { | ||
-webkit-tap-highlight-color: transparent; | ||
background: #fbfbfb; | ||
|
||
@apply dark:bg-black; | ||
} | ||
} | ||
|
||
@layer components { | ||
.btn { | ||
@apply rounded-full bg-black py-4 px-6 text-sm text-white no-underline shadow-lg duration-100 active:scale-95 dark:bg-white dark:text-black; | ||
} | ||
|
||
.link { | ||
@apply duration-200 hover:text-black dark:hover:text-white; | ||
} | ||
} | ||
|
||
@layer utilities { | ||
.not-ready * { | ||
@apply !transition-none; | ||
} | ||
|
||
.btn-menu::before, | ||
.btn-menu::after { | ||
@apply block h-[2px] w-5 bg-black duration-200 content-[''] dark:invert; | ||
} | ||
|
||
.nav-wrapper { | ||
background: #fbfbfb; | ||
} | ||
|
||
.open { | ||
@apply overflow-hidden; | ||
} | ||
|
||
.open .btn-menu::before { | ||
@apply w-6 translate-y-[5.5px] rotate-45; | ||
} | ||
|
||
.open .btn-menu::after { | ||
@apply w-6 -translate-y-[5.5px] -rotate-45; | ||
} | ||
|
||
.open .nav-wrapper { | ||
@apply top-0; | ||
} | ||
|
||
article { | ||
@apply text-lg leading-[1.9] text-black dark:text-white; | ||
} | ||
|
||
article pre { | ||
@apply -mx-8 !p-8 shadow-lg; | ||
} | ||
|
||
article blockquote { | ||
padding-left: calc(theme('space.8') - 3px) !important; | ||
margin-left: calc(theme('space.8') * -1) !important; | ||
|
||
@apply !border-black; | ||
} | ||
} |
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 @@ | ||
/* Place custom css here. */ |
Oops, something went wrong.