I dont know what Im doing

This commit is contained in:
Erik Grobecker 2024-10-03 17:07:46 +02:00
parent db09fdde41
commit 058a73b159
Signed by: Erik
GPG key ID: 80D020D0ABBD3FB2
9 changed files with 161 additions and 19 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/public

9
TODO.md Normal file
View file

@ -0,0 +1,9 @@
- blog articels to write
- [ ] typst
- [ ] cetz
- [ ] common thing (guides, etc.)
- [ ] zola (the ssg)
general task:
- [ ] writing a justfile (for `just`)

View file

@ -10,6 +10,8 @@ compile_sass = true
# Whether to build a search index to be used later on by a JavaScript library
build_search_index = true
author = "Erik"
# smart_punctuation = true
# bottom_footnotes = true
@ -22,6 +24,7 @@ smart_punctuation = true
bottom_footnotes = true
extra_syntaxes_and_themes = ["syntaxes/"]
[extra]
# Put all your custom variables here
default_theme = "dark"
@ -32,13 +35,15 @@ katex = true
accent_color = "#ff7800"
# Ditto but for the dark theme.
# If not set regular variant will be used.
accent_color_dark = "#ffa348"
accent_color_dark = "#380891"
# Ditto but for the dark theme.
fix_contrast_dark = true
show_read_time = true
show_copy_button = true
[extra.nav]
# Whether to show the Atom/RSS feed button in the nav
show_feed = true
@ -51,12 +56,13 @@ show_repo = true
# 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" },
# { name = "Links", menu = [
# { url = "@/blog/_index.md", name = "Blog" },
# # { url = "@/demo/index.md", name = "Demo" },
# # { url = "@/mods/index.md", name = "Mods" },
# ] },
{ url = "@/blog/_index.md", name = "Blog"},
# { url = "https://daudix.one/coffee/", name = "Coffee" },
]
[extra.footer]
@ -66,7 +72,7 @@ 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" },
# { url = "https://daudix.one/coffee/", name = "Coffee" },
]
[extra.toc]

View file

@ -82,6 +82,6 @@ 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 %}
This blog is written using the wonderful engine [zola](https://www.getzola.org) and the [duckquill](https://duckquill.daudix.one) theme
## asd

View file

@ -1,9 +1,9 @@
+++
title = "Writings of Duck's Feet"
title = "Index of my blog"
# 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.
Welcome to my blog, after this you can view my "beatiful" entries!

View file

@ -0,0 +1,21 @@
#import "@preview/cetz:0.2.2"
#cetz.canvas({
import cetz.draw: *
import cetz.plot
plot.plot(size: (10, 4), x-tick-step: 2, y-tick-step: 50,
{
plot.add(domain: (-4, 4),
x => (x, calc.pow(x, 4) ),
label: $f(x)=x^4$
)
plot.add(domain: (-5, 6.34),
x => (x, calc.pow(x, 3)),
label: $f(x)=x^3$
)
plot.add(domain: (-10, 10),
x => (x, calc.pow(x, 2)),
label: $f(x) = x^2$
)
})
})

View file

@ -0,0 +1,75 @@
+++
title = "Comparison of some formats"
draft = true
insert_anchor_links = "left"
[extra]
hot = true
katex = true
+++
- [ ] comparison table
- [ ] markdown
- [ ] math
- [ ] exportability
- [ ] programmability
- [ ] typst
- [ ] math
- [ ] exportability
- [ ] programmability
- [ ] latex
- [ ] math
- [ ] exportability
- [ ] programmability
| | Markdown | Typst | Latex |
| :--- | :---| :--- | :--- |
| Math support | only using latex| great | great with an enormous community behind it
| Exportability |
| Programmability[^1]
[^1]: like plotting, etc.
## Markdown
## Typst
### Math support
<p>Typst</p>
In Typst we can plot using the `cetz` library like this:
```typst
#import "@preview/cetz:0.2.2"
#cetz.canvas({
import cetz.draw: *
import cetz.plot
plot.plot(size: (10, 4), x-tick-step: 2, y-tick-step: 50,
{
plot.add(domain: (-4, 4),
x => (x, calc.pow(x, 4) ),
label: $f(x)=x^4$
)
plot.add(domain: (-5, 6.34),
x => (x, calc.pow(x, 3)),
label: $f(x)=x^3$
)
plot.add(domain: (-10, 10),
x => (x, calc.pow(x, 2)),
label: $f(x) = x^2$
)
})
})
```
Which leads to this:
<figure>
{{image(url="https://files.catbox.moe/tplzsb.png")}}
<!-- was generated using a bit from my `cetz.typ` out of my typst repo -->
<figcaption>some standard functions</figcaption>
</figure>
## Latex

View file

@ -1,10 +1,19 @@
---
title: "test"
---
+++
title = "test"
draft = true
insert_anchor_links = "left"
tags = [ "typst" ]
render = true
# asd
[extra]
# poor = true
+++
```Typst
## Code block tests
```typst
#cetz.canvas({
import cetz.draw: *
import cetz.plot
@ -18,4 +27,14 @@ title: "test"
})
```
=>
- [x] create/fix copy button
<details>
<summary>Fix</summary>
I had to activate `show_copy_button = true` in my `config.toml`\
<kbd>STRG + C</kbd> & <kbd>STRG + V</kbd> saved my day again (along some <kbd>STRG + F</kbd> of course!)
</details>
## Typst renders

11
justfile Normal file
View file

@ -0,0 +1,11 @@
# use PowerShell instead of sh:
set shell := ["powershell.exe", "-c"]
# view the blog as it would be published in a browser
view:
zola serve
# view the blog with drafts in a browser
view-drafts:
zola serve --drafts