commit 0b09faee82bced7211dbefa357e31dbd38cd054d Author: EvilMuffinHa Date: Sat May 7 02:01:48 2022 -0400 feat: added main header and hotlinks diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ef5272f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.swp +public/* diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..ed8ecce --- /dev/null +++ b/config.toml @@ -0,0 +1,40 @@ +base_url = "http://127.0.0.1:1111" + +title = "Dawn Theme" + +compile_sass = false + +build_search_index = true + +[markdown] +highlight_code = true + +[extra] + +# Optional - Sets the colorscheme based on base16: base00 is used for the background. +#base00 = "#faf4ed" + +# Optional - Sets the colorscheme based on base16: base05 is used for the foreground text. +#base05 = "#575279" + +# Optional - Sets the colorscheme based on base16: base0d is used for unvisited links. +#base0d = "#286983" + +# Optional - Sets the colorscheme based on base16: base0e is used for visited links. +#base0e = "#907aa9" + +# Optional - Sets the mimetype of the favicon. +#favicon_mimetype = "image/png" + +# Optional - Set the favicon. +#favicon = "/favicon.png" + +# Optional - Sets the text displayed as the title to be different. Default title is "Dawn Theme" +#title_text = "Dawn Theme" + +# Required - Menu options for the hotlinks under the title. +menu = [ + { name = "tags", url = "$BASE_URL/tags" }, + { name = "archive", url = "$BASE_URL/archive" }, + { name = "about me", url = "$BASE_URL/about" } +] diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..ba81db4 --- /dev/null +++ b/content/_index.md @@ -0,0 +1,4 @@ ++++ +paginate_by = 2 +sort_by = "date" ++++ diff --git a/content/showcase.md b/content/showcase.md new file mode 100644 index 0000000..9d80f29 --- /dev/null +++ b/content/showcase.md @@ -0,0 +1,60 @@ ++++ +title = "Dawn Showcase" +date = 2022-04-18 +[taxonomies] +tags = ["zola", "theme", "showcase"] ++++ + +Hi! This is a Showcase of the `Dawn` theme. + +# Code: + +```rust +use std::error::Error; + +#[derive(Debug)] +struct Test { + pub lang: String, + pub content: String +} + +fn main() -> Result<(), Box> { + let a = Test { + lang: "en".to_string(), + content: "content".to_string() + }; + println!("{:?}", a); + Ok(()) +} +``` + +## Inline + +`print("Hi")` + +### Typography + +*Italic*, **Bold**, _**Italic Bold**_, [link](#) + + +#### Quote + +> Helo + + +# Lists + + - A + - B + + 1. a + 2. b + 3. c + + --- + + fin post summary + + + + Next part diff --git a/static/UtsukushiMincho.ttf b/static/UtsukushiMincho.ttf new file mode 100644 index 0000000..cf6768e Binary files /dev/null and b/static/UtsukushiMincho.ttf differ diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..fde97ac --- /dev/null +++ b/templates/index.html @@ -0,0 +1,144 @@ + + + + + + + {%- block title %}{{ config.title }}{% endblock title -%} + {%- if config.generate_rss %} + + {%- endif %} + + {%- if config.extra.favicon %} + + {%- endif %} + {%- block extra_head %} + {%- endblock extra_head %} + + + + + + {% 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 %} + +
+ {% endblock header %} + +