finished theme v1
This commit is contained in:
parent
ab59fe0dd5
commit
ed67b83d39
109
README.md
Normal file
109
README.md
Normal file
|
@ -0,0 +1,109 @@
|
|||
|
||||
# Dawn Theme
|
||||
|
||||
A clean and fresh blog theme for zola inspired by [rose pine dawn](https://rosepinetheme.com/).
|
||||
|
||||
|
||||
Features:
|
||||
- Simple
|
||||
- Mobile Friendly
|
||||
- Supports pagination, tags, and summaries
|
||||
- Completely customizable colors
|
||||
|
||||
Here is a [demo](https://dawn.evilmuff.in).
|
||||
|
||||
![Screenshot](screenshot.png)
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```
|
||||
$ cd themes
|
||||
$ git clone https://git.evilmuff.in/evilmuffinha/dawn
|
||||
```
|
||||
|
||||
Set the theme value in `config.toml` to `dawn`.
|
||||
|
||||
This theme requires `tags` and also follows `rss`.
|
||||
|
||||
```toml
|
||||
taxonomies = [
|
||||
{name = "tags", feed = true }
|
||||
]
|
||||
```
|
||||
|
||||
<!-- more -->
|
||||
|
||||
## Customization
|
||||
|
||||
This theme requires a menu option. Set the `menu` field in `extra`.
|
||||
```toml
|
||||
menu = [
|
||||
{ name = "blog", url = "$BASE_URL" },
|
||||
{ name = "tags", url = "$BASE_URL/tags" },
|
||||
{ name = "archive", url = "$BASE_URL/archive" },
|
||||
{ name = "git", url = "https://git.evilmuff.in/evilmuffinha" },
|
||||
]
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
`author` is also required in extra for the copyright.
|
||||
|
||||
```toml
|
||||
author = "evilmuffinha"
|
||||
```
|
||||
|
||||
|
||||
### Title
|
||||
|
||||
Set the title with `title_text = "Dawn Theme"` in extra.
|
||||
|
||||
### Favicon
|
||||
|
||||
Set a favicon with the `favicon` key. You can also change the mimetype with `favicon_mimetype`.
|
||||
```toml
|
||||
favicon = "/favicon.png"
|
||||
favicon_mimetype = "image/png"
|
||||
```
|
||||
|
||||
### Colors
|
||||
|
||||
Dawn has full css color support. You can set any `base` color to change where it is used. Dawn is based on the Rose Pine Dawn theme, but any base16 colorscheme can be used.
|
||||
|
||||
```toml
|
||||
base00 = "#faf4ed" # Used for background
|
||||
base03 = "#9893a5" # Used for horizontal lines
|
||||
base04 = "#797593" # Used for tag text
|
||||
base05 = "#575279" # Used for foreground
|
||||
base09 = "#ea9d34" # Used for quote highlight color
|
||||
base0c = "#56949f" # Used for title
|
||||
base0d = "#286983" # Used for unvisited links
|
||||
base0e = "#907aa9" # Used for visited links
|
||||
```
|
||||
|
||||
### Post View Navigation
|
||||
|
||||
Postview navigation turns on navigation to previous or later posts after reading an article.
|
||||
```toml
|
||||
enable_postview = true
|
||||
```
|
||||
If enabled, you must set the postview prompt to show at the bottom of the screen (it can be blank).
|
||||
```toml
|
||||
postview_prompt = "Read more"
|
||||
```
|
||||
|
||||
### KaTeX
|
||||
|
||||
Katex can be enabled with `katex_enable = true`. You may also want to turn on `katex_auto_render = true` to replace things in `$$` with LaTeX.
|
||||
|
||||
## Shortcodes
|
||||
|
||||
The `katex()` shortcode can be used to render katex without autorender. This can be done as follows:
|
||||
- `{{ katex(body="3 + 4") }}`
|
||||
- `{{ katex(body="3 + 4", block=true) }}`
|
||||
|
||||
The `image()` shortcode can be used to embed images in markdown as follows:
|
||||
`{{ image(src="/ferris.png", alt="Alternate text", position="left", style="width: 20%; height: 20%;") }}`
|
||||
|
||||
Position can be either `left`, `center`, or `right`. Style allows you to embed css for the image.
|
45
config.toml
45
config.toml
|
@ -1,22 +1,47 @@
|
|||
base_url = "http://127.0.0.1:1111"
|
||||
base_url = "http://dawn.evilmuff.in"
|
||||
|
||||
title = "Dawn Theme"
|
||||
|
||||
compile_sass = false
|
||||
|
||||
generate_feed = true
|
||||
feed_filename = "rss.xml"
|
||||
|
||||
build_search_index = true
|
||||
|
||||
taxonomies = [
|
||||
{name = "tags", feed = true}
|
||||
]
|
||||
|
||||
|
||||
[markdown]
|
||||
|
||||
highlight_code = true
|
||||
|
||||
extra_syntaxes_and_themes = ["syntax", "syntax/oceanicnext.tmTheme"]
|
||||
|
||||
highlight_theme = "oceanicnext"
|
||||
|
||||
[extra]
|
||||
|
||||
# Optional - Sets the colorscheme based on base16: base00 is used for the background.
|
||||
#base00 = "#faf4ed"
|
||||
|
||||
# Optional - Sets the colorscheme based on base16: base03 is used for horizontal lines.
|
||||
#base03 = "#9893a5"
|
||||
|
||||
# Optional - Sets the colorscheme based on base16: base04 is used for the tag text.
|
||||
#base04 = "#797593"
|
||||
|
||||
# Optional - Sets the colorscheme based on base16: base05 is used for the foreground text.
|
||||
#base05 = "#575279"
|
||||
|
||||
# Optional - Sets the colorscheme based on base16: base09 is used for the quote highlight.
|
||||
#base09 = "#ea9d34"
|
||||
|
||||
# Optional - Sets the colorscheme based on base16: base0c is used for the title text.
|
||||
#base0c = "#56949f"
|
||||
|
||||
# Optional - Sets the colorscheme based on base16: base0d is used for unvisited links.
|
||||
#base0d = "#286983"
|
||||
|
||||
|
@ -32,9 +57,25 @@ highlight_code = true
|
|||
# Optional - Sets the text displayed as the title to be different. Default title is "Dawn Theme"
|
||||
#title_text = "Dawn Theme"
|
||||
|
||||
# Optional - Enable katex
|
||||
katex_enable = true
|
||||
|
||||
# Optional - Enable katex auto render
|
||||
katex_auto_render = true
|
||||
|
||||
# Optional - Enables navigation to previous or later posts after reading an article
|
||||
enable_postview = true
|
||||
|
||||
# Optional (Required if postview is enabled) - Postview text to be shown
|
||||
postview_prompt = "Read more"
|
||||
|
||||
# Required - Menu options for the hotlinks under the title.
|
||||
menu = [
|
||||
{ name = "blog", url = "$BASE_URL" },
|
||||
{ name = "tags", url = "$BASE_URL/tags" },
|
||||
{ name = "archive", url = "$BASE_URL/archive" },
|
||||
{ name = "about me", url = "$BASE_URL/about" }
|
||||
{ name = "git", url = "https://git.evilmuff.in/evilmuffinha" },
|
||||
]
|
||||
|
||||
# Required - Config author for copyright
|
||||
author = "evilmuffinha"
|
||||
|
|
19
content/fourth.md
Normal file
19
content/fourth.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
+++
|
||||
title = "Four????"
|
||||
date = 2022-05-04
|
||||
[taxonomies]
|
||||
tags = ["filler"]
|
||||
+++
|
||||
|
||||
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc eu feugiat sapien. Aenean ligula nunc, laoreet id sem in, interdum bibendum felis. Donec vel dui neque. Praesent ac sem ut justo volutpat rutrum a imperdiet tellus. Nam lobortis massa non hendrerit hendrerit. Vivamus porttitor dignissim turpis, eget aliquam urna tincidunt non. Aliquam et fringilla turpis. Nullam eros est, eleifend in ornare sed, hendrerit eget est. Aliquam tellus felis, suscipit vitae ex vel, fringilla tempus massa. Nulla facilisi. Pellentesque lobortis consequat lectus. Maecenas ac libero elit.
|
||||
|
||||
Ut luctus dolor ut tortor hendrerit, sed hendrerit augue scelerisque. Suspendisse quis sodales dui, at tempus ante. Nulla at tempor metus. Aliquam vitae rutrum diam. Curabitur iaculis massa dui, quis varius nulla finibus a. Praesent eu blandit justo. Suspendisse pharetra, arcu in rhoncus rutrum, magna magna viverra erat, eget vestibulum enim tellus id dui. Nunc vel dui et arcu posuere maximus. Mauris quam quam, bibendum sed libero nec, tempus hendrerit arcu. Suspendisse sed gravida orci. Fusce tempor arcu ac est pretium porttitor. Aenean consequat risus venenatis sem aliquam, at sollicitudin nulla semper. Aenean bibendum cursus hendrerit. Nulla congue urna nec finibus bibendum. Donec porta tincidunt ligula non ultricies.
|
||||
|
||||
Sed vulputate tristique elit, eget pharetra elit sodales sed. Proin dignissim ipsum lorem, at porta eros malesuada sed. Proin tristique eros eu quam ornare, suscipit luctus mauris lobortis. Phasellus ut placerat enim. Donec egestas faucibus maximus. Nam quis efficitur eros. Cras tincidunt, lacus ac pretium porta, dui dolor varius elit, eget laoreet justo justo vitae metus. Morbi eget nisi ut ex scelerisque lobortis ut in lorem. Vestibulum et lorem quis ipsum feugiat varius. Mauris nec nulla viverra nisi porttitor efficitur. Morbi vel purus eleifend, finibus erat non, placerat ipsum. Mauris et augue vel nisi volutpat aliquam. Curabitur malesuada tortor est, at condimentum neque eleifend in.
|
||||
|
||||
Morbi id ornare lacus. Suspendisse ultrices rutrum posuere. Nullam porttitor libero quis ligula finibus semper. Mauris iaculis magna et nisl tristique, eget maximus ex feugiat. Nam eu felis leo. Quisque ultrices varius purus in molestie. Duis non accumsan ligula. Vivamus dignissim malesuada metus, vel hendrerit tellus viverra id. Curabitur posuere, mauris vitae dignissim dictum, velit mi condimentum lorem, nec varius velit arcu a mi. In dolor sapien, condimentum sed aliquam at, dignissim id purus. Cras lorem leo, vulputate ac ante sed, molestie tempus lectus. Curabitur efficitur libero quam, rhoncus faucibus libero pharetra nec. Curabitur lobortis ullamcorper nisl eu imperdiet. Duis porttitor interdum magna, ac eleifend orci consequat vitae. Aliquam augue felis, faucibus vel blandit sed, maximus non turpis.
|
||||
|
||||
<!-- more -->
|
||||
|
||||
Quisque viverra a eros id auctor. Proin id nibh ut nisl dignissim pellentesque et ac mi. Nullam mattis urna quis consequat bibendum. Donec pretium dui elit, a semper purus tristique et. Mauris euismod nisl eu vehicula facilisis. Maecenas facilisis non massa non scelerisque. Integer malesuada cursus erat eu viverra. Duis ligula mi, eleifend vel justo id, laoreet porttitor ex. Etiam ultricies lacus lorem, sed aliquam nulla blandit in. Maecenas vel facilisis neque, vitae fringilla eros. In justo nibh, pellentesque sed faucibus nec, varius sit amet risus.
|
3
content/pages/_index.md
Normal file
3
content/pages/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
+++
|
||||
render = false
|
||||
+++
|
5
content/pages/archive.md
Normal file
5
content/pages/archive.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
+++
|
||||
path = "archive"
|
||||
template = "archive.html"
|
||||
title = "blog archive"
|
||||
+++
|
19
content/second.md
Normal file
19
content/second.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
+++
|
||||
title = "What?? Another Filler???"
|
||||
date = 2022-05-02
|
||||
[taxonomies]
|
||||
tags = []
|
||||
+++
|
||||
|
||||
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc eu feugiat sapien. Aenean ligula nunc, laoreet id sem in, interdum bibendum felis. Donec vel dui neque. Praesent ac sem ut justo volutpat rutrum a imperdiet tellus. Nam lobortis massa non hendrerit hendrerit. Vivamus porttitor dignissim turpis, eget aliquam urna tincidunt non. Aliquam et fringilla turpis. Nullam eros est, eleifend in ornare sed, hendrerit eget est. Aliquam tellus felis, suscipit vitae ex vel, fringilla tempus massa. Nulla facilisi. Pellentesque lobortis consequat lectus. Maecenas ac libero elit.
|
||||
|
||||
Ut luctus dolor ut tortor hendrerit, sed hendrerit augue scelerisque. Suspendisse quis sodales dui, at tempus ante. Nulla at tempor metus. Aliquam vitae rutrum diam. Curabitur iaculis massa dui, quis varius nulla finibus a. Praesent eu blandit justo. Suspendisse pharetra, arcu in rhoncus rutrum, magna magna viverra erat, eget vestibulum enim tellus id dui. Nunc vel dui et arcu posuere maximus. Mauris quam quam, bibendum sed libero nec, tempus hendrerit arcu. Suspendisse sed gravida orci. Fusce tempor arcu ac est pretium porttitor. Aenean consequat risus venenatis sem aliquam, at sollicitudin nulla semper. Aenean bibendum cursus hendrerit. Nulla congue urna nec finibus bibendum. Donec porta tincidunt ligula non ultricies.
|
||||
|
||||
Sed vulputate tristique elit, eget pharetra elit sodales sed. Proin dignissim ipsum lorem, at porta eros malesuada sed. Proin tristique eros eu quam ornare, suscipit luctus mauris lobortis. Phasellus ut placerat enim. Donec egestas faucibus maximus. Nam quis efficitur eros. Cras tincidunt, lacus ac pretium porta, dui dolor varius elit, eget laoreet justo justo vitae metus. Morbi eget nisi ut ex scelerisque lobortis ut in lorem. Vestibulum et lorem quis ipsum feugiat varius. Mauris nec nulla viverra nisi porttitor efficitur. Morbi vel purus eleifend, finibus erat non, placerat ipsum. Mauris et augue vel nisi volutpat aliquam. Curabitur malesuada tortor est, at condimentum neque eleifend in.
|
||||
|
||||
Morbi id ornare lacus. Suspendisse ultrices rutrum posuere. Nullam porttitor libero quis ligula finibus semper. Mauris iaculis magna et nisl tristique, eget maximus ex feugiat. Nam eu felis leo. Quisque ultrices varius purus in molestie. Duis non accumsan ligula. Vivamus dignissim malesuada metus, vel hendrerit tellus viverra id. Curabitur posuere, mauris vitae dignissim dictum, velit mi condimentum lorem, nec varius velit arcu a mi. In dolor sapien, condimentum sed aliquam at, dignissim id purus. Cras lorem leo, vulputate ac ante sed, molestie tempus lectus. Curabitur efficitur libero quam, rhoncus faucibus libero pharetra nec. Curabitur lobortis ullamcorper nisl eu imperdiet. Duis porttitor interdum magna, ac eleifend orci consequat vitae. Aliquam augue felis, faucibus vel blandit sed, maximus non turpis.
|
||||
|
||||
<!-- more -->
|
||||
|
||||
Quisque viverra a eros id auctor. Proin id nibh ut nisl dignissim pellentesque et ac mi. Nullam mattis urna quis consequat bibendum. Donec pretium dui elit, a semper purus tristique et. Mauris euismod nisl eu vehicula facilisis. Maecenas facilisis non massa non scelerisque. Integer malesuada cursus erat eu viverra. Duis ligula mi, eleifend vel justo id, laoreet porttitor ex. Etiam ultricies lacus lorem, sed aliquam nulla blandit in. Maecenas vel facilisis neque, vitae fringilla eros. In justo nibh, pellentesque sed faucibus nec, varius sit amet risus.
|
|
@ -1,15 +1,15 @@
|
|||
+++
|
||||
title = "Dawn Showcase"
|
||||
date = 2022-04-18
|
||||
date = 2022-05-07
|
||||
[taxonomies]
|
||||
tags = ["zola", "theme", "showcase"]
|
||||
+++
|
||||
|
||||
Hi! This is a Showcase of the `Dawn` theme.
|
||||
|
||||
# Code:
|
||||
Code:
|
||||
|
||||
```rust
|
||||
```rust,linenos
|
||||
use std::error::Error;
|
||||
|
||||
#[derive(Debug)]
|
||||
|
@ -26,23 +26,27 @@ fn main() -> Result<(), Box<dyn Error>> {
|
|||
println!("{:?}", a);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
## Inline
|
||||
|
||||
`print("Hi")`
|
||||
Inline code: `print("Hi")`
|
||||
|
||||
### Typography
|
||||
Typography:
|
||||
|
||||
*Italic*, **Bold**, _**Italic Bold**_, [link](#)
|
||||
|
||||
# Header 1
|
||||
## Header 2
|
||||
### Header 3
|
||||
#### Header 4
|
||||
|
||||
#### Quote
|
||||
Quote:
|
||||
|
||||
> Helo
|
||||
> The world isn't perfect. But it's there for us, doing the best it can.
|
||||
That's what makes it so damn beautiful.
|
||||
|
||||
|
||||
# Lists
|
||||
Lists
|
||||
|
||||
- A
|
||||
- B
|
||||
|
@ -51,10 +55,24 @@ fn main() -> Result<(), Box<dyn Error>> {
|
|||
2. b
|
||||
3. c
|
||||
|
||||
Horizontal line:
|
||||
|
||||
---
|
||||
|
||||
fin post summary
|
||||
Here the post summary ends.
|
||||
|
||||
<!-- more -->
|
||||
|
||||
Next part
|
||||
fin post summary
|
||||
|
||||
Latex:
|
||||
|
||||
$$ \partial\partial\partial $$
|
||||
|
||||
{{ katex(body="3 + 4") }}
|
||||
|
||||
{{ katex(block=true, body="\KaTeX") }}
|
||||
|
||||
Images:
|
||||
|
||||
{{ image(src="/ferris.png", alt="Ferris", position="right", style="width: 20%; height: 20%;") }}
|
||||
|
|
113
content/theme.md
Normal file
113
content/theme.md
Normal file
|
@ -0,0 +1,113 @@
|
|||
+++
|
||||
title = "Dawn Theme"
|
||||
date = 2022-05-06
|
||||
[taxonomies]
|
||||
tags = ["description", "theme"]
|
||||
+++
|
||||
|
||||
# Dawn Theme
|
||||
|
||||
A clean and fresh blog theme for zola inspired by [rose pine dawn](https://rosepinetheme.com/).
|
||||
|
||||
|
||||
Features:
|
||||
- Simple
|
||||
- Mobile Friendly
|
||||
- Supports pagination, tags, and summaries
|
||||
- Completely customizable colors
|
||||
|
||||
Here is a [demo](https://dawn.evilmuff.in).
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```
|
||||
$ cd themes
|
||||
$ git clone https://git.evilmuff.in/evilmuffinha/dawn
|
||||
```
|
||||
|
||||
Set the theme value in `config.toml` to `dawn`.
|
||||
|
||||
This theme requires `tags` and also follows `rss`.
|
||||
|
||||
```toml
|
||||
taxonomies = [
|
||||
{name = "tags", feed = true }
|
||||
]
|
||||
```
|
||||
|
||||
<!-- more -->
|
||||
|
||||
## Customization
|
||||
|
||||
This theme requires a menu option. Set the `menu` field in `extra`.
|
||||
```toml
|
||||
menu = [
|
||||
{ name = "blog", url = "$BASE_URL" },
|
||||
{ name = "tags", url = "$BASE_URL/tags" },
|
||||
{ name = "archive", url = "$BASE_URL/archive" },
|
||||
{ name = "git", url = "https://git.evilmuff.in/evilmuffinha" },
|
||||
]
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
`author` is also required in extra for the copyright.
|
||||
|
||||
```toml
|
||||
author = "evilmuffinha"
|
||||
```
|
||||
|
||||
|
||||
### Title
|
||||
|
||||
Set the title with `title_text = "Dawn Theme"` in extra.
|
||||
|
||||
### Favicon
|
||||
|
||||
Set a favicon with the `favicon` key. You can also change the mimetype with `favicon_mimetype`.
|
||||
```toml
|
||||
favicon = "/favicon.png"
|
||||
favicon_mimetype = "image/png"
|
||||
```
|
||||
|
||||
### Colors
|
||||
|
||||
Dawn has full css color support. You can set any `base` color to change where it is used. Dawn is based on the Rose Pine Dawn theme, but any base16 colorscheme can be used.
|
||||
|
||||
```toml
|
||||
base00 = "#faf4ed" # Used for background
|
||||
base03 = "#9893a5" # Used for horizontal lines
|
||||
base04 = "#797593" # Used for tag text
|
||||
base05 = "#575279" # Used for foreground
|
||||
base09 = "#ea9d34" # Used for quote highlight color
|
||||
base0c = "#56949f" # Used for title
|
||||
base0d = "#286983" # Used for unvisited links
|
||||
base0e = "#907aa9" # Used for visited links
|
||||
```
|
||||
|
||||
### Post View Navigation
|
||||
|
||||
Postview navigation turns on navigation to previous or later posts after reading an article.
|
||||
```toml
|
||||
enable_postview = true
|
||||
```
|
||||
If enabled, you must set the postview prompt to show at the bottom of the screen (it can be blank).
|
||||
```toml
|
||||
postview_prompt = "Read more"
|
||||
```
|
||||
|
||||
### KaTeX
|
||||
|
||||
Katex can be enabled with `katex_enable = true`. You may also want to turn on `katex_auto_render = true` to replace things in `$$` with LaTeX.
|
||||
|
||||
## Shortcodes
|
||||
|
||||
The `katex()` shortcode can be used to render katex without autorender. This can be done as follows:
|
||||
- {{ katex(body="3 + 4") }}
|
||||
- {{ katex(body="3 + 4", block=true) }}
|
||||
|
||||
The `image()` shortcode can be used to embed images in markdown as follows:
|
||||
{{ image(src="/ferris.png", alt="Alternate text", position="left", style="width: 20%; height: 20%;") }}
|
||||
|
||||
Position can be either `left`, `center`, or `right`. Style allows you to embed css for the image.
|
19
content/third.md
Normal file
19
content/third.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
+++
|
||||
title = "Third filler..."
|
||||
date = 2022-05-03
|
||||
[taxonomies]
|
||||
tags = ["filler"]
|
||||
+++
|
||||
|
||||
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc eu feugiat sapien. Aenean ligula nunc, laoreet id sem in, interdum bibendum felis. Donec vel dui neque. Praesent ac sem ut justo volutpat rutrum a imperdiet tellus. Nam lobortis massa non hendrerit hendrerit. Vivamus porttitor dignissim turpis, eget aliquam urna tincidunt non. Aliquam et fringilla turpis. Nullam eros est, eleifend in ornare sed, hendrerit eget est. Aliquam tellus felis, suscipit vitae ex vel, fringilla tempus massa. Nulla facilisi. Pellentesque lobortis consequat lectus. Maecenas ac libero elit.
|
||||
|
||||
Ut luctus dolor ut tortor hendrerit, sed hendrerit augue scelerisque. Suspendisse quis sodales dui, at tempus ante. Nulla at tempor metus. Aliquam vitae rutrum diam. Curabitur iaculis massa dui, quis varius nulla finibus a. Praesent eu blandit justo. Suspendisse pharetra, arcu in rhoncus rutrum, magna magna viverra erat, eget vestibulum enim tellus id dui. Nunc vel dui et arcu posuere maximus. Mauris quam quam, bibendum sed libero nec, tempus hendrerit arcu. Suspendisse sed gravida orci. Fusce tempor arcu ac est pretium porttitor. Aenean consequat risus venenatis sem aliquam, at sollicitudin nulla semper. Aenean bibendum cursus hendrerit. Nulla congue urna nec finibus bibendum. Donec porta tincidunt ligula non ultricies.
|
||||
|
||||
Sed vulputate tristique elit, eget pharetra elit sodales sed. Proin dignissim ipsum lorem, at porta eros malesuada sed. Proin tristique eros eu quam ornare, suscipit luctus mauris lobortis. Phasellus ut placerat enim. Donec egestas faucibus maximus. Nam quis efficitur eros. Cras tincidunt, lacus ac pretium porta, dui dolor varius elit, eget laoreet justo justo vitae metus. Morbi eget nisi ut ex scelerisque lobortis ut in lorem. Vestibulum et lorem quis ipsum feugiat varius. Mauris nec nulla viverra nisi porttitor efficitur. Morbi vel purus eleifend, finibus erat non, placerat ipsum. Mauris et augue vel nisi volutpat aliquam. Curabitur malesuada tortor est, at condimentum neque eleifend in.
|
||||
|
||||
Morbi id ornare lacus. Suspendisse ultrices rutrum posuere. Nullam porttitor libero quis ligula finibus semper. Mauris iaculis magna et nisl tristique, eget maximus ex feugiat. Nam eu felis leo. Quisque ultrices varius purus in molestie. Duis non accumsan ligula. Vivamus dignissim malesuada metus, vel hendrerit tellus viverra id. Curabitur posuere, mauris vitae dignissim dictum, velit mi condimentum lorem, nec varius velit arcu a mi. In dolor sapien, condimentum sed aliquam at, dignissim id purus. Cras lorem leo, vulputate ac ante sed, molestie tempus lectus. Curabitur efficitur libero quam, rhoncus faucibus libero pharetra nec. Curabitur lobortis ullamcorper nisl eu imperdiet. Duis porttitor interdum magna, ac eleifend orci consequat vitae. Aliquam augue felis, faucibus vel blandit sed, maximus non turpis.
|
||||
|
||||
<!-- more -->
|
||||
|
||||
Quisque viverra a eros id auctor. Proin id nibh ut nisl dignissim pellentesque et ac mi. Nullam mattis urna quis consequat bibendum. Donec pretium dui elit, a semper purus tristique et. Mauris euismod nisl eu vehicula facilisis. Maecenas facilisis non massa non scelerisque. Integer malesuada cursus erat eu viverra. Duis ligula mi, eleifend vel justo id, laoreet porttitor ex. Etiam ultricies lacus lorem, sed aliquam nulla blandit in. Maecenas vel facilisis neque, vitae fringilla eros. In justo nibh, pellentesque sed faucibus nec, varius sit amet risus.
|
BIN
screenshot.png
Normal file
BIN
screenshot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 119 KiB |
BIN
static/ferris.png
Normal file
BIN
static/ferris.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 32 KiB |
560
syntax/oceanicnext.tmTheme
Normal file
560
syntax/oceanicnext.tmTheme
Normal file
|
@ -0,0 +1,560 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>author</key>
|
||||
<string>Template: Chris Kempson, Scheme: https://github.com/voronianski/oceanic-next-color-scheme</string>
|
||||
<key>name</key>
|
||||
<string>Base16 OceanicNext</string>
|
||||
<key>semanticClass</key>
|
||||
<string>theme.base16./home/emh/.local/share/themectl/schemes/oceanicnext.yaml</string>
|
||||
<key>colorSpaceName</key>
|
||||
<string>sRGB</string>
|
||||
<key>gutterSettings</key>
|
||||
<dict>
|
||||
<key>background</key>
|
||||
<string>#343D46</string>
|
||||
<key>divider</key>
|
||||
<string>#343D46</string>
|
||||
<key>foreground</key>
|
||||
<string>#65737E</string>
|
||||
<key>selectionBackground</key>
|
||||
<string>#4F5B66</string>
|
||||
<key>selectionForeground</key>
|
||||
<string>#A7ADBA</string>
|
||||
</dict>
|
||||
<key>settings</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>background</key>
|
||||
<string>#1B2B34</string>
|
||||
<key>caret</key>
|
||||
<string>#C0C5CE</string>
|
||||
<key>foreground</key>
|
||||
<string>#C0C5CE</string>
|
||||
<key>invisibles</key>
|
||||
<string>#65737E</string>
|
||||
<key>lineHighlight</key>
|
||||
<string>#65737E55</string>
|
||||
<key>selection</key>
|
||||
<string>#4F5B66</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Text</string>
|
||||
<key>scope</key>
|
||||
<string>variable.parameter.function</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#C0C5CE</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Comments</string>
|
||||
<key>scope</key>
|
||||
<string>comment, punctuation.definition.comment</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#65737E</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Punctuation</string>
|
||||
<key>scope</key>
|
||||
<string>punctuation.definition.string, punctuation.definition.variable, punctuation.definition.string, punctuation.definition.parameters, punctuation.definition.string, punctuation.definition.array</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#C0C5CE</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Delimiters</string>
|
||||
<key>scope</key>
|
||||
<string>none</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#C0C5CE</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Operators</string>
|
||||
<key>scope</key>
|
||||
<string>keyword.operator</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#C0C5CE</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Keywords</string>
|
||||
<key>scope</key>
|
||||
<string>keyword</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#C594C5</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Variables</string>
|
||||
<key>scope</key>
|
||||
<string>variable</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#EC5f67</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Functions</string>
|
||||
<key>scope</key>
|
||||
<string>entity.name.function, meta.require, support.function.any-method</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#6699CC</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Labels</string>
|
||||
<key>scope</key>
|
||||
<string>entity.name.label</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#AB7967</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Classes</string>
|
||||
<key>scope</key>
|
||||
<string>support.class, entity.name.class, entity.name.type.class</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#FAC863</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Classes</string>
|
||||
<key>scope</key>
|
||||
<string>meta.class</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#D8DEE9</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Methods</string>
|
||||
<key>scope</key>
|
||||
<string>keyword.other.special-method</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#6699CC</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Storage</string>
|
||||
<key>scope</key>
|
||||
<string>storage</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#C594C5</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Support</string>
|
||||
<key>scope</key>
|
||||
<string>support.function</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#5FB3B3</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Strings, Inherited Class</string>
|
||||
<key>scope</key>
|
||||
<string>string, constant.other.symbol, entity.other.inherited-class</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#99C794</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Integers</string>
|
||||
<key>scope</key>
|
||||
<string>constant.numeric</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#F99157</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Floats</string>
|
||||
<key>scope</key>
|
||||
<string>none</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#F99157</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Boolean</string>
|
||||
<key>scope</key>
|
||||
<string>none</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#F99157</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Constants</string>
|
||||
<key>scope</key>
|
||||
<string>constant</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#F99157</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Tags</string>
|
||||
<key>scope</key>
|
||||
<string>entity.name.tag</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#EC5f67</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Attributes</string>
|
||||
<key>scope</key>
|
||||
<string>entity.other.attribute-name</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#F99157</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Attribute IDs</string>
|
||||
<key>scope</key>
|
||||
<string>entity.other.attribute-name.id, punctuation.definition.entity</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#6699CC</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Selector</string>
|
||||
<key>scope</key>
|
||||
<string>meta.selector</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#C594C5</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Values</string>
|
||||
<key>scope</key>
|
||||
<string>none</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#F99157</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Headings</string>
|
||||
<key>scope</key>
|
||||
<string>markup.heading punctuation.definition.heading, entity.name.section</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>fontStyle</key>
|
||||
<string></string>
|
||||
<key>foreground</key>
|
||||
<string>#6699CC</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Units</string>
|
||||
<key>scope</key>
|
||||
<string>keyword.other.unit</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#F99157</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Bold</string>
|
||||
<key>scope</key>
|
||||
<string>markup.bold, punctuation.definition.bold</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>fontStyle</key>
|
||||
<string>bold</string>
|
||||
<key>foreground</key>
|
||||
<string>#FAC863</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Italic</string>
|
||||
<key>scope</key>
|
||||
<string>markup.italic, punctuation.definition.italic</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>fontStyle</key>
|
||||
<string>italic</string>
|
||||
<key>foreground</key>
|
||||
<string>#C594C5</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Code</string>
|
||||
<key>scope</key>
|
||||
<string>markup.raw.inline</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#99C794</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Link Text</string>
|
||||
<key>scope</key>
|
||||
<string>string.other.link, punctuation.definition.string.end.markdown, punctuation.definition.string.begin.markdown</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#EC5f67</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Link Url</string>
|
||||
<key>scope</key>
|
||||
<string>meta.link</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#F99157</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Lists</string>
|
||||
<key>scope</key>
|
||||
<string>markup.list</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#EC5f67</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Quotes</string>
|
||||
<key>scope</key>
|
||||
<string>markup.quote</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#F99157</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Separator</string>
|
||||
<key>scope</key>
|
||||
<string>meta.separator</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>background</key>
|
||||
<string>#4F5B66</string>
|
||||
<key>foreground</key>
|
||||
<string>#C0C5CE</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Inserted</string>
|
||||
<key>scope</key>
|
||||
<string>markup.inserted</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#99C794</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Deleted</string>
|
||||
<key>scope</key>
|
||||
<string>markup.deleted</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#EC5f67</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Changed</string>
|
||||
<key>scope</key>
|
||||
<string>markup.changed</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#C594C5</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Colors</string>
|
||||
<key>scope</key>
|
||||
<string>constant.other.color</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#5FB3B3</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Regular Expressions</string>
|
||||
<key>scope</key>
|
||||
<string>string.regexp</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#5FB3B3</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Escape Characters</string>
|
||||
<key>scope</key>
|
||||
<string>constant.character.escape</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#5FB3B3</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Embedded</string>
|
||||
<key>scope</key>
|
||||
<string>punctuation.section.embedded, variable.interpolation</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#C594C5</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Illegal</string>
|
||||
<key>scope</key>
|
||||
<string>invalid.illegal</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>background</key>
|
||||
<string>#EC5f67</string>
|
||||
<key>foreground</key>
|
||||
<string>#D8DEE9</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Broken</string>
|
||||
<key>scope</key>
|
||||
<string>invalid.broken</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>background</key>
|
||||
<string>#F99157</string>
|
||||
<key>foreground</key>
|
||||
<string>#1B2B34</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Deprecated</string>
|
||||
<key>scope</key>
|
||||
<string>invalid.deprecated</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>background</key>
|
||||
<string>#AB7967</string>
|
||||
<key>foreground</key>
|
||||
<string>#D8DEE9</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Unimplemented</string>
|
||||
<key>scope</key>
|
||||
<string>invalid.unimplemented</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>background</key>
|
||||
<string>#65737E</string>
|
||||
<key>foreground</key>
|
||||
<string>#D8DEE9</string>
|
||||
</dict>
|
||||
</dict>
|
||||
</array>
|
||||
<key>uuid</key>
|
||||
<string>uuid</string>
|
||||
</dict>
|
||||
</plist>
|
11
templates/archive.html
Normal file
11
templates/archive.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
{% extends "index.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="post">
|
||||
<h1 class="post_title"><a class="post_link" href="{{ page.permalink | safe }}">{{ page.title }}</a></h1>
|
||||
|
||||
{% set section = get_section(path="_index.md") %}
|
||||
|
||||
{{ post::list(pages=section.pages) }}
|
||||
</div>
|
||||
{% endblock content %}
|
|
@ -1,12 +1,28 @@
|
|||
{% import "post.html" as post -%}
|
||||
<!-- vim: set ft=html: -->
|
||||
|
||||
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="{%- if config.default_language -%}{{ config.default_language }}{%- else -%}en{%- endif -%}">
|
||||
<head>
|
||||
<title>{%- block title %}{{ config.title }}{% endblock title -%}</title>
|
||||
{%- if config.generate_rss %}
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
||||
|
||||
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ get_url(path="rss.xml") | safe }}">
|
||||
{%- endif %}
|
||||
|
||||
{% if config.extra.katex_enable %}
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/katex.min.css" integrity="sha384-9eLZqc9ds8eNjO3TmqPeYcDj8n+Qfa4nuSiGYa6DjLNcv9BtN69ZIulL9+8CqC9Y" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/katex.min.css" integrity="sha384-9eLZqc9ds8eNjO3TmqPeYcDj8n+Qfa4nuSiGYa6DjLNcv9BtN69ZIulL9+8CqC9Y" crossorigin="anonymous">
|
||||
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/katex.min.js" integrity="sha384-K3vbOmF2BtaVai+Qk37uypf7VrgBubhQreNQe9aGsz9lB63dIFiQVlJbr92dw2Lx" crossorigin="anonymous"></script>
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/contrib/mathtex-script-type.min.js" integrity="sha384-zWYbd0NBwgTsgIdFKVprSfTh1mbMPe5Hz1X3yY4Sd1h/K1cQoUe36OGwAGz/PcDy" crossorigin="anonymous"></script>
|
||||
{% if config.extra.katex_auto_render %}
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/contrib/auto-render.min.js" integrity="sha384-kmZOZB5ObwgQnS/DuDg6TScgOiWWBiVt0plIRkZCmE6rDZGrEOQeHM5PcHi+nyqe" crossorigin="anonymous"
|
||||
onload="renderMathInElement(document.body);"></script>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
{%- if config.extra.favicon %}
|
||||
<link rel="shortcut icon" type="{{ config.extra.favicon_mimetype | default(value="image/x-icon") }}" href="{{ config.extra.favicon | safe }}">
|
||||
|
@ -17,11 +33,10 @@
|
|||
<style>
|
||||
@font-face {
|
||||
font-family: "UtsukushiMincho";
|
||||
src: url(UtsukushiMincho.ttf);
|
||||
src: url(/UtsukushiMincho.ttf);
|
||||
}
|
||||
|
||||
body {
|
||||
|
||||
font-family: UtsukushiMincho;
|
||||
{%- if config.extra.base00 %}
|
||||
background-color: {{ config.extra.base00 }};
|
||||
|
@ -34,27 +49,47 @@
|
|||
{% else %}
|
||||
color: #575279;
|
||||
{% endif -%}
|
||||
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
align-content: center;
|
||||
flex-direction: column;
|
||||
text-size-adjust: none;
|
||||
-webkit-text-size-adjust: none;
|
||||
-moz-text-size-adjust: none;
|
||||
-ms-text-size-adjust: none;
|
||||
}
|
||||
|
||||
.main {
|
||||
width: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 992px) {
|
||||
.main {
|
||||
width: 90%;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.header_title {
|
||||
font-weight: bolder;
|
||||
font-size: 2.5rem;
|
||||
font-size: 44.8px;
|
||||
|
||||
}
|
||||
|
||||
.header {
|
||||
|
||||
width: 50%;
|
||||
width: 100%;
|
||||
margin-top: 7rem;
|
||||
padding-top: 1rem;
|
||||
padding-left: 1rem;
|
||||
padding-bottom: 1.5rem;
|
||||
border-radius: 5px;
|
||||
{%- if config.extra.base00 %}
|
||||
border: solid {{ config.extra.base00 }};
|
||||
{%- if config.extra.base05 %}
|
||||
border: solid {{ config.extra.base05 }};
|
||||
{% else %}
|
||||
border: solid #575279;
|
||||
{% endif -%}
|
||||
|
@ -70,6 +105,7 @@
|
|||
padding-left: 0.3rem;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
text-size-adjust: none;
|
||||
}
|
||||
|
||||
.menu_list {
|
||||
|
@ -78,15 +114,6 @@
|
|||
|
||||
.menu_item {
|
||||
|
||||
{%- if config.extra.base0d %}
|
||||
color: {{ config.extra.base0d }};
|
||||
{% else %}
|
||||
color: #286983;
|
||||
{% endif -%}
|
||||
}
|
||||
|
||||
.menu_item:visited {
|
||||
|
||||
{%- if config.extra.base0e %}
|
||||
color: {{ config.extra.base0e }};
|
||||
{% else %}
|
||||
|
@ -94,10 +121,250 @@
|
|||
{% endif -%}
|
||||
}
|
||||
|
||||
.pagination {
|
||||
margin-top: 50px;
|
||||
}
|
||||
|
||||
.pagination_buttons {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.pag_button {
|
||||
border-radius: 10px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 1.1rem;
|
||||
appearance: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.button_text {
|
||||
padding: 8px 16px;
|
||||
text-decoration: none;
|
||||
{%- if config.extra.base0d %}
|
||||
color: {{ config.extra.base0d }};
|
||||
{% else %}
|
||||
color: #286983;
|
||||
{% endif -%}
|
||||
}
|
||||
|
||||
.footer {
|
||||
width: 100%;
|
||||
flex-grow: 0;
|
||||
padding: 40px 0;
|
||||
}
|
||||
|
||||
.arial {
|
||||
font-family: Arial;
|
||||
}
|
||||
|
||||
.content {
|
||||
width: 100%;
|
||||
}
|
||||
.post {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.post_contents a {
|
||||
{%- if config.extra.base0d %}
|
||||
color: {{ config.extra.base0d }};
|
||||
{% else %}
|
||||
color: #286983;
|
||||
{% endif -%}
|
||||
}
|
||||
|
||||
.post_contents a:visited {
|
||||
{%- if config.extra.base0e %}
|
||||
color: {{ config.extra.base0e }};
|
||||
{% else %}
|
||||
color: #907aa9;
|
||||
{% endif -%}
|
||||
}
|
||||
|
||||
.post_contents pre {
|
||||
padding: 12px;
|
||||
overflow: auto;
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.post_contents pre[data-linenos] {
|
||||
padding: 12px 0;
|
||||
}
|
||||
|
||||
.post_contents pre table td {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.post_contents pre table td:nth-of-type(1) {
|
||||
text-align: center;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.post_contents pre mark {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.post_contents pre table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.post_contents img {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.post_contents img.left {
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.post_contents img.center {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.post_contents img.right {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.post_contents blockquote {
|
||||
{%- if config.extra.base09 %}
|
||||
border-left: 3px solid {{ config.extra.base09 }};
|
||||
{% else %}
|
||||
border-left: 3px solid #ea9d34;
|
||||
{% endif -%}
|
||||
padding-left: 10px;
|
||||
margin-left: 0px;
|
||||
}
|
||||
|
||||
hr {
|
||||
border: none;
|
||||
height: 1px;
|
||||
{%- if config.extra.base03 %}
|
||||
background: {{ config.extra.base03 }};
|
||||
{% else %}
|
||||
background: #9893a5;
|
||||
{% endif -%}
|
||||
|
||||
}
|
||||
|
||||
.post_link {
|
||||
{%- if config.extra.base0c %}
|
||||
color: {{ config.extra.base0c }};
|
||||
{% else %}
|
||||
color: #56949f;
|
||||
{% endif -%}
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.post_title {
|
||||
font-weight: bolder;
|
||||
font-size: 2.2rem;
|
||||
padding-bottom: 10px;
|
||||
padding-top: 25px;
|
||||
{%- if config.extra.base0c %}
|
||||
border-bottom: 2px solid {{ config.extra.base0c }};
|
||||
{% else %}
|
||||
border-bottom: 2px solid #56949f;
|
||||
{% endif -%}
|
||||
}
|
||||
|
||||
.post_meta {
|
||||
font-weight: bold;
|
||||
{%- if config.extra.base04 %}
|
||||
color: {{ config.extra.base04 }};
|
||||
{% else %}
|
||||
color: #797593;
|
||||
{% endif -%}
|
||||
}
|
||||
|
||||
.post_tag {
|
||||
{%- if config.extra.base04 %}
|
||||
color: {{ config.extra.base04 }};
|
||||
{% else %}
|
||||
color: #797593;
|
||||
{% endif -%}
|
||||
}
|
||||
|
||||
.post_list_link {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.post_date {
|
||||
{%- if config.extra.base0c %}
|
||||
color: {{ config.extra.base0c }};
|
||||
{% else %}
|
||||
color: #56949f;
|
||||
{% endif -%}
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.post_list_title {
|
||||
{%- if config.extra.base05 %}
|
||||
color: {{ config.extra.base05 }};
|
||||
{% else %}
|
||||
color: #575279;
|
||||
{% endif -%}
|
||||
}
|
||||
|
||||
.show_all_tags {
|
||||
font-weight: bold;
|
||||
{%- if config.extra.base05 %}
|
||||
color: {{ config.extra.base05 }};
|
||||
{% else %}
|
||||
color: #575279;
|
||||
{% endif -%}
|
||||
}
|
||||
|
||||
.tag_list {
|
||||
list-style: none;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.tag_item {
|
||||
font-weight: bold;
|
||||
{%- if config.extra.base04 %}
|
||||
color: {{ config.extra.base04 }};
|
||||
{% else %}
|
||||
color: #797593;
|
||||
{% endif -%}
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.button_read_more {
|
||||
float: right;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.pagination_link {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.postview_title_text {
|
||||
padding: 5px 10px;
|
||||
margin: 0;
|
||||
font-size: 0.9rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.2rem;
|
||||
text-align: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
|
||||
.pagination_title {
|
||||
display: grid;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="main">
|
||||
{% block header %}
|
||||
<div class="header">
|
||||
|
||||
|
@ -131,5 +398,60 @@
|
|||
|
||||
</div>
|
||||
{% endblock header %}
|
||||
|
||||
|
||||
<div class="content">
|
||||
{% block content %}
|
||||
<div class="posts">
|
||||
{%- if paginator %}
|
||||
{%- set show_pages = paginator.pages -%}
|
||||
{% else %}
|
||||
{%- set show_pages = section.pages -%}
|
||||
{% endif -%}
|
||||
|
||||
{%- for page in show_pages %}
|
||||
<div class="post on-list">
|
||||
{{ post::header(page=page, summary=true) }}
|
||||
{{ post::content(page=page, summary=true) }}
|
||||
</div>
|
||||
{% endfor -%}
|
||||
|
||||
<div class="pagination">
|
||||
<div class="pagination_buttons">
|
||||
{%- if paginator.previous %}
|
||||
<span class="pag_button next">
|
||||
<a class="pagination_link" href="{{paginator.previous | safe }}">
|
||||
<span class="button_text"><span class="arial">⇐</span> Newer posts</span>
|
||||
</a>
|
||||
</span>
|
||||
{% endif -%}
|
||||
{%- if paginator.next %}
|
||||
<span class="pag_button previous">
|
||||
<a class="pagination_link" href="{{paginator.next | safe }}">
|
||||
<span class="button_text">Older posts <span class="arial">⇒</span></span>
|
||||
</a>
|
||||
</span>
|
||||
{% endif -%}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock content %}
|
||||
</div>
|
||||
|
||||
{% block footer %}
|
||||
<footer class="footer">
|
||||
<div class="footer_inner">
|
||||
{%- if config.extra.extra_copyright %}
|
||||
<div class="copyright">{{ config.extra.extra_copyright | safe }}</div>
|
||||
{% else %}
|
||||
<div class="copyright">
|
||||
<span>
|
||||
<span class="arial">©</span> {{ now() | date(format="%Y") }} {{ config.extra.author }}</span>
|
||||
</div>
|
||||
{% endif -%}
|
||||
</div>
|
||||
</footer>
|
||||
{% endblock footer %}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
9
templates/page.html
Normal file
9
templates/page.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
{% extends "index.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="post">
|
||||
{{ post::header(page=page) }}
|
||||
{{ post::content(page=page, summary=false) }}
|
||||
{{ post::postview(page=page) }}
|
||||
</div>
|
||||
{% endblock content %}
|
92
templates/post.html
Normal file
92
templates/post.html
Normal file
|
@ -0,0 +1,92 @@
|
|||
{% macro content(page, summary) %}
|
||||
{%- if summary and page.summary %}
|
||||
<div class="post">
|
||||
<div class="post_contents">
|
||||
{{ page.summary | safe }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="read_more">
|
||||
<a class="button_read_more" href="{{ page.permalink | safe }}">
|
||||
<span class="button_text">Read More</span>
|
||||
</a>
|
||||
</div>
|
||||
<br>
|
||||
<hr>
|
||||
{% else %}
|
||||
<div class="post">
|
||||
<div class="post_contents">
|
||||
{{ page.content | safe }}
|
||||
</div>
|
||||
</div>
|
||||
{% endif -%}
|
||||
{% endmacro content %}
|
||||
|
||||
{% macro header(page) %}
|
||||
<h1 class="post_title"><a class="post_link" href="{{ page.permalink | safe }}">{{ page.title }}</a></h1>
|
||||
<div class="post_meta">
|
||||
{{ post::date(page=page) }}
|
||||
{{ post::tags(page=page) }}
|
||||
</div>
|
||||
{% endmacro header %}
|
||||
|
||||
{% macro date(page) %}
|
||||
<span class="post_date">
|
||||
{%- if page.date %}
|
||||
{{ page.date | date(format="%Y-%m-%d") }}
|
||||
{% endif -%}
|
||||
</span>
|
||||
{% endmacro post_date %}
|
||||
|
||||
{% macro postview(page) %}
|
||||
{%- if config.extra.enable_postview %}
|
||||
<div class="pagination">
|
||||
<div class="pagination_title">
|
||||
<span class="postview_title_text">{{ config.extra.postview_prompt }}</span>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="pagination_buttons">
|
||||
{%- if page.later %}
|
||||
<span class="pag_button previous">
|
||||
<a class="pagination_link" href="{{ page.later.permalink | safe }}">
|
||||
<span class="button_text"><span class="arial">⇐</span> {{ page.later.title }}</span>
|
||||
</a>
|
||||
</span>
|
||||
{% endif %}
|
||||
{%- if page.earlier %}
|
||||
<span class="pag_button next">
|
||||
<a class="pagination_link" href="{{ page.earlier.permalink | safe }}">
|
||||
<span class="button_text">{{ page.earlier.title }} <span class="arial">⇒</span></span>
|
||||
</a>
|
||||
</span>
|
||||
{% endif -%}
|
||||
</div>
|
||||
</div>
|
||||
{% endif -%}
|
||||
{% endmacro postview %}
|
||||
|
||||
{% macro tags(page) %}
|
||||
{%- if page.taxonomies and page.taxonomies.tags %}
|
||||
<span class="post_tags_inline">
|
||||
|
|
||||
{%- for tag in page.taxonomies.tags %}
|
||||
<a class="post_tag" href="{{ get_taxonomy_url(kind='tags', name=tag) | safe }}">::{{ tag }}</a>
|
||||
{%- if not loop.last %} {% endif -%}
|
||||
{% endfor -%}
|
||||
</span>
|
||||
{% endif -%}
|
||||
{% endmacro tags %}
|
||||
|
||||
{% macro list(pages) %}
|
||||
<ul class="post_list">
|
||||
{%- for page in pages %}
|
||||
{%- if page.draft %}
|
||||
{% continue %}
|
||||
{% endif -%}
|
||||
<li class="post_list_item">
|
||||
<a class="post_list_link" href="{{ page.permalink | safe }}">
|
||||
<span class="post_date">{{ page.date }}</span><span class="post_list_title"> :: {{ page.title }}</span>
|
||||
</a>
|
||||
</li>
|
||||
{% endfor -%}
|
||||
</ul>
|
||||
{% endmacro list %}
|
3
templates/shortcodes/image.html
Normal file
3
templates/shortcodes/image.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
{% if src %}
|
||||
<img src="{{ src | safe }}"{% if alt %} alt="{{ alt }}"{% endif %} class="{% if position %}{{ position }}{% else -%} center {%- endif %}" {%- if style %} style="{{ style | safe }}" {%- endif %} />
|
||||
{% endif %}
|
1
templates/shortcodes/katex.html
Normal file
1
templates/shortcodes/katex.html
Normal file
|
@ -0,0 +1 @@
|
|||
<script type="math/tex{% if block %};mode=display{% endif %}">{{body | safe}}</script>
|
17
templates/tags/list.html
Normal file
17
templates/tags/list.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
{% extends "index.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="post">
|
||||
<h1 class="post_title">all tags</h1>
|
||||
|
||||
<ul class="tag_list">
|
||||
{% for term in terms %}
|
||||
<li class="tag_list_item">
|
||||
<a class = "tag_item" href="{{ term.permalink | safe }}">
|
||||
:: {{ term.name }} ({{ term.pages | length }} post{{ term.pages | length | pluralize }})
|
||||
</a>
|
||||
</li>
|
||||
{% endfor -%}
|
||||
<ul>
|
||||
</div>
|
||||
{% endblock content %}
|
16
templates/tags/single.html
Normal file
16
templates/tags/single.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
{% extends "index.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="post">
|
||||
<h1 class="post_title">
|
||||
::{{ term.name }}
|
||||
</h1>
|
||||
|
||||
<a class="show_all_tags" href="{{ config.base_url | safe }}/tags">
|
||||
see all tags
|
||||
</a>
|
||||
|
||||
{{ post::list(pages=term.pages) }}
|
||||
|
||||
</div>
|
||||
{% endblock content %}
|
13
theme.toml
Normal file
13
theme.toml
Normal file
|
@ -0,0 +1,13 @@
|
|||
name = "dawn"
|
||||
description = "fresh quirky i got nothin"
|
||||
license = "MIT"
|
||||
homepage = "https://git.evilmuff.in/evilmuffinha/dawn"
|
||||
|
||||
min_version = "0.15.3"
|
||||
|
||||
demo = "https://dawn.evilmuff.in"
|
||||
|
||||
|
||||
[author]
|
||||
name = "evilmuffinha"
|
||||
homepage = "https://evilmuff.in"
|
Loading…
Reference in New Issue
Block a user