diff --git a/config.minima.toml b/config.minima.toml deleted file mode 100644 index 78023e9..0000000 --- a/config.minima.toml +++ /dev/null @@ -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 diff --git a/config.toml b/config.toml index 27f3cd3..592bf9a 120000 --- a/config.toml +++ b/config.toml @@ -1 +1 @@ -config.minima.toml \ No newline at end of file +config.terminal.toml \ No newline at end of file diff --git a/themes/minima/.gitignore b/themes/minima/.gitignore deleted file mode 100644 index faa6c31..0000000 --- a/themes/minima/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -.DS_Store -public \ No newline at end of file diff --git a/themes/minima/LICENSE b/themes/minima/LICENSE deleted file mode 100644 index e4483e2..0000000 --- a/themes/minima/LICENSE +++ /dev/null @@ -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. diff --git a/themes/minima/Makefile b/themes/minima/Makefile deleted file mode 100644 index a7bf8d0..0000000 --- a/themes/minima/Makefile +++ /dev/null @@ -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 \ No newline at end of file diff --git a/themes/minima/README.md b/themes/minima/README.md deleted file mode 100644 index b652d6b..0000000 --- a/themes/minima/README.md +++ /dev/null @@ -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). - diff --git a/themes/minima/archetypes/default.md b/themes/minima/archetypes/default.md deleted file mode 100644 index a845151..0000000 --- a/themes/minima/archetypes/default.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/themes/minima/data/svg.toml b/themes/minima/data/svg.toml deleted file mode 100644 index 8496be2..0000000 --- a/themes/minima/data/svg.toml +++ /dev/null @@ -1,4 +0,0 @@ -github = 'GitHub' -linkedin = 'LinkedIn' -twitter = 'Twitter' -rss = '' \ No newline at end of file diff --git a/themes/minima/exampleSite/config.toml b/themes/minima/exampleSite/config.toml deleted file mode 100644 index f65c777..0000000 --- a/themes/minima/exampleSite/config.toml +++ /dev/null @@ -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 = ''` -[[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 - \ No newline at end of file diff --git a/themes/minima/exampleSite/content/about.md b/themes/minima/exampleSite/content/about.md deleted file mode 100644 index 29cbfc6..0000000 --- a/themes/minima/exampleSite/content/about.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "About" -date: 2021-07-18T11:24:06+08:00 -draft: true -type: about ---- - diff --git a/themes/minima/exampleSite/content/emoji-support.md b/themes/minima/exampleSite/content/emoji-support.md deleted file mode 100644 index 3908939..0000000 --- a/themes/minima/exampleSite/content/emoji-support.md +++ /dev/null @@ -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. - -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. - -

๐Ÿ™ˆ :see_no_evil: ๐Ÿ™‰ :hear_no_evil: ๐Ÿ™Š :speak_no_evil:

-
- -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 >}} - -{{< /css.inline >}} diff --git a/themes/minima/exampleSite/content/markdown-syntax.md b/themes/minima/exampleSite/content/markdown-syntax.md deleted file mode 100644 index ffe814a..0000000 --- a/themes/minima/exampleSite/content/markdown-syntax.md +++ /dev/null @@ -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. - - -## Headings - -The following HTML `

`โ€”`

` elements represent six levels of section headings. `

` is the highest section level while `

` 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.
-> โ€” Rob Pike[^1] - -[^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 - - - - - Example HTML5 Document - - -

Test

- - -``` - -#### Code block indented with four spaces - - - - - - Example HTML5 Document - - -

Test

- - - -#### Code block with Hugo's internal highlight shortcode -{{< highlight html >}} - - - - - Example HTML5 Document - - -

Test

- - -{{< /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 - -GIF is a bitmap image format. - -H2O - -Xn + Yn = Zn - -Press CTRL+ALT+Delete to end the session. - -Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures. diff --git a/themes/minima/exampleSite/content/math-typesetting.md b/themes/minima/exampleSite/content/math-typesetting.md deleted file mode 100644 index f3d7e1d..0000000 --- a/themes/minima/exampleSite/content/math-typesetting.md +++ /dev/null @@ -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. - - -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 }} - - - - -{{ end }} -{{}} - -### Examples - -{{< math.inline >}} -

-Inline math: \(\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887โ€ฆ\) -

-{{}} - -Block math: -$$ - \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } -$$ diff --git a/themes/minima/exampleSite/content/placeholder-text.md b/themes/minima/exampleSite/content/placeholder-text.md deleted file mode 100644 index 238252c..0000000 --- a/themes/minima/exampleSite/content/placeholder-text.md +++ /dev/null @@ -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. 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 - - - -[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 >}} - -{{< /css.inline >}} diff --git a/themes/minima/images/screenshot-dark.png b/themes/minima/images/screenshot-dark.png deleted file mode 100644 index 2500d90..0000000 Binary files a/themes/minima/images/screenshot-dark.png and /dev/null differ diff --git a/themes/minima/images/screenshot.png b/themes/minima/images/screenshot.png deleted file mode 100644 index d9013c5..0000000 Binary files a/themes/minima/images/screenshot.png and /dev/null differ diff --git a/themes/minima/images/tn.png b/themes/minima/images/tn.png deleted file mode 100644 index 29d318e..0000000 Binary files a/themes/minima/images/tn.png and /dev/null differ diff --git a/themes/minima/layouts/404.html b/themes/minima/layouts/404.html deleted file mode 100644 index e69de29..0000000 diff --git a/themes/minima/layouts/_default/baseof.html b/themes/minima/layouts/_default/baseof.html deleted file mode 100644 index 41351ec..0000000 --- a/themes/minima/layouts/_default/baseof.html +++ /dev/null @@ -1,11 +0,0 @@ - - -{{ partial "head.html" . }} - - {{ partial "header.html" . }} - - {{ block "main" . }} {{ end }} - - {{ partial "footer.html" . }} - - \ No newline at end of file diff --git a/themes/minima/layouts/_default/list.html b/themes/minima/layouts/_default/list.html deleted file mode 100644 index b9f8629..0000000 --- a/themes/minima/layouts/_default/list.html +++ /dev/null @@ -1,17 +0,0 @@ -{{ define "main" }} -
- {{ if isset .Data "Term" }} -

{{ .Data.Singular | title }} - "{{ .Data.Term }}"

- {{ else }} - - {{ end }} -
- {{ range .Data.Pages }} -
-
{{ dateFormat "Jan 2, 2006" .Date }}
- {{ .Title }} -
- {{ end }} -
-
-{{ end }} \ No newline at end of file diff --git a/themes/minima/layouts/_default/single.html b/themes/minima/layouts/_default/single.html deleted file mode 100644 index 0070bf6..0000000 --- a/themes/minima/layouts/_default/single.html +++ /dev/null @@ -1,30 +0,0 @@ -{{ define "main" }} -
-

{{ .Title }}

-
- Posted at — {{ dateFormat "Jan 2, 2006" .Date }} - {{ if .Draft }} - - DRAFT - - {{ end }} -
-

{{ .Description }}

-
- {{ .Content }} -
-
- {{ 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 }} - diff --git a/themes/minima/layouts/_default/terms.html b/themes/minima/layouts/_default/terms.html deleted file mode 100644 index ba6673e..0000000 --- a/themes/minima/layouts/_default/terms.html +++ /dev/null @@ -1,14 +0,0 @@ -{{ define "main" }} -
-

{{ .Title }}

- -
-{{ end }} \ No newline at end of file diff --git a/themes/minima/layouts/index.html b/themes/minima/layouts/index.html deleted file mode 100644 index 612a88a..0000000 --- a/themes/minima/layouts/index.html +++ /dev/null @@ -1,22 +0,0 @@ -{{ define "main" }} -
-

{{ .Site.Params.iam }} {{ .Site.Author.name }}

-

{{ .Site.Author.slogon }}

-

{{ .Site.Author.description | markdownify | safeHTML }}

- {{ if eq .Paginator.PageNumber 1 }} -

Recent Posts

- {{ else }} -

All Posts

- {{ end }} -
- {{ $paginator := .Paginate (where .Site.RegularPages "Kind" "page") }} - {{ range $paginator.Pages }} -
-
{{ dateFormat "Jan 2, 2006" .Date }}
- {{ .Title }} -
- {{ end }} - {{ partial "paginator.html" . }} -
-
-{{ end }} \ No newline at end of file diff --git a/themes/minima/layouts/index.xml b/themes/minima/layouts/index.xml deleted file mode 100644 index 3a97292..0000000 --- a/themes/minima/layouts/index.xml +++ /dev/null @@ -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 "" | safeHTML }} - - - {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} - {{ .Permalink }} - Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} - Hugo -- gohugo.io{{ with .Site.LanguageCode }} - {{.}}{{end}}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} - {{.}}{{end}}{{ if not .Date.IsZero }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} - {{- with .OutputFormats.Get "RSS" -}} - {{ printf "" .Permalink .MediaType | safeHTML }} - {{- end -}} - {{ range $pages }} - - {{ .Title }} - {{ .Permalink }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} - {{ .Permalink }} - {{ .Summary | html }} - - {{ end }} - - \ No newline at end of file diff --git a/themes/minima/layouts/partials/disqus.html b/themes/minima/layouts/partials/disqus.html deleted file mode 100644 index f61b59b..0000000 --- a/themes/minima/layouts/partials/disqus.html +++ /dev/null @@ -1,16 +0,0 @@ -
- - \ No newline at end of file diff --git a/themes/minima/layouts/partials/footer.html b/themes/minima/layouts/partials/footer.html deleted file mode 100644 index 4cf04ae..0000000 --- a/themes/minima/layouts/partials/footer.html +++ /dev/null @@ -1,18 +0,0 @@ - \ No newline at end of file diff --git a/themes/minima/layouts/partials/head.html b/themes/minima/layouts/partials/head.html deleted file mode 100644 index bd3852c..0000000 --- a/themes/minima/layouts/partials/head.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - {{ template "_internal/opengraph.html" . }} - {{ template "_internal/twitter_cards.html" . }} - {{ template "_internal/google_analytics.html" . }} - - - - {{ if .IsHome }} - {{ .Site.Title }} {{ if .Site.Params.subtitle }} - {{ .Site.Params.subtitle }} {{ end }} - {{ else }} - {{ .Site.Title }} - {{ .Title }} - {{ end }} - - {{ $favicon := "favicon.ico" }} - - - - - - - - - - - \ No newline at end of file diff --git a/themes/minima/layouts/partials/header.html b/themes/minima/layouts/partials/header.html deleted file mode 100644 index f962a9a..0000000 --- a/themes/minima/layouts/partials/header.html +++ /dev/null @@ -1,12 +0,0 @@ -
-

-
- {{ .Site.Title }} -

- -
-
\ No newline at end of file diff --git a/themes/minima/layouts/partials/math.html b/themes/minima/layouts/partials/math.html deleted file mode 100644 index 521bfeb..0000000 --- a/themes/minima/layouts/partials/math.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/themes/minima/layouts/partials/ovo.html b/themes/minima/layouts/partials/ovo.html deleted file mode 100644 index 43e1390..0000000 --- a/themes/minima/layouts/partials/ovo.html +++ /dev/null @@ -1,29 +0,0 @@ -
-
่ฏ„่ฎบๆ’ไปถๅŠ ่ฝฝไธญ OvO
-
- - \ No newline at end of file diff --git a/themes/minima/layouts/partials/paginator.html b/themes/minima/layouts/partials/paginator.html deleted file mode 100644 index 64c9e61..0000000 --- a/themes/minima/layouts/partials/paginator.html +++ /dev/null @@ -1,10 +0,0 @@ -{{ $page := $.Paginator }} -{{ if gt $page.TotalPages 1 }} -
- {{ if $page.HasNext }} - Older โ†’ - {{ else }} - โ† Newer - {{ end }} -
-{{ end }} \ No newline at end of file diff --git a/themes/minima/static/css/main.css b/themes/minima/static/css/main.css deleted file mode 100644 index 284e45e..0000000 --- a/themes/minima/static/css/main.css +++ /dev/null @@ -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%); -} \ No newline at end of file diff --git a/themes/minima/static/css/md.css b/themes/minima/static/css/md.css deleted file mode 100644 index 1cdd2c9..0000000 --- a/themes/minima/static/css/md.css +++ /dev/null @@ -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; -} \ No newline at end of file diff --git a/themes/minima/static/css/syntax.css b/themes/minima/static/css/syntax.css deleted file mode 100644 index 21f760c..0000000 --- a/themes/minima/static/css/syntax.css +++ /dev/null @@ -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; -} - diff --git a/themes/minima/static/favicon.ico b/themes/minima/static/favicon.ico deleted file mode 100644 index 522921f..0000000 Binary files a/themes/minima/static/favicon.ico and /dev/null differ diff --git a/themes/minima/static/js/main.js b/themes/minima/static/js/main.js deleted file mode 100644 index 70636cf..0000000 --- a/themes/minima/static/js/main.js +++ /dev/null @@ -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; - }) -}); \ No newline at end of file diff --git a/themes/minima/theme.toml b/themes/minima/theme.toml deleted file mode 100644 index b491df0..0000000 --- a/themes/minima/theme.toml +++ /dev/null @@ -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"