-
-
Notifications
You must be signed in to change notification settings - Fork 124
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
Showing
12 changed files
with
449 additions
and
344 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,40 @@ | ||
# hugo-notepadium  | ||
|
||
a fast [gohugo](https://gohugo.io) theme, HTML + CSS, 100% JavaScript-free. | ||
|
||
- built-in `syntanx highlight` | ||
- custom `404 page` | ||
|
||
 | ||
|
||
the core CSS is `core.css`, transferred size < 3KB. | ||
|
||
preview this theme: https://lvv.me | ||
|
||
## Quick Start | ||
|
||
```shell | ||
git submodule add https://github.com/cntrump/hugo-notepadium.git themes/hugo-notepadium | ||
``` | ||
|
||
demo `config.toml`: | ||
|
||
```toml | ||
baseURL = "/" | ||
languageCode = "zh-cn" | ||
title = "Lvv's notepad" | ||
theme = "hugo-notepadium" | ||
copyright = "Copyright ©2019 lvv. All rights reserved." | ||
hasCJKLanguage = true | ||
enableRobotsTXT = true | ||
paginate = 5 | ||
pygmentsUseClasses = true | ||
pygmentsCodeFences = true | ||
pygmentsCodeFencesGuessSyntax = true | ||
``` | ||
|
||
custom your `404 page`: | ||
|
||
add `/* /404.html 404` to your `content/_redirects` | ||
|
||
if `_redirects` not exists, you can create a new one. |
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,9 @@ | ||
|
||
{{ define "main"}} | ||
<main id="main"> | ||
<div> | ||
<h1 id="title"><a href="{{ "/" | relURL }}">Go Home</a></h1> | ||
<div><b>404</b>, I am lost.</div> | ||
</div> | ||
</main> | ||
{{ end }} |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<div id="footer" class="footer"> | ||
<div id="footer" class="footer max-body-width text-gray"> | ||
{{ if .Site.Copyright }} | ||
<div> {{ .Site.Copyright | safeHTML }}</div> | ||
{{ end }} | ||
<div>Built <a href="https://github.com/cntrump/hugo-notepadium">hugo-notepadium</a>. 100% JavaScript-free.</div> | ||
</div> |
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
Oops, something went wrong.