init
This commit is contained in:
commit
db09fdde41
7 changed files with 203 additions and 0 deletions
6
.gitmodules
vendored
Normal file
6
.gitmodules
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
[submodule "themes/duckquill"]
|
||||
path = themes/duckquill
|
||||
url = https://codeberg.org/daudix/duckquill.git
|
||||
[submodule "syntaxes/typst"]
|
||||
path = syntaxes/typst
|
||||
url = https://github.com/hyrious/typst-syntax-highlight
|
78
config.toml
Normal file
78
config.toml
Normal file
|
@ -0,0 +1,78 @@
|
|||
# The site theme to use.
|
||||
theme = "duckquill"
|
||||
|
||||
# The URL the site will be built for
|
||||
base_url = "https://blog.grobecker.me"
|
||||
|
||||
# Whether to automatically compile all Sass files in the sass directory
|
||||
compile_sass = true
|
||||
|
||||
# Whether to build a search index to be used later on by a JavaScript library
|
||||
build_search_index = true
|
||||
|
||||
# smart_punctuation = true
|
||||
# bottom_footnotes = true
|
||||
|
||||
|
||||
[markdown]
|
||||
# Whether to do syntax highlighting
|
||||
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
|
||||
highlight_code = true
|
||||
smart_punctuation = true
|
||||
bottom_footnotes = true
|
||||
extra_syntaxes_and_themes = ["syntaxes/"]
|
||||
|
||||
[extra]
|
||||
# Put all your custom variables here
|
||||
default_theme = "dark"
|
||||
katex = true
|
||||
|
||||
# Sets theme and browser theme color.
|
||||
# See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta/name/theme-color
|
||||
accent_color = "#ff7800"
|
||||
# Ditto but for the dark theme.
|
||||
# If not set regular variant will be used.
|
||||
accent_color_dark = "#ffa348"
|
||||
|
||||
# Ditto but for the dark theme.
|
||||
fix_contrast_dark = true
|
||||
|
||||
show_read_time = true
|
||||
|
||||
[extra.nav]
|
||||
# Whether to show the Atom/RSS feed button in the nav
|
||||
show_feed = true
|
||||
# Whether to show the manual theme switcher in the nav
|
||||
show_theme_switcher = true
|
||||
# Whether to show the link to the source repository in the nav
|
||||
show_repo = true
|
||||
# Links used in the nav.
|
||||
# For local files use same link format as in Markdown,
|
||||
# i.e. "@/blog/_index.md".
|
||||
# See https://www.getzola.org/documentation/content/linking/#internal-links
|
||||
links = [
|
||||
{ name = "Links", menu = [
|
||||
{ url = "@/blog/_index.md", name = "Blog" },
|
||||
# { url = "@/demo/index.md", name = "Demo" },
|
||||
# { url = "@/mods/index.md", name = "Mods" },
|
||||
] },
|
||||
{ url = "https://daudix.one/coffee/", name = "Coffee" },
|
||||
]
|
||||
|
||||
[extra.footer]
|
||||
# Links used in the footer.
|
||||
# Same as the nav ones.
|
||||
links = [
|
||||
{ url = "@/blog/_index.md", name = "Blog" },
|
||||
# { url = "@/demo/index.md", name = "Demo" },
|
||||
# { url = "@/mods/index.md", name = "Mods" },
|
||||
{ url = "https://daudix.one/coffee/", name = "Coffee" },
|
||||
]
|
||||
|
||||
[extra.toc]
|
||||
# whether to render inline static TOC at the top of the articles or not
|
||||
inline = true
|
||||
# where to show the TOC as a pop-up button
|
||||
popup = true
|
||||
# Show numbered TOC
|
||||
numbered = true
|
87
content/_index.md
Normal file
87
content/_index.md
Normal file
|
@ -0,0 +1,87 @@
|
|||
+++
|
||||
title = "My blog"
|
||||
|
||||
description = "hihiha"
|
||||
|
||||
# A draft section is only loaded if the `--drafts` flag is passed to `zola build`, `zola serve` or `zola check`.
|
||||
draft = false
|
||||
|
||||
# Used to sort pages by "date", "update_date", "title", "title_bytes", "weight", "slug" or "none". See below for more information.
|
||||
sort_by = "none"
|
||||
|
||||
# Used by the parent section to order its subsections.
|
||||
# Lower values have higher priority.
|
||||
weight = 0
|
||||
|
||||
# Template to use to render this section page.
|
||||
template = "section.html"
|
||||
|
||||
# The given template is applied to ALL pages below the section, recursively.
|
||||
# If you have several nested sections, each with a page_template set, the page
|
||||
# will always use the closest to itself.
|
||||
# However, a page's own `template` variable will always have priority.
|
||||
# Not set by default.
|
||||
# page_template =
|
||||
|
||||
# This sets the number of pages to be displayed per paginated page.
|
||||
# No pagination will happen if this isn't set or if the value is 0.
|
||||
paginate_by = 0
|
||||
|
||||
# If set, this will be the path used by the paginated page. The page number will be appended after this path.
|
||||
# The default is page/1.
|
||||
paginate_path = "page"
|
||||
|
||||
# If set, there will pagination will happen in a reversed order.
|
||||
paginate_reversed = false
|
||||
|
||||
# This determines whether to insert a link for each header like the ones you can see on this site if you hover over
|
||||
# a header.
|
||||
# The default template can be overridden by creating an `anchor-link.html` file in the `templates` directory.
|
||||
# This value can be "left", "right", "heading" or "none".
|
||||
# "heading" means the full heading becomes the text of the anchor.
|
||||
insert_anchor_links = "left"
|
||||
|
||||
# If set to "true", the section pages will be in the search index. This is only used if
|
||||
# `build_search_index` is set to "true" in the Zola configuration file.
|
||||
in_search_index = true
|
||||
|
||||
# If set to "true", the section homepage is rendered.
|
||||
# Useful when the section is used to organize pages (not used directly).
|
||||
render = true
|
||||
|
||||
# This determines whether to redirect when a user lands on the section. Defaults to not being set.
|
||||
# Useful for the same reason as `render` but when you don't want a 404 when
|
||||
# landing on the root section page.
|
||||
# Example: redirect_to = "documentation/content/overview"
|
||||
# redirect_to =
|
||||
|
||||
# If set to "true", the section will pass its pages on to the parent section. Defaults to `false`.
|
||||
# Useful when the section shouldn't split up the parent section, like
|
||||
# sections for each year under a posts section.
|
||||
transparent = false
|
||||
|
||||
# Use aliases if you are moving content but want to redirect previous URLs to the
|
||||
# current one. This takes an array of paths, not URLs.
|
||||
aliases = []
|
||||
|
||||
# If set to "true", feed files will be generated for this section at the
|
||||
# section's root path. This is independent of the site-wide variable of the same
|
||||
# name. The section feed will only include posts from that respective feed, and
|
||||
# not from any other sections, including sub-sections under that section.
|
||||
generate_feeds = false
|
||||
|
||||
# Your own data.
|
||||
+++
|
||||
|
||||
{% crt() %}
|
||||
```
|
||||
_ _ _ _ _
|
||||
>(')____, >(')____, >(')____, >(')____, >(') ___,
|
||||
(` =~~/ (` =~~/ (` =~~/ (` =~~/ (` =~~/
|
||||
jgs~^~^`---'~^~^~^`---'~^~^~^`---'~^~^~^`---'~^~^~^`---'~^~^~
|
||||
```
|
||||
{% end %}
|
||||
|
||||
{% alert(note=true) %}
|
||||
Although Duckquill is made based on the needs of [my website](https://daudix.one), I am very open to feature requests as long as they are somewhat useful to others, so if you need a feature/configuration that does not exist, feel free to open an issue, or better yet, a pull request!
|
||||
{% end %}
|
9
content/blog/_index.md
Normal file
9
content/blog/_index.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
+++
|
||||
title = "Writings of Duck's Feet"
|
||||
# sort_by = "date"
|
||||
template = "article_list.html"
|
||||
page_template = "article.html"
|
||||
paginate_by = 2
|
||||
+++
|
||||
|
||||
Welcome to my quack'in blog, I quack about various stuff, but mostly I'm a demo.
|
21
content/blog/test.md
Normal file
21
content/blog/test.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
title: "test"
|
||||
---
|
||||
|
||||
# asd
|
||||
|
||||
```Typst
|
||||
#cetz.canvas({
|
||||
import cetz.draw: *
|
||||
import cetz.plot
|
||||
plot.plot(size: (4, 4), x-tick-step: 2, y-tick-step: 40,
|
||||
{
|
||||
plot.add(domain: (-4, 4),
|
||||
x => (x, calc.pow(x, 4) ),
|
||||
label: $f(x)=x^4$
|
||||
)
|
||||
})
|
||||
})
|
||||
```
|
||||
|
||||
=>
|
1
syntaxes/typst
Submodule
1
syntaxes/typst
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit c4fe052d0877a2f94863ebe6deb9b852c9bb9157
|
1
themes/duckquill
Submodule
1
themes/duckquill
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 1ff05370457d666fe32c62277b811b5e365ab5b1
|
Loading…
Reference in a new issue