1
0
Fork 0
hugo-paper/README.md

120 lines
3.3 KiB
Markdown
Raw Permalink Normal View History

2021-08-20 13:39:36 +02:00
<div align="center">
2023-08-23 12:44:34 +02:00
<p><a href="https://kee.so/" target="_blank"><img src="https://i.imgur.com/x5SRUoo.png" alt="kee.so" /></a></p>
2018-05-04 19:41:09 +02:00
2023-08-23 12:44:34 +02:00
Create now ➫ [🔗 kee.so](https://kee.so/)
2021-08-20 13:39:36 +02:00
</div>
2019-04-01 11:57:38 +02:00
2019-08-19 23:12:16 +02:00
---
2018-05-04 19:41:09 +02:00
2023-08-23 12:35:03 +02:00
<div align="center">
2023-08-23 12:44:34 +02:00
<h1>Paper <sup><sup><sub>6.21</sub></sup></sup></h1>
2023-08-23 12:35:03 +02:00
2023-08-23 12:44:34 +02:00
Demo → [hugo-paper.vercel.app](https://hugo-paper.vercel.app/)
2023-08-23 12:35:03 +02:00
2023-08-23 12:44:34 +02:00
A simple, clean, customizable Hugo theme.
2023-08-23 12:35:03 +02:00
2023-08-23 12:44:34 +02:00
⚡️ Fast | 👒 Customizable | 🫙 Smooth
</div>
2023-08-23 12:35:03 +02:00
2021-12-21 07:27:05 +01:00
## Links
2022-07-21 21:17:38 +02:00
Product Hunt: [producthunt.com/posts/hugo-paper-6](https://www.producthunt.com/posts/hugo-paper-6)
2021-12-21 07:27:05 +01:00
Hugo themes: [themes.gohugo.io/hugo-paper](https://themes.gohugo.io/hugo-paper/)
2018-07-06 05:25:22 +02:00
## Overview
2018-05-04 19:41:09 +02:00
2023-02-25 17:02:50 +01:00
![](./images/screenshot.png)
![](./images/screenshot_dark.png)
![](./images/screenshot_mobile.png)
![](./images/pagespeed.png)
2021-08-20 17:27:34 +02:00
2021-08-20 18:51:03 +02:00
## Options
2021-08-20 13:39:36 +02:00
Available options to `config.toml` or `hugo.toml`:
2021-08-20 13:39:36 +02:00
```toml
2023-01-08 18:49:49 +01:00
disqusShortname = 'YOUR_DISQUS_SHORTNAME' # use disqus comments
2021-08-20 13:39:36 +02:00
[params]
2022-08-21 07:57:54 +02:00
# color style
2023-01-08 18:49:49 +01:00
color = 'linen' # linen, wheat, gray, light
2022-08-15 20:20:41 +02:00
# header social icons
2023-01-08 18:49:49 +01:00
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
2023-06-06 20:25:23 +02:00
linkedin = 'YOUR_LINKEDIN_ID' # linkedin.com/in/YOUR_LINKEDIN_ID
2023-01-08 18:49:49 +01:00
mastodon = 'YOUR_MASTODON_LINK' # e.g. 'https://mastodon.instance/@xxx'
rss = true # show rss icon
2022-08-15 20:20:41 +02:00
# home page profile
2023-01-08 18:49:49 +01:00
avatar = 'GRAVATAR_EMAIL' # gravatar email or image url
2022-08-15 20:20:41 +02:00
name = 'YOUR_NAME'
bio = 'YOUR_BIO'
2023-01-07 11:49:42 +01:00
2022-08-15 20:20:41 +02:00
# misc
2023-01-08 18:49:49 +01:00
disableHLJS = true # disable highlight.js
2023-08-14 22:41:30 +02:00
disablePostNavigation = true # disable post navigation
2023-01-08 18:49:49 +01:00
monoDarkIcon = true # show monochrome dark mode icon
gravatarCdn = 'GRAVATAR_CDN_LINK' # e.g. 'https://cdn.v2ex.com/gravatar/'
graphCommentId = "YOUR_GRAPH_COMMENT_ID" # use graph comment (disqus alternative)
2023-08-14 22:11:17 +02:00
math = true # enable KaTeX math typesetting globally
2021-08-20 13:39:36 +02:00
```
2021-04-18 18:44:12 +02:00
2023-01-27 10:25:12 +01:00
Available options to front matter:
```toml
comments = false # disable comments for a specific page
2023-08-14 22:11:17 +02:00
math = true # enable KaTeX math typesetting for a specific page
2023-01-27 10:25:12 +01:00
```
2023-07-07 10:45:40 +02:00
## Install
2023-08-14 22:11:17 +02:00
### As hugo module
Inside the folder of your Hugo project, run:
```bash
hugo mod init github.com/<USERNAME>/<REPONAME>
```
Add paper theme ad dependency of your site:
```bash
hugo mod init github.com/<USERNAME>/<REPONAME>
```
Open `config.toml` or `hugo.toml`, remove the `theme` line (if present) and add module section at the bottom of the file:
```toml
[module]
[[module.imports]]
path = "github.com/nanxiaobei/hugo-paper"
```
For more information, please read the [official guide](https://gohugo.io/hugo-modules/use-modules/#use-a-module-for-a-theme) of Hugo.
### As git submodule
2023-07-07 10:45:40 +02:00
Inside the folder of your Hugo project, run:
```bash
git submodule add https://github.com/nanxiaobei/hugo-paper themes/paper
```
Open `config.toml` or `hugo.toml`, change `theme` to `"paper"`:
```toml
theme = "paper"
```
2023-08-14 22:11:17 +02:00
For more information, please read the [official guide](https://gohugo.io/getting-started/quick-start/#configure-the-site) of Hugo.
2023-07-07 10:45:40 +02:00
2021-09-22 08:43:02 +02:00
## License
2021-04-18 18:44:12 +02:00
2022-07-18 18:29:32 +02:00
[MIT License](https://github.com/nanxiaobei/hugo-paper/blob/main/LICENSE) (c) [nanxiaobei](https://lee.so/)