diff --git a/README.md b/README.md new file mode 100644 index 0000000..94c2f4c --- /dev/null +++ b/README.md @@ -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 } +] +``` + + + +## 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. diff --git a/config.toml b/config.toml index ed8ecce..3daa2d9 100644 --- a/config.toml +++ b/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" diff --git a/content/fourth.md b/content/fourth.md new file mode 100644 index 0000000..de0f276 --- /dev/null +++ b/content/fourth.md @@ -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. + + + +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. diff --git a/content/pages/_index.md b/content/pages/_index.md new file mode 100644 index 0000000..800a244 --- /dev/null +++ b/content/pages/_index.md @@ -0,0 +1,3 @@ ++++ +render = false ++++ diff --git a/content/pages/archive.md b/content/pages/archive.md new file mode 100644 index 0000000..a132e75 --- /dev/null +++ b/content/pages/archive.md @@ -0,0 +1,5 @@ ++++ +path = "archive" +template = "archive.html" +title = "blog archive" ++++ diff --git a/content/second.md b/content/second.md new file mode 100644 index 0000000..c60a6e7 --- /dev/null +++ b/content/second.md @@ -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. + + + +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. diff --git a/content/showcase.md b/content/showcase.md index 9d80f29..286ea3c 100644 --- a/content/showcase.md +++ b/content/showcase.md @@ -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> { println!("{:?}", a); Ok(()) } -``` -## Inline +``` -`print("Hi")` -### Typography +Inline code: `print("Hi")` + +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> { 2. b 3. c +Horizontal line: + --- - fin post summary +Here the post summary ends. - 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%;") }} diff --git a/content/theme.md b/content/theme.md new file mode 100644 index 0000000..42bdd96 --- /dev/null +++ b/content/theme.md @@ -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 } +] +``` + + + +## 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. diff --git a/content/third.md b/content/third.md new file mode 100644 index 0000000..094f1fb --- /dev/null +++ b/content/third.md @@ -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. + + + +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. diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..1c0ee7f Binary files /dev/null and b/screenshot.png differ diff --git a/static/ferris.png b/static/ferris.png new file mode 100644 index 0000000..ebce1a1 Binary files /dev/null and b/static/ferris.png differ diff --git a/syntax/oceanicnext.tmTheme b/syntax/oceanicnext.tmTheme new file mode 100644 index 0000000..95c0b6b --- /dev/null +++ b/syntax/oceanicnext.tmTheme @@ -0,0 +1,560 @@ + + + + + author + Template: Chris Kempson, Scheme: https://github.com/voronianski/oceanic-next-color-scheme + name + Base16 OceanicNext + semanticClass + theme.base16./home/emh/.local/share/themectl/schemes/oceanicnext.yaml + colorSpaceName + sRGB + gutterSettings + + background + #343D46 + divider + #343D46 + foreground + #65737E + selectionBackground + #4F5B66 + selectionForeground + #A7ADBA + + settings + + + settings + + background + #1B2B34 + caret + #C0C5CE + foreground + #C0C5CE + invisibles + #65737E + lineHighlight + #65737E55 + selection + #4F5B66 + + + + name + Text + scope + variable.parameter.function + settings + + foreground + #C0C5CE + + + + name + Comments + scope + comment, punctuation.definition.comment + settings + + foreground + #65737E + + + + name + Punctuation + scope + punctuation.definition.string, punctuation.definition.variable, punctuation.definition.string, punctuation.definition.parameters, punctuation.definition.string, punctuation.definition.array + settings + + foreground + #C0C5CE + + + + name + Delimiters + scope + none + settings + + foreground + #C0C5CE + + + + name + Operators + scope + keyword.operator + settings + + foreground + #C0C5CE + + + + name + Keywords + scope + keyword + settings + + foreground + #C594C5 + + + + name + Variables + scope + variable + settings + + foreground + #EC5f67 + + + + name + Functions + scope + entity.name.function, meta.require, support.function.any-method + settings + + foreground + #6699CC + + + + name + Labels + scope + entity.name.label + settings + + foreground + #AB7967 + + + + name + Classes + scope + support.class, entity.name.class, entity.name.type.class + settings + + foreground + #FAC863 + + + + name + Classes + scope + meta.class + settings + + foreground + #D8DEE9 + + + + name + Methods + scope + keyword.other.special-method + settings + + foreground + #6699CC + + + + name + Storage + scope + storage + settings + + foreground + #C594C5 + + + + name + Support + scope + support.function + settings + + foreground + #5FB3B3 + + + + name + Strings, Inherited Class + scope + string, constant.other.symbol, entity.other.inherited-class + settings + + foreground + #99C794 + + + + name + Integers + scope + constant.numeric + settings + + foreground + #F99157 + + + + name + Floats + scope + none + settings + + foreground + #F99157 + + + + name + Boolean + scope + none + settings + + foreground + #F99157 + + + + name + Constants + scope + constant + settings + + foreground + #F99157 + + + + name + Tags + scope + entity.name.tag + settings + + foreground + #EC5f67 + + + + name + Attributes + scope + entity.other.attribute-name + settings + + foreground + #F99157 + + + + name + Attribute IDs + scope + entity.other.attribute-name.id, punctuation.definition.entity + settings + + foreground + #6699CC + + + + name + Selector + scope + meta.selector + settings + + foreground + #C594C5 + + + + name + Values + scope + none + settings + + foreground + #F99157 + + + + name + Headings + scope + markup.heading punctuation.definition.heading, entity.name.section + settings + + fontStyle + + foreground + #6699CC + + + + name + Units + scope + keyword.other.unit + settings + + foreground + #F99157 + + + + name + Bold + scope + markup.bold, punctuation.definition.bold + settings + + fontStyle + bold + foreground + #FAC863 + + + + name + Italic + scope + markup.italic, punctuation.definition.italic + settings + + fontStyle + italic + foreground + #C594C5 + + + + name + Code + scope + markup.raw.inline + settings + + foreground + #99C794 + + + + name + Link Text + scope + string.other.link, punctuation.definition.string.end.markdown, punctuation.definition.string.begin.markdown + settings + + foreground + #EC5f67 + + + + name + Link Url + scope + meta.link + settings + + foreground + #F99157 + + + + name + Lists + scope + markup.list + settings + + foreground + #EC5f67 + + + + name + Quotes + scope + markup.quote + settings + + foreground + #F99157 + + + + name + Separator + scope + meta.separator + settings + + background + #4F5B66 + foreground + #C0C5CE + + + + name + Inserted + scope + markup.inserted + settings + + foreground + #99C794 + + + + name + Deleted + scope + markup.deleted + settings + + foreground + #EC5f67 + + + + name + Changed + scope + markup.changed + settings + + foreground + #C594C5 + + + + name + Colors + scope + constant.other.color + settings + + foreground + #5FB3B3 + + + + name + Regular Expressions + scope + string.regexp + settings + + foreground + #5FB3B3 + + + + name + Escape Characters + scope + constant.character.escape + settings + + foreground + #5FB3B3 + + + + name + Embedded + scope + punctuation.section.embedded, variable.interpolation + settings + + foreground + #C594C5 + + + + name + Illegal + scope + invalid.illegal + settings + + background + #EC5f67 + foreground + #D8DEE9 + + + + name + Broken + scope + invalid.broken + settings + + background + #F99157 + foreground + #1B2B34 + + + + name + Deprecated + scope + invalid.deprecated + settings + + background + #AB7967 + foreground + #D8DEE9 + + + + name + Unimplemented + scope + invalid.unimplemented + settings + + background + #65737E + foreground + #D8DEE9 + + + + uuid + uuid + + diff --git a/templates/archive.html b/templates/archive.html new file mode 100644 index 0000000..065ed44 --- /dev/null +++ b/templates/archive.html @@ -0,0 +1,11 @@ +{% extends "index.html" %} + +{% block content %} +
+

{{ page.title }}

+ + {% set section = get_section(path="_index.md") %} + + {{ post::list(pages=section.pages) }} +
+{% endblock content %} diff --git a/templates/index.html b/templates/index.html index 2dfa8ef..2af6ae0 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,12 +1,28 @@ +{% import "post.html" as post -%} + {%- block title %}{{ config.title }}{% endblock title -%} - {%- if config.generate_rss %} - - {%- endif %} + + + + + + {% if config.extra.katex_enable %} + + + + + + {% if config.extra.katex_auto_render %} + + {% endif %} + {% endif %} + {%- if config.extra.favicon %} @@ -17,11 +33,10 @@ - {% block header %} -
+
+ {% block header %} +
+ +
+ {% block title_content %} + {%- if config.extra.title_text %} + {{ config.extra.title_text }} + {% elif config.title %} + {{ config.title }} + {% else %} + Dawn Theme + {% endif -%} + {% endblock title_content %} +
+ + {% block header_menu %} +
+ +
+ {% endblock header_menu %} -
- {% block title_content %} - {%- if config.extra.title_text %} - {{ config.extra.title_text }} - {% elif config.title %} - {{ config.title }} - {% else %} - Dawn Theme - {% endif -%} - {% endblock title_content %}
+ {% endblock header %} - {% block header_menu %} - +
+
+ {% endblock content %}
- {% endblock header_menu %} + {% block footer %} +
+ +
+ {% endblock footer %} - {% endblock header %} diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..626cac4 --- /dev/null +++ b/templates/page.html @@ -0,0 +1,9 @@ +{% extends "index.html" %} + +{% block content %} +
+ {{ post::header(page=page) }} + {{ post::content(page=page, summary=false) }} + {{ post::postview(page=page) }} +
+{% endblock content %} diff --git a/templates/post.html b/templates/post.html new file mode 100644 index 0000000..b311be6 --- /dev/null +++ b/templates/post.html @@ -0,0 +1,92 @@ +{% macro content(page, summary) %} + {%- if summary and page.summary %} +
+
+ {{ page.summary | safe }} +
+
+ +
+
+ {% else %} +
+
+ {{ page.content | safe }} +
+
+ {% endif -%} +{% endmacro content %} + +{% macro header(page) %} +

{{ page.title }}

+ +{% endmacro header %} + +{% macro date(page) %} + +{% endmacro post_date %} + +{% macro postview(page) %} + {%- if config.extra.enable_postview %} + +{% endif -%} +{% endmacro postview %} + +{% macro tags(page) %} +{%- if page.taxonomies and page.taxonomies.tags %} + +{% endif -%} +{% endmacro tags %} + +{% macro list(pages) %} + +{% endmacro list %} diff --git a/templates/shortcodes/image.html b/templates/shortcodes/image.html new file mode 100644 index 0000000..0ef65ed --- /dev/null +++ b/templates/shortcodes/image.html @@ -0,0 +1,3 @@ +{% if src %} + +{% endif %} diff --git a/templates/shortcodes/katex.html b/templates/shortcodes/katex.html new file mode 100644 index 0000000..9b9a1f7 --- /dev/null +++ b/templates/shortcodes/katex.html @@ -0,0 +1 @@ + diff --git a/templates/tags/list.html b/templates/tags/list.html new file mode 100644 index 0000000..f6a0151 --- /dev/null +++ b/templates/tags/list.html @@ -0,0 +1,17 @@ +{% extends "index.html" %} + +{% block content %} +
+

all tags

+ +
+{% endblock content %} diff --git a/templates/tags/single.html b/templates/tags/single.html new file mode 100644 index 0000000..ff9a053 --- /dev/null +++ b/templates/tags/single.html @@ -0,0 +1,16 @@ +{% extends "index.html" %} + +{% block content %} +
+

+ ::{{ term.name }} +

+ + + see all tags + + + {{ post::list(pages=term.pages) }} + +
+{% endblock content %} diff --git a/theme.toml b/theme.toml new file mode 100644 index 0000000..46eb503 --- /dev/null +++ b/theme.toml @@ -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"