Remove minima theme, revert to terminal theme.
This commit is contained in:
parent
72e870ee75
commit
8166a082bb
@ -1,26 +0,0 @@
|
|||||||
baseURL = "https://seraphimrp.srht.site/"
|
|
||||||
languageCode = "en-us"
|
|
||||||
title = "Seraphim R.P."
|
|
||||||
paginate = 8
|
|
||||||
theme = "minima"
|
|
||||||
|
|
||||||
[author]
|
|
||||||
author = "Seraphim R.P."
|
|
||||||
slogon = "An Orthodox Christian and software engineer." # "slogon", really?
|
|
||||||
description = "Seraphim R.P. is an Orthodox Christian and software engineer."
|
|
||||||
|
|
||||||
[params]
|
|
||||||
iam = "I am"
|
|
||||||
comment = "disqus"
|
|
||||||
|
|
||||||
[menu]
|
|
||||||
[[menu.main]]
|
|
||||||
identifier = "home"
|
|
||||||
name = "Home"
|
|
||||||
url = "/"
|
|
||||||
weight = 1
|
|
||||||
[[menu.main]]
|
|
||||||
identifier = "about"
|
|
||||||
name = "About"
|
|
||||||
url = "/about"
|
|
||||||
weight = 2
|
|
@ -1 +1 @@
|
|||||||
config.minima.toml
|
config.terminal.toml
|
2
themes/minima/.gitignore
vendored
2
themes/minima/.gitignore
vendored
@ -1,2 +0,0 @@
|
|||||||
.DS_Store
|
|
||||||
public
|
|
@ -1,20 +0,0 @@
|
|||||||
The MIT License (MIT)
|
|
||||||
|
|
||||||
Copyright (c) 2021 YOUR_NAME_HERE
|
|
||||||
|
|
||||||
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.
|
|
@ -1,12 +0,0 @@
|
|||||||
source=exampleSite
|
|
||||||
|
|
||||||
.PHONY: dev, build, clean
|
|
||||||
|
|
||||||
dev:
|
|
||||||
hugo server -D -s $(source) --themesDir ../..
|
|
||||||
|
|
||||||
build:
|
|
||||||
hugo -D --gc --minify -s $(source) --themesDir ../
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -r $(source)/public
|
|
@ -1,58 +0,0 @@
|
|||||||
# Minima
|
|
||||||
|
|
||||||
A Clean and minimal Hugo theme porting from Minima on Hexo. [Click me](https://h.xjj.pub/) to take a look at the demo site.
|
|
||||||
|
|
||||||
![screenshot](./images/tn.png)
|
|
||||||
|
|
||||||
## Features
|
|
||||||
|
|
||||||
- [x] light/dark mode
|
|
||||||
- [x] Code Hightlight
|
|
||||||
- [x] KaTeX
|
|
||||||
- [x] Google analytics
|
|
||||||
- [x] Disqus/OvO comments
|
|
||||||
|
|
||||||
## Usage
|
|
||||||
|
|
||||||
Before using Minima, make sure you've got Hugo(v0.41.0 or higher) installed on your device.
|
|
||||||
|
|
||||||
### Installation
|
|
||||||
|
|
||||||
Suppose `blog` is where you place your sources.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
cd blog
|
|
||||||
git init
|
|
||||||
git submodule add --depth 1 https://github.com/mivinci/hugo-theme-minima.git themes/minima
|
|
||||||
```
|
|
||||||
|
|
||||||
Or `clone` directly if you don't wanna use the Git submodule.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
git clone https://github.com/mivinci/hugo-theme-minima.git themes/minima
|
|
||||||
```
|
|
||||||
|
|
||||||
Anyways, you just need to put Minima under the `blog/themes` directory.
|
|
||||||
|
|
||||||
### Configuration
|
|
||||||
|
|
||||||
Follow [exampleSite/config.toml](https://github.com/Mivinci/hugo-theme-minima/blob/main/exampleSite/config.toml) and edit your own `blog/config.toml` file.
|
|
||||||
|
|
||||||
### Supported Front Matters
|
|
||||||
|
|
||||||
| Field | Type | Explanation |
|
|
||||||
| ----------- | ------ | ------------------------------------------------------ |
|
|
||||||
| title | string | Title of the post, will be rendered in a `h1` tag |
|
|
||||||
| description | string | Description of the post, will be rendered in a `p` tag |
|
|
||||||
| date | string | Datetime that the post is written |
|
|
||||||
| math | bool | True if the post needs to render math formulas |
|
|
||||||
| comment | bool | True if the post allows people to make comments |
|
|
||||||
| draft | bool | True if the post isn't already to production |
|
|
||||||
| categories | array | Array of categories the posts belongs to |
|
|
||||||
| series | array | Array of series the posts belongs to |
|
|
||||||
| tags | array | Array of tags the posts is related to |
|
|
||||||
|
|
||||||
### Feedback
|
|
||||||
|
|
||||||
Feedbacks are welcome [here](https://github.com/Mivinci/hugo-theme-minima/issues).
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
|||||||
---
|
|
||||||
---
|
|
@ -1,4 +0,0 @@
|
|||||||
github = '<svg fill="#63636f" width="18" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>GitHub</title><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg>'
|
|
||||||
linkedin = '<svg fill="#0073b1" width="18" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>LinkedIn</title><path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/></svg>'
|
|
||||||
twitter = '<svg fill="#1da1f2" width="18" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Twitter</title><path d="M23.954 4.569c-.885.389-1.83.654-2.825.775 1.014-.611 1.794-1.574 2.163-2.723-.951.555-2.005.959-3.127 1.184-.896-.959-2.173-1.559-3.591-1.559-2.717 0-4.92 2.203-4.92 4.917 0 .39.045.765.127 1.124C7.691 8.094 4.066 6.13 1.64 3.161c-.427.722-.666 1.561-.666 2.475 0 1.71.87 3.213 2.188 4.096-.807-.026-1.566-.248-2.228-.616v.061c0 2.385 1.693 4.374 3.946 4.827-.413.111-.849.171-1.296.171-.314 0-.615-.03-.916-.086.631 1.953 2.445 3.377 4.604 3.417-1.68 1.319-3.809 2.105-6.102 2.105-.39 0-.779-.023-1.17-.067 2.189 1.394 4.768 2.209 7.557 2.209 9.054 0 13.999-7.496 13.999-13.986 0-.209 0-.42-.015-.63.961-.689 1.8-1.56 2.46-2.548l-.047-.02z"/></svg>'
|
|
||||||
rss = '<svg fill="#63636f" t="1626591563876" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1984" width="18" height="16"><path d="M128 768a128 128 0 1 0 0 256 128 128 0 0 0 0-256zM0 368v176c265.104 0 480 214.912 480 480h176c0-362.32-293.696-656-656-656zM0 0v176c468.336 0 848 379.664 848 848h176C1024 458.464 565.536 0 0 0z" p-id="1985"></path></svg>'
|
|
@ -1,101 +0,0 @@
|
|||||||
baseURL = "http://h.xjj.pub"
|
|
||||||
languageCode = "en-us"
|
|
||||||
title = "Hi Folks"
|
|
||||||
copyright = "© Copyright notice"
|
|
||||||
theme = "minima"
|
|
||||||
paginate = 7
|
|
||||||
googleAnalytics = ""
|
|
||||||
disqusShortname = "hugo-minima"
|
|
||||||
|
|
||||||
|
|
||||||
# Author has some of your information to be shown on the home
|
|
||||||
# page of your blog.
|
|
||||||
[author]
|
|
||||||
name = "XJJ"
|
|
||||||
slogon = "A student and web developer from Earth 🌍"
|
|
||||||
description = "This is Minima, a clean and minimal Hugo theme porting from Minima on Hexo. It not only inherits everything from Hexo Minima like dark/light mode but intgrated KaTeX and some taxonomies like categories, series and tags. I created this from scratch using pure CSS and Vanilla JS without using unnecessary development packs! 😁"
|
|
||||||
|
|
||||||
|
|
||||||
[params]
|
|
||||||
# iam is the beginning words of your self-introduction.
|
|
||||||
iam = "I am"
|
|
||||||
# The subtitle will be shown after the title of your blog site
|
|
||||||
# in a format "title - subtitle".
|
|
||||||
subtitle = ""
|
|
||||||
# Comment decides the comment plugin used on your blog site,
|
|
||||||
# available plugins: disqus, ovo.
|
|
||||||
comment = "disqus"
|
|
||||||
|
|
||||||
|
|
||||||
# OvO is a comment plugin written by the author of Minima.
|
|
||||||
# It is enabled when params.comment is set "ovo". You can
|
|
||||||
# find its documentation on https://github.com/ovojs/ovo.
|
|
||||||
# If you are using disqus, just ignore this field.
|
|
||||||
[params.ovo]
|
|
||||||
server = ""
|
|
||||||
placeholder = ""
|
|
||||||
|
|
||||||
|
|
||||||
# Params.social is an array containing your social network accounts,
|
|
||||||
# Each has a lowercase name, a svg formatted icon and a url to the
|
|
||||||
# webpage of your account. They will be shown at the bottom of every
|
|
||||||
# page of your blog.
|
|
||||||
# Be sure the svgs you select to use must have both the width and the
|
|
||||||
# height set 18. If you don't wanna put the svg code in this config
|
|
||||||
# file, you can instead save them to the `data/svg.toml` file under
|
|
||||||
# the root directory of your blog using a format like `name = '<svg>'`
|
|
||||||
[[params.social]]
|
|
||||||
name = "github"
|
|
||||||
url = "https://github.com/mivinci"
|
|
||||||
svg = ""
|
|
||||||
[[params.social]]
|
|
||||||
name = "linkedin"
|
|
||||||
url = "https://linkedin/in/leonard-mivinci-63895317a"
|
|
||||||
svg = ""
|
|
||||||
[[params.social]]
|
|
||||||
name = "twitter"
|
|
||||||
url = "https://twitter.com/Leonard14733745"
|
|
||||||
svg = ""
|
|
||||||
[[params.social]]
|
|
||||||
name = "rss"
|
|
||||||
url = "/index.xml"
|
|
||||||
svg = ""
|
|
||||||
|
|
||||||
|
|
||||||
# Menu.main is an array that's used to decide what entries can be shown
|
|
||||||
# on the navigator of yur blog. You can use a weight to make them ordered.
|
|
||||||
[[menu.main]]
|
|
||||||
name = "Home"
|
|
||||||
url = "/"
|
|
||||||
weight = 1
|
|
||||||
[[menu.main]]
|
|
||||||
name = "Categories"
|
|
||||||
url = "/categories"
|
|
||||||
weight = 2
|
|
||||||
[[menu.main]]
|
|
||||||
name = "Series"
|
|
||||||
url = "/series"
|
|
||||||
weight = 3
|
|
||||||
[[menu.main]]
|
|
||||||
name = "About"
|
|
||||||
url = "/about"
|
|
||||||
weight = 4
|
|
||||||
|
|
||||||
|
|
||||||
# You can classify your posts by setting taxanomies in the front matter like
|
|
||||||
# categories = ["apple", "banana"]
|
|
||||||
# series = ["s1", "s2"]
|
|
||||||
# tags = ["t1", "t2"]
|
|
||||||
# A little suggestion: one post belongs to one series, one category and multiple tags.
|
|
||||||
[taxonomies]
|
|
||||||
category = "categories"
|
|
||||||
tag = "tags"
|
|
||||||
series = "series"
|
|
||||||
|
|
||||||
|
|
||||||
# Make sure all the codes in a post are highlighted correctly
|
|
||||||
# so better not edit this.
|
|
||||||
[markup.highlight]
|
|
||||||
lineNos = true
|
|
||||||
noClasses = false
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
|||||||
---
|
|
||||||
title: "About"
|
|
||||||
date: 2021-07-18T11:24:06+08:00
|
|
||||||
draft: true
|
|
||||||
type: about
|
|
||||||
---
|
|
||||||
|
|
@ -1,44 +0,0 @@
|
|||||||
+++
|
|
||||||
author = "Hugo Authors"
|
|
||||||
title = "Emoji Support"
|
|
||||||
date = "2021-07-18T10:52:59+08:00"
|
|
||||||
description = "Guide to emoji usage in Hugo"
|
|
||||||
comment = true
|
|
||||||
+++
|
|
||||||
|
|
||||||
Emoji can be enabled in a Hugo project in a number of ways.
|
|
||||||
<!--more-->
|
|
||||||
The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes).
|
|
||||||
|
|
||||||
To enable emoji globally, set `enableEmoji` to `true` in your site's [configuration](https://gohugo.io/getting-started/configuration/) and then you can type emoji shorthand codes directly in content files; e.g.
|
|
||||||
|
|
||||||
<p><span class="nowrap"><span class="emojify">🙈</span> <code>:see_no_evil:</code></span> <span class="nowrap"><span class="emojify">🙉</span> <code>:hear_no_evil:</code></span> <span class="nowrap"><span class="emojify">🙊</span> <code>:speak_no_evil:</code></span></p>
|
|
||||||
<br>
|
|
||||||
|
|
||||||
The [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) is a useful reference for emoji shorthand codes.
|
|
||||||
|
|
||||||
***
|
|
||||||
|
|
||||||
**N.B.** The above steps enable Unicode Standard emoji characters and sequences in Hugo, however the rendering of these glyphs depends on the browser and the platform. To style the emoji you can either use a third party emoji font or a font stack; e.g.
|
|
||||||
|
|
||||||
{{< highlight html >}}
|
|
||||||
.emoji {
|
|
||||||
font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
|
|
||||||
}
|
|
||||||
{{< /highlight >}}
|
|
||||||
|
|
||||||
{{< css.inline >}}
|
|
||||||
<style>
|
|
||||||
.emojify {
|
|
||||||
font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
|
|
||||||
font-size: 2rem;
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
@media screen and (max-width:650px) {
|
|
||||||
.nowrap {
|
|
||||||
display: block;
|
|
||||||
margin: 25px 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
{{< /css.inline >}}
|
|
@ -1,150 +0,0 @@
|
|||||||
+++
|
|
||||||
author = "Hugo Authors"
|
|
||||||
title = "Markdown Syntax Guide"
|
|
||||||
date = "2021-07-18T10:52:59+08:00"
|
|
||||||
description = "Sample article showcasing basic Markdown syntax and formatting for HTML elements."
|
|
||||||
tags = [
|
|
||||||
"markdown",
|
|
||||||
"css",
|
|
||||||
"html",
|
|
||||||
]
|
|
||||||
categories = [
|
|
||||||
"themes",
|
|
||||||
"syntax",
|
|
||||||
]
|
|
||||||
series = ["Themes Guide"]
|
|
||||||
aliases = ["migrate-from-jekyl"]
|
|
||||||
+++
|
|
||||||
|
|
||||||
This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme.
|
|
||||||
<!--more-->
|
|
||||||
|
|
||||||
## Headings
|
|
||||||
|
|
||||||
The following HTML `<h1>`—`<h6>` elements represent six levels of section headings. `<h1>` is the highest section level while `<h6>` is the lowest.
|
|
||||||
|
|
||||||
# H1
|
|
||||||
## H2
|
|
||||||
### H3
|
|
||||||
#### H4
|
|
||||||
##### H5
|
|
||||||
###### H6
|
|
||||||
|
|
||||||
## Paragraph
|
|
||||||
|
|
||||||
Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.
|
|
||||||
|
|
||||||
Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.
|
|
||||||
|
|
||||||
## Blockquotes
|
|
||||||
|
|
||||||
The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations.
|
|
||||||
|
|
||||||
#### Blockquote without attribution
|
|
||||||
|
|
||||||
> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
|
|
||||||
> **Note** that you can use *Markdown syntax* within a blockquote.
|
|
||||||
|
|
||||||
#### Blockquote with attribution
|
|
||||||
|
|
||||||
> Don't communicate by sharing memory, share memory by communicating.<br>
|
|
||||||
> — <cite>Rob Pike[^1]</cite>
|
|
||||||
|
|
||||||
[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.
|
|
||||||
|
|
||||||
## Tables
|
|
||||||
|
|
||||||
Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box.
|
|
||||||
|
|
||||||
Name | Age
|
|
||||||
--------|------
|
|
||||||
Bob | 27
|
|
||||||
Alice | 23
|
|
||||||
|
|
||||||
#### Inline Markdown within tables
|
|
||||||
|
|
||||||
| Italics | Bold | Code |
|
|
||||||
| -------- | -------- | ------ |
|
|
||||||
| *italics* | **bold** | `code` |
|
|
||||||
|
|
||||||
## Code Blocks
|
|
||||||
|
|
||||||
#### Code block with backticks
|
|
||||||
|
|
||||||
```html
|
|
||||||
<!doctype html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<title>Example HTML5 Document</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<p>Test</p>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Code block indented with four spaces
|
|
||||||
|
|
||||||
<!doctype html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<title>Example HTML5 Document</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<p>Test</p>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
||||||
#### Code block with Hugo's internal highlight shortcode
|
|
||||||
{{< highlight html >}}
|
|
||||||
<!doctype html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<title>Example HTML5 Document</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<p>Test</p>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
{{< /highlight >}}
|
|
||||||
|
|
||||||
## List Types
|
|
||||||
|
|
||||||
#### Ordered List
|
|
||||||
|
|
||||||
1. First item
|
|
||||||
2. Second item
|
|
||||||
3. Third item
|
|
||||||
|
|
||||||
- [x] xxx
|
|
||||||
|
|
||||||
#### Unordered List
|
|
||||||
|
|
||||||
* List item
|
|
||||||
* Another item
|
|
||||||
* And another item
|
|
||||||
|
|
||||||
#### Nested list
|
|
||||||
|
|
||||||
* Fruit
|
|
||||||
* Apple
|
|
||||||
* Orange
|
|
||||||
* Banana
|
|
||||||
* Dairy
|
|
||||||
* Milk
|
|
||||||
* Cheese
|
|
||||||
|
|
||||||
## Other Elements — abbr, sub, sup, kbd, mark
|
|
||||||
|
|
||||||
<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.
|
|
||||||
|
|
||||||
H<sub>2</sub>O
|
|
||||||
|
|
||||||
X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
|
|
||||||
|
|
||||||
Press <kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd></kbd> to end the session.
|
|
||||||
|
|
||||||
Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
|
|
@ -1,49 +0,0 @@
|
|||||||
---
|
|
||||||
author: Hugo Authors
|
|
||||||
title: Math Typesetting
|
|
||||||
date: 2021-07-18T10:52:59+08:00
|
|
||||||
description: A brief guide to setup KaTeX
|
|
||||||
math: true
|
|
||||||
---
|
|
||||||
|
|
||||||
Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries.
|
|
||||||
<!--more-->
|
|
||||||
|
|
||||||
In this example we will be using [KaTeX](https://katex.org/)
|
|
||||||
|
|
||||||
- Create a partial under `/layouts/partials/math.html`
|
|
||||||
- Within this partial reference the [Auto-render Extension](https://katex.org/docs/autorender.html) or host these scripts locally.
|
|
||||||
- Include the partial in your templates like so:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
{{ if or .Params.math .Site.Params.math }}
|
|
||||||
{{ partial "math.html" . }}
|
|
||||||
{{ end }}
|
|
||||||
```
|
|
||||||
|
|
||||||
- To enable KaTex globally set the parameter `math` to `true` in a project's configuration
|
|
||||||
- To enable KaTex on a per page basis include the parameter `math: true` in content files
|
|
||||||
|
|
||||||
**Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html)
|
|
||||||
|
|
||||||
{{< math.inline >}}
|
|
||||||
{{ if or .Page.Params.math .Site.Params.math }}
|
|
||||||
<!-- KaTeX -->
|
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css" integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous">
|
|
||||||
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.js" integrity="sha384-y23I5Q6l+B6vatafAwxRu/0oK/79VlbSz7Q9aiSZUvyWYIYsd+qj+o24G5ZU2zJz" crossorigin="anonymous"></script>
|
|
||||||
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/contrib/auto-render.min.js" integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script>
|
|
||||||
{{ end }}
|
|
||||||
{{</ math.inline >}}
|
|
||||||
|
|
||||||
### Examples
|
|
||||||
|
|
||||||
{{< math.inline >}}
|
|
||||||
<p>
|
|
||||||
Inline math: \(\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…\)
|
|
||||||
</p>
|
|
||||||
{{</ math.inline >}}
|
|
||||||
|
|
||||||
Block math:
|
|
||||||
$$
|
|
||||||
\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
|
|
||||||
$$
|
|
@ -1,45 +0,0 @@
|
|||||||
+++
|
|
||||||
author = "Hugo Authors"
|
|
||||||
title = "Placeholder Text"
|
|
||||||
date = "2021-07-18T10:52:59+08:00"
|
|
||||||
description = "Lorem Ipsum Dolor Si Amet"
|
|
||||||
tags = [
|
|
||||||
"markdown",
|
|
||||||
"text",
|
|
||||||
]
|
|
||||||
+++
|
|
||||||
|
|
||||||
Lorem est tota propiore conpellat pectoribus de pectora summo. <!--more-->Redit teque digerit hominumque toris verebor lumina non cervice subde tollit usus habet Arctonque, furores quas nec ferunt. Quoque montibus nunc caluere tempus inhospita parcite confusaque translucet patri vestro qui optatis lumine cognoscere flos nubis! Fronde ipsamque patulos Dryopen deorum.
|
|
||||||
|
|
||||||
1. Exierant elisi ambit vivere dedere
|
|
||||||
2. Duce pollice
|
|
||||||
3. Eris modo
|
|
||||||
4. Spargitque ferrea quos palude
|
|
||||||
|
|
||||||
Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria tractus malis.
|
|
||||||
|
|
||||||
1. Comas hunc haec pietate fetum procerum dixit
|
|
||||||
2. Post torum vates letum Tiresia
|
|
||||||
3. Flumen querellas
|
|
||||||
4. Arcanaque montibus omnes
|
|
||||||
5. Quidem et
|
|
||||||
|
|
||||||
# Vagus elidunt
|
|
||||||
|
|
||||||
<svg class="canon" xmlns="http://www.w3.org/2000/svg" overflow="visible" viewBox="0 0 496 373" height="373" width="496"><g fill="none"><path stroke="#000" stroke-width=".75" d="M.599 372.348L495.263 1.206M.312.633l494.95 370.853M.312 372.633L247.643.92M248.502.92l246.76 370.566M330.828 123.869V1.134M330.396 1.134L165.104 124.515"></path><path stroke="#ED1C24" stroke-width=".75" d="M275.73 41.616h166.224v249.05H275.73zM54.478 41.616h166.225v249.052H54.478z"></path><path stroke="#000" stroke-width=".75" d="M.479.375h495v372h-495zM247.979.875v372"></path><ellipse cx="498.729" cy="177.625" rx=".75" ry="1.25"></ellipse><ellipse cx="247.229" cy="377.375" rx=".75" ry="1.25"></ellipse></g></svg>
|
|
||||||
|
|
||||||
[The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon)
|
|
||||||
|
|
||||||
## Mane refeci capiebant unda mulcebat
|
|
||||||
|
|
||||||
Victa caducifer, malo vulnere contra dicere aurato, ludit regale, voca! Retorsit colit est profanae esse virescere furit nec; iaculi matertera et visa est, viribus. Divesque creatis, tecta novat collumque vulnus est, parvas. **Faces illo pepulere** tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis.
|
|
||||||
|
|
||||||
Iubar proles corpore raptos vero auctor imperium; sed et huic: manus caeli Lelegas tu lux. Verbis obstitit intus oblectamina fixis linguisque ausus sperare Echionides cornuaque tenent clausit possit. Omnia putatur. Praeteritae refert ausus; ferebant e primus lora nutat, vici quae mea ipse. Et iter nil spectatae vulnus haerentia iuste et exercebat, sui et.
|
|
||||||
|
|
||||||
Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel **mitis temploque** vocatus, inque alis, *oculos nomen* non silvis corpore coniunx ne displicet illa. Crescunt non unus, vidit visa quantum inmiti flumina mortis facto sic: undique a alios vincula sunt iactata abdita! Suspenderat ego fuit tendit: luna, ante urbem Propoetides **parte**.
|
|
||||||
|
|
||||||
{{< css.inline >}}
|
|
||||||
<style>
|
|
||||||
.canon { background: white; width: 100%; height: auto; }
|
|
||||||
</style>
|
|
||||||
{{< /css.inline >}}
|
|
Binary file not shown.
Before Width: | Height: | Size: 93 KiB |
Binary file not shown.
Before Width: | Height: | Size: 94 KiB |
Binary file not shown.
Before Width: | Height: | Size: 78 KiB |
@ -1,11 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
{{ partial "head.html" . }}
|
|
||||||
<body>
|
|
||||||
{{ partial "header.html" . }}
|
|
||||||
|
|
||||||
{{ block "main" . }} {{ end }}
|
|
||||||
|
|
||||||
{{ partial "footer.html" . }}
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,17 +0,0 @@
|
|||||||
{{ define "main" }}
|
|
||||||
<main>
|
|
||||||
{{ if isset .Data "Term" }}
|
|
||||||
<h2>{{ .Data.Singular | title }} - "{{ .Data.Term }}"</h2>
|
|
||||||
{{ else }}
|
|
||||||
|
|
||||||
{{ end }}
|
|
||||||
<div>
|
|
||||||
{{ range .Data.Pages }}
|
|
||||||
<div class="row row-mob mb-1 mb-1_5-mob gap-3">
|
|
||||||
<div class="sm-2-mob mb-0_5-mob">{{ dateFormat "Jan 2, 2006" .Date }}</div>
|
|
||||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
|
||||||
</main>
|
|
||||||
{{ end }}
|
|
@ -1,30 +0,0 @@
|
|||||||
{{ define "main" }}
|
|
||||||
<main>
|
|
||||||
<h1>{{ .Title }}</h1>
|
|
||||||
<div class="sm-1 mtb-1">
|
|
||||||
Posted at — {{ dateFormat "Jan 2, 2006" .Date }}
|
|
||||||
{{ if .Draft }}
|
|
||||||
<span class="tag ml-1">
|
|
||||||
DRAFT
|
|
||||||
</span>
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
|
||||||
<p>{{ .Description }}</p>
|
|
||||||
<article class="md">
|
|
||||||
{{ .Content }}
|
|
||||||
</article>
|
|
||||||
</main>
|
|
||||||
{{ if or .Params.math .Site.Params.math }}
|
|
||||||
{{ partial "math.html" . }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ if and .Params.comment (eq .Site.Params.comment "disqus")}}
|
|
||||||
{{ partial "disqus.html" . }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ if and .Params.comment (eq .Site.Params.comment "ovo")}}
|
|
||||||
{{ partial "ovo.html" . }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ end }}
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
|||||||
{{ define "main" }}
|
|
||||||
<main>
|
|
||||||
<h2>{{ .Title }}</h2>
|
|
||||||
<nav class="col">
|
|
||||||
{{ $data := .Data }}
|
|
||||||
{{ range $key, $value := .Data.Terms.ByCount }}
|
|
||||||
<a class="row as-s mb-1" href="/{{ $data.Plural }}/{{ $value.Name }}">
|
|
||||||
{{ $value.Name }}
|
|
||||||
<span class="tag-pm ml-1">{{ $value.Count }}</span>
|
|
||||||
</a>
|
|
||||||
{{ end }}
|
|
||||||
</nav>
|
|
||||||
</main>
|
|
||||||
{{ end }}
|
|
@ -1,22 +0,0 @@
|
|||||||
{{ define "main" }}
|
|
||||||
<main>
|
|
||||||
<h2 class="mb-0">{{ .Site.Params.iam }} {{ .Site.Author.name }}</h2>
|
|
||||||
<p>{{ .Site.Author.slogon }}</p>
|
|
||||||
<p>{{ .Site.Author.description | markdownify | safeHTML }}</p>
|
|
||||||
{{ if eq .Paginator.PageNumber 1 }}
|
|
||||||
<h3>Recent Posts</h3>
|
|
||||||
{{ else }}
|
|
||||||
<h3>All Posts</h3>
|
|
||||||
{{ end }}
|
|
||||||
<div>
|
|
||||||
{{ $paginator := .Paginate (where .Site.RegularPages "Kind" "page") }}
|
|
||||||
{{ range $paginator.Pages }}
|
|
||||||
<div class="row row-mob mb-1 mb-1_5-mob gap-3">
|
|
||||||
<div class="sm-2-mob mb-0_5-mob">{{ dateFormat "Jan 2, 2006" .Date }}</div>
|
|
||||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
||||||
{{ partial "paginator.html" . }}
|
|
||||||
</div>
|
|
||||||
</main>
|
|
||||||
{{ end }}
|
|
@ -1,39 +0,0 @@
|
|||||||
{{- $pctx := . -}}
|
|
||||||
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
|
|
||||||
{{- $pages := slice -}}
|
|
||||||
{{- if or $.IsHome $.IsSection -}}
|
|
||||||
{{- $pages = $pctx.RegularPages -}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- $pages = $pctx.Pages -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- $limit := .Site.Config.Services.RSS.Limit -}}
|
|
||||||
{{- if ge $limit 1 -}}
|
|
||||||
{{- $pages = $pages | first $limit -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
|
||||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
|
||||||
<channel>
|
|
||||||
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
|
||||||
<link>{{ .Permalink }}</link>
|
|
||||||
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
|
|
||||||
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
|
|
||||||
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
|
|
||||||
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
|
|
||||||
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
|
|
||||||
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
|
|
||||||
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
|
|
||||||
{{- with .OutputFormats.Get "RSS" -}}
|
|
||||||
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
|
|
||||||
{{- end -}}
|
|
||||||
{{ range $pages }}
|
|
||||||
<item>
|
|
||||||
<title>{{ .Title }}</title>
|
|
||||||
<link>{{ .Permalink }}</link>
|
|
||||||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
|
||||||
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
|
|
||||||
<guid>{{ .Permalink }}</guid>
|
|
||||||
<description>{{ .Summary | html }}</description>
|
|
||||||
</item>
|
|
||||||
{{ end }}
|
|
||||||
</channel>
|
|
||||||
</rss>
|
|
@ -1,16 +0,0 @@
|
|||||||
<div id="disqus_thread" class="mt-2"></div>
|
|
||||||
<script type="text/javascript">
|
|
||||||
(function () {
|
|
||||||
// Don't ever inject Disqus on localhost--it creates unwanted
|
|
||||||
// discussions from 'localhost:1313' on your Disqus account...
|
|
||||||
if (window.location.hostname == "localhost")
|
|
||||||
return;
|
|
||||||
|
|
||||||
const dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
|
||||||
const disqus_shortname = '{{ .Site.DisqusShortname }}';
|
|
||||||
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
|
||||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
|
||||||
})();
|
|
||||||
</script>
|
|
||||||
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by
|
|
||||||
Disqus.</a></noscript>
|
|
@ -1,18 +0,0 @@
|
|||||||
<footer class="row row-mob al-c-mob col-rev-mob sm-2-mob jc-bt mtb-2">
|
|
||||||
<p>
|
|
||||||
{{ .Site.Copyright }} |
|
|
||||||
<a href="https://github.com/mivinci/hugo-theme-minima" target="_blank" rel="noopener noreferrer">Minima</a> theme on
|
|
||||||
<a href="https://gohugo.io" target="_blank" rel="noopener noreferrer">Hugo</a>
|
|
||||||
</p>
|
|
||||||
<p class="row gap-0_5">
|
|
||||||
{{ range $_, $key := .Site.Params.Social }}
|
|
||||||
<a class="icon" href="{{ $key.url }}" title="{{ $key.name }}">
|
|
||||||
{{ if $key.svg }}
|
|
||||||
{{ $key.svg | safeHTML }}
|
|
||||||
{{ else }}
|
|
||||||
{{ index $.Site.Data.svg $key.name | safeHTML }}
|
|
||||||
{{ end }}
|
|
||||||
</a>
|
|
||||||
{{ end }}
|
|
||||||
</p>
|
|
||||||
</footer>
|
|
@ -1,37 +0,0 @@
|
|||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
{{ template "_internal/opengraph.html" . }}
|
|
||||||
{{ template "_internal/twitter_cards.html" . }}
|
|
||||||
{{ template "_internal/google_analytics.html" . }}
|
|
||||||
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff">
|
|
||||||
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#262d33">
|
|
||||||
<title>
|
|
||||||
{{ if .IsHome }}
|
|
||||||
{{ .Site.Title }} {{ if .Site.Params.subtitle }} - {{ .Site.Params.subtitle }} {{ end }}
|
|
||||||
{{ else }}
|
|
||||||
{{ .Site.Title }} - {{ .Title }}
|
|
||||||
{{ end }}
|
|
||||||
</title>
|
|
||||||
{{ $favicon := "favicon.ico" }}
|
|
||||||
<link rel="shortcut icon" href="{{ $favicon | relURL }}" type="image/x-icon" />
|
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&display=swap"
|
|
||||||
rel="stylesheet">
|
|
||||||
<link rel="stylesheet" href="https://unpkg.com/normalize.css">
|
|
||||||
<link rel="stylesheet" type="text/css" media="screen" href="/css/main.css" />
|
|
||||||
<link rel="stylesheet" type="text/css" media="screen" href="/css/md.css" />
|
|
||||||
<link rel="stylesheet" type="text/css" media="screen" href="/css/syntax.css" />
|
|
||||||
<script src="/js/main.js"></script>
|
|
||||||
</head>
|
|
||||||
<script>
|
|
||||||
try {
|
|
||||||
if (!('theme' in localStorage)) {
|
|
||||||
localStorage.theme = window.matchMedia('(prefer-color-scheme: dark)').matches ? 'dark' : 'light';
|
|
||||||
}
|
|
||||||
document.querySelector('html').classList.add(localStorage.theme);
|
|
||||||
} catch (e) {
|
|
||||||
console.error(e);
|
|
||||||
}
|
|
||||||
</script>
|
|
@ -1,12 +0,0 @@
|
|||||||
<header>
|
|
||||||
<h1 class="row gap-1">
|
|
||||||
<div id="theme-switcher" class="btn lg-1"></div>
|
|
||||||
{{ .Site.Title }}
|
|
||||||
</h1>
|
|
||||||
<nav class="row gap-1">
|
|
||||||
{{ range .Site.Menus.main }}
|
|
||||||
<a href="{{ .URL }}">{{ .Name }}</a>
|
|
||||||
{{ end }}
|
|
||||||
</nav>
|
|
||||||
<hr>
|
|
||||||
</header>
|
|
@ -1,25 +0,0 @@
|
|||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.13.11/dist/katex.min.css"
|
|
||||||
integrity="sha384-Um5gpz1odJg5Z4HAmzPtgZKdTBHZdw8S29IecapCSB31ligYPhHQZMIlWLYQGVoc" crossorigin="anonymous">
|
|
||||||
<!-- The loading of KaTeX is deferred to speed up page rendering -->
|
|
||||||
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.11/dist/katex.min.js"
|
|
||||||
integrity="sha384-YNHdsYkH6gMx9y3mRkmcJ2mFUjTd0qNQQvY9VYZgQd7DcN7env35GzlmFaZ23JGp" crossorigin="anonymous"></script>
|
|
||||||
<!-- To automatically render math in text elements, include the auto-render extension: -->
|
|
||||||
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.11/dist/contrib/auto-render.min.js"
|
|
||||||
integrity="sha384-vZTG03m+2yp6N6BNi5iM4rW4oIwk5DfcNdFfxkk9ZWpDriOkXX8voJBFrAO7MpVl" crossorigin="anonymous"></script>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
document.addEventListener("DOMContentLoaded", function () {
|
|
||||||
renderMathInElement(document.body, {
|
|
||||||
// customised options
|
|
||||||
// • auto-render specific keys, e.g.:
|
|
||||||
delimiters: [
|
|
||||||
{ left: '$$', right: '$$', display: true },
|
|
||||||
{ left: '$', right: '$', display: false },
|
|
||||||
{ left: '\\(', right: '\\)', display: false },
|
|
||||||
{ left: '\\[', right: '\\]', display: true }
|
|
||||||
],
|
|
||||||
// • rendering keys, e.g.:
|
|
||||||
throwOnError: false
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
@ -1,29 +0,0 @@
|
|||||||
<div id="ovo_thread" class="mt-2">
|
|
||||||
<div class="col ai-c">评论插件加载中 OvO</div>
|
|
||||||
</div>
|
|
||||||
<link rel="stylesheet" href="//unpkg.com/@ovojs/ovo/dist/style.css">
|
|
||||||
<script type="text/javascript">
|
|
||||||
(function () {
|
|
||||||
if (window.location.hostname == "localhost")
|
|
||||||
return;
|
|
||||||
|
|
||||||
const script = document.createElement('script');
|
|
||||||
script.type = 'text/javascript';
|
|
||||||
script.src = '//unpkg.com/@ovojs/ovo';
|
|
||||||
(document.getElementsByTagName('head')[0] ||
|
|
||||||
document.getElementsByTagName('body')[0])
|
|
||||||
.appendChild(script);
|
|
||||||
|
|
||||||
script.addEventListener('load', function () {
|
|
||||||
const target = document.getElementById('ovo_thread');
|
|
||||||
target.innerHTML = '';
|
|
||||||
new OvO({
|
|
||||||
target,
|
|
||||||
props: {
|
|
||||||
server: "{{ .Site.Params.ovo.server }}",
|
|
||||||
placeholder: "{{ .Site.Params.ovo.placeholder }}"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
|
||||||
})();
|
|
||||||
</script>
|
|
@ -1,10 +0,0 @@
|
|||||||
{{ $page := $.Paginator }}
|
|
||||||
{{ if gt $page.TotalPages 1 }}
|
|
||||||
<div class="mt-2">
|
|
||||||
{{ if $page.HasNext }}
|
|
||||||
<a href="{{ $page.Next.URL }}">Older →</a>
|
|
||||||
{{ else }}
|
|
||||||
<a href="{{ $page.Prev.URL }}">← Newer</a>
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
@ -1,233 +0,0 @@
|
|||||||
:root {
|
|
||||||
--pm: #0fa0ce;
|
|
||||||
--bd: #e1e1e1;
|
|
||||||
--bg: #fff;
|
|
||||||
--ft: #222;
|
|
||||||
--tag: #333;
|
|
||||||
|
|
||||||
--w-mobile: 640px;
|
|
||||||
}
|
|
||||||
|
|
||||||
html.dark {
|
|
||||||
--bg: #262d33;
|
|
||||||
--ft: #eee;
|
|
||||||
--bd: #555;
|
|
||||||
--tag: #999;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
font-family: Helvetica, sans-serif;
|
|
||||||
max-width: var(--w-mobile);
|
|
||||||
margin: 50px auto 0;
|
|
||||||
font-size: 16px;
|
|
||||||
font-weight: 400;
|
|
||||||
color: var(--ft);
|
|
||||||
background-color: var(--bg);
|
|
||||||
transition-property: background-color, border-color, color;
|
|
||||||
transition-duration: .5s;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1,h2,h3,h4,h5 {
|
|
||||||
font-family: 'Noto Serif SC', 'Times New Roman', sans-serif;
|
|
||||||
font-weight: 700;
|
|
||||||
line-height: 1.5;
|
|
||||||
}
|
|
||||||
|
|
||||||
p {
|
|
||||||
margin-top: 0;
|
|
||||||
line-height: 1.5;
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
hr {
|
|
||||||
margin: 30px 0;
|
|
||||||
border-width: 0;
|
|
||||||
border-top: 1px solid var(--bd);
|
|
||||||
}
|
|
||||||
|
|
||||||
pre,
|
|
||||||
code {
|
|
||||||
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
|
|
||||||
font-size: 13px;
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
a:not(.icon) {
|
|
||||||
color: inherit;
|
|
||||||
text-decoration: underline;
|
|
||||||
text-decoration-color: var(--pm);
|
|
||||||
background-image: linear-gradient( to bottom, rgba(0, 0, 0, 0) 50%, var(--pm) 50% );
|
|
||||||
background-size: 100% 200%;
|
|
||||||
transition: background-position .2s ease-in-out;
|
|
||||||
}
|
|
||||||
|
|
||||||
a:not(.icon):hover,
|
|
||||||
a:not(.icon):focus {
|
|
||||||
background-position: 0 100%;
|
|
||||||
color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon:hover {
|
|
||||||
transform: translateY(-5px);
|
|
||||||
transition: transform .3s ease-in-out;
|
|
||||||
}
|
|
||||||
|
|
||||||
main {
|
|
||||||
animation: showup 0.7s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.row {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.col {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
|
||||||
|
|
||||||
.jc-bt {
|
|
||||||
justify-content: space-between;
|
|
||||||
}
|
|
||||||
|
|
||||||
.as-s {
|
|
||||||
align-self: start;
|
|
||||||
}
|
|
||||||
|
|
||||||
.ai-c {
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.gap-0_5 {
|
|
||||||
gap: .8rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.gap-1 {
|
|
||||||
gap: 1rem;
|
|
||||||
row-gap: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.gap-2 {
|
|
||||||
gap: 2rem;
|
|
||||||
row-gap: 2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.gap-3 {
|
|
||||||
gap: 3rem;
|
|
||||||
row-gap: 3rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.lg-1 {
|
|
||||||
font-size: 1.2em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sm-1 {
|
|
||||||
font-size: .8em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mtb-1 {
|
|
||||||
margin: 1em 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mtb-2 {
|
|
||||||
margin: 2em 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mb-1 {
|
|
||||||
margin-bottom: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mb-0 {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mt-2 {
|
|
||||||
margin-top: 2em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.ml-1 {
|
|
||||||
margin-left: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hidden {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tag-pm {
|
|
||||||
font-size: .7em;
|
|
||||||
font-weight: bold;
|
|
||||||
line-height: 1;
|
|
||||||
color: #fff;
|
|
||||||
background-color: var(--pm);
|
|
||||||
border-radius: 20px;
|
|
||||||
padding: 2px 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes showup {
|
|
||||||
from {
|
|
||||||
opacity: 0;
|
|
||||||
transform: translateY(20px);
|
|
||||||
}
|
|
||||||
|
|
||||||
to {
|
|
||||||
opacity: 1;
|
|
||||||
transform: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 640px) {
|
|
||||||
body {
|
|
||||||
margin: 1em 2em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.row-mob {
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: flex-start;
|
|
||||||
gap: 0;
|
|
||||||
row-gap: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.al-c-mob {
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.col-rev-mob {
|
|
||||||
flex-direction: column-reverse;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sm-2-mob {
|
|
||||||
font-size: .8em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mb-0_5-mob {
|
|
||||||
margin-bottom: .5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mb-1_5-mob {
|
|
||||||
margin-bottom: 1.5em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Scroll bar */
|
|
||||||
::-webkit-scrollbar {
|
|
||||||
width: 8px;
|
|
||||||
height: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb {
|
|
||||||
background: rgb(128 128 128 / 70%);
|
|
||||||
}
|
|
||||||
::-webkit-scrollbar-thumb:window-inactive {
|
|
||||||
background: rgb(128 128 128 / 20%);
|
|
||||||
}
|
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb:active {
|
|
||||||
background-color: rgb(128 128 128 / 100%);
|
|
||||||
}
|
|
@ -1,36 +0,0 @@
|
|||||||
.md blockquote {
|
|
||||||
font-family: 'Inter';
|
|
||||||
background-color: rgba(148, 148, 149, 0.08) ;
|
|
||||||
margin: 1.5em 0px;
|
|
||||||
padding: 1.1em 20px 1px 20px;
|
|
||||||
border-left: 8px solid var(--pm);
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
|
|
||||||
.md table {
|
|
||||||
border-collapse: collapse;
|
|
||||||
border-spacing: 0;
|
|
||||||
display: block;
|
|
||||||
max-width: 100%;
|
|
||||||
width: 100%;
|
|
||||||
margin: 1em 0;
|
|
||||||
overflow: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.md table th {
|
|
||||||
background-color: var(--bg);
|
|
||||||
}
|
|
||||||
|
|
||||||
.md table th, table td {
|
|
||||||
padding: 10px 20px;
|
|
||||||
border: 1px solid var(--bd);
|
|
||||||
}
|
|
||||||
|
|
||||||
.md img {
|
|
||||||
width: 100%;
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.md li {
|
|
||||||
margin-top: .5em;
|
|
||||||
}
|
|
@ -1,122 +0,0 @@
|
|||||||
pre[class*="language-"],
|
|
||||||
code[class*="language-"] {
|
|
||||||
color: #d4d4d4;
|
|
||||||
font-size: 13px;
|
|
||||||
text-shadow: none;
|
|
||||||
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
|
|
||||||
line-height: 1.5;
|
|
||||||
color: #d4d4d4;
|
|
||||||
}
|
|
||||||
|
|
||||||
.chroma {
|
|
||||||
background-color: #292929;
|
|
||||||
margin: .5em 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* LineTableTD */
|
|
||||||
.chroma .lntd {
|
|
||||||
vertical-align: top;
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
border: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.chroma .lntable {
|
|
||||||
border-spacing: 0;
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
border: 0;
|
|
||||||
width: auto;
|
|
||||||
overflow: auto;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* LineNumbersTable */
|
|
||||||
.chroma .lnt {
|
|
||||||
color: #999;
|
|
||||||
display: block;
|
|
||||||
padding-left: .5em;
|
|
||||||
padding-right: 1em;
|
|
||||||
text-align: right;
|
|
||||||
line-height: 1.5;
|
|
||||||
font-size: 13px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Keyword */
|
|
||||||
.chroma .kc,
|
|
||||||
.chroma .kd,
|
|
||||||
.chroma .kn,
|
|
||||||
.chroma .kp,
|
|
||||||
.chroma .kr,
|
|
||||||
.chroma .kt,
|
|
||||||
.chroma .k,
|
|
||||||
.chroma .si {
|
|
||||||
color: #569cd6;
|
|
||||||
}
|
|
||||||
|
|
||||||
.chroma .na {
|
|
||||||
color: #9cdcfe;
|
|
||||||
}
|
|
||||||
|
|
||||||
.chroma .n,
|
|
||||||
.chroma .nb,
|
|
||||||
.chroma .bp,
|
|
||||||
.chroma .nc,
|
|
||||||
.chroma .no,
|
|
||||||
.chroma .nd,
|
|
||||||
.chroma .ni,
|
|
||||||
.chroma .ne,
|
|
||||||
.chroma .nf,
|
|
||||||
.chroma .fm,
|
|
||||||
.chroma .nl,
|
|
||||||
.chroma .nn {
|
|
||||||
color: #3f4c50;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* NameProperty */
|
|
||||||
.chroma .py,
|
|
||||||
.chroma .nt,
|
|
||||||
.chroma .nv,
|
|
||||||
.chroma .vc,
|
|
||||||
.chroma .vg,
|
|
||||||
.chroma .vi,
|
|
||||||
.chroma .vm {
|
|
||||||
color: #569cd6;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* LiteralString */
|
|
||||||
.chroma .s,
|
|
||||||
.chroma .sa,
|
|
||||||
.chroma .sb,
|
|
||||||
.chroma .sc,
|
|
||||||
.chroma .dl,
|
|
||||||
.chroma .sd,
|
|
||||||
.chroma .s2,
|
|
||||||
.chroma .se,
|
|
||||||
.chroma .sh,
|
|
||||||
.chroma .sx,
|
|
||||||
.chroma .sr,
|
|
||||||
.chroma .s1,
|
|
||||||
.chroma .ss {
|
|
||||||
color: #ce9178;
|
|
||||||
}
|
|
||||||
/* LiteralNumber */
|
|
||||||
.chroma .m,
|
|
||||||
.chroma .mb,
|
|
||||||
.chroma .mf,
|
|
||||||
.chroma .mh,
|
|
||||||
.chroma .mi,
|
|
||||||
.chroma .il,
|
|
||||||
.chroma .mo {
|
|
||||||
color: #b5cea8;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Comment */
|
|
||||||
.chroma .c,
|
|
||||||
.chroma .ch,
|
|
||||||
.chroma .cm,
|
|
||||||
.chroma .c1,
|
|
||||||
.chroma .cs {
|
|
||||||
color: #517043;
|
|
||||||
}
|
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 832 B |
@ -1,18 +0,0 @@
|
|||||||
window.addEventListener('DOMContentLoaded', function () {
|
|
||||||
const light = '🌝', dark = '🌚';
|
|
||||||
const LIGHT = 'light', DARK = 'dark';
|
|
||||||
const themeSwitcher = document.getElementById('theme-switcher');
|
|
||||||
|
|
||||||
themeSwitcher.innerHTML = localStorage.theme === LIGHT ? light : dark;
|
|
||||||
|
|
||||||
themeSwitcher.addEventListener('click', function () {
|
|
||||||
const currentTheme = localStorage.theme,
|
|
||||||
newTheme = currentTheme === LIGHT ? DARK : LIGHT,
|
|
||||||
{ classList } = document.querySelector('html'),
|
|
||||||
text = newTheme === LIGHT ? light : dark;
|
|
||||||
classList.remove(currentTheme);
|
|
||||||
classList.add(newTheme);
|
|
||||||
localStorage.theme = newTheme;
|
|
||||||
themeSwitcher.innerHTML = text;
|
|
||||||
})
|
|
||||||
});
|
|
@ -1,21 +0,0 @@
|
|||||||
# theme.toml template for a Hugo theme
|
|
||||||
# See https://github.com/gohugoio/hugoThemes#themetoml for an example
|
|
||||||
|
|
||||||
name = "Minima"
|
|
||||||
license = "MIT"
|
|
||||||
licenselink = "https://github.com/mivinci/minima/blob/master/LICENSE"
|
|
||||||
description = "A Clean and minimal Hugo theme porting from Minima on Hexo."
|
|
||||||
homepage = "https://github.com/mivinci/hugo-theme-minima"
|
|
||||||
tags = ["minimal", "clean", "blog", "responsive", "personal", "simple", "minimalist", "portfolio", "dark"]
|
|
||||||
features = ["Dark mode", "KaTeX"]
|
|
||||||
min_version = "0.41.0"
|
|
||||||
|
|
||||||
[author]
|
|
||||||
name = "XJJ"
|
|
||||||
homepage = "https://xjj.pub"
|
|
||||||
|
|
||||||
# If porting an existing theme
|
|
||||||
[original]
|
|
||||||
name = "Minima"
|
|
||||||
homepage = "https://adisaktijrs.github.io/minima"
|
|
||||||
repo = "https://github.com/adisaktijrs/hexo-theme-minima"
|
|
Loading…
Reference in New Issue
Block a user