a8aa542207
Added instructions to add a hugo contact form on README.md
78 lines
2 KiB
Markdown
Executable file
78 lines
2 KiB
Markdown
Executable file
<div align="center">
|
|
<h1>Paper <sup><sup><sub>5.1</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](https://www.producthunt.com/posts/hugo-paper)
|
|
|
|
Hugo themes: [themes.gohugo.io/hugo-paper](https://themes.gohugo.io/hugo-paper/)
|
|
|
|
## Overview
|
|
|
|
![](https://raw.githubusercontent.com/nanxiaobei/hugo-paper/master/images/screenshot.png)
|
|
![](https://raw.githubusercontent.com/nanxiaobei/hugo-paper/master/images/screenshot_dark.png)
|
|
![](https://raw.githubusercontent.com/nanxiaobei/hugo-paper/master/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]
|
|
disableHLJS = true # don't use highlight.js
|
|
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
|
|
```
|
|
|
|
|
|
## [Add hugo contact form](https://fabform.io/a/hugo-contact-form)
|
|
|
|
```
|
|
<form action="https://fabform.io/f/{form-id}" method="post">
|
|
<label for="email">Your Email</label>
|
|
<input name="email" type="email">
|
|
<button type="submit">Submit</button>
|
|
</form>
|
|
```
|
|
|
|
|
|
## License
|
|
|
|
[MIT License](https://github.com/nanxiaobei/hugo-paper/blob/master/LICENSE) (c) [nanxiaobei](https://lee.so/)
|
|
|
|
## FUTAKE
|
|
|
|
Try [**FUTAKE**](https://sotake.com/f) in WeChat. A mini app for your inspiration moments. 🌈
|
|
|
|
![FUTAKE](https://s3.jpg.cm/2021/09/21/IFG3wi.png)
|