I dont know what Im doing
This commit is contained in:
parent
db09fdde41
commit
058a73b159
9 changed files with 161 additions and 19 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/public
|
9
TODO.md
Normal file
9
TODO.md
Normal 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`)
|
20
config.toml
20
config.toml
|
@ -10,6 +10,8 @@ compile_sass = true
|
||||||
# Whether to build a search index to be used later on by a JavaScript library
|
# Whether to build a search index to be used later on by a JavaScript library
|
||||||
build_search_index = true
|
build_search_index = true
|
||||||
|
|
||||||
|
author = "Erik"
|
||||||
|
|
||||||
# smart_punctuation = true
|
# smart_punctuation = true
|
||||||
# bottom_footnotes = true
|
# bottom_footnotes = true
|
||||||
|
|
||||||
|
@ -22,6 +24,7 @@ smart_punctuation = true
|
||||||
bottom_footnotes = true
|
bottom_footnotes = true
|
||||||
extra_syntaxes_and_themes = ["syntaxes/"]
|
extra_syntaxes_and_themes = ["syntaxes/"]
|
||||||
|
|
||||||
|
|
||||||
[extra]
|
[extra]
|
||||||
# Put all your custom variables here
|
# Put all your custom variables here
|
||||||
default_theme = "dark"
|
default_theme = "dark"
|
||||||
|
@ -32,13 +35,15 @@ katex = true
|
||||||
accent_color = "#ff7800"
|
accent_color = "#ff7800"
|
||||||
# Ditto but for the dark theme.
|
# Ditto but for the dark theme.
|
||||||
# If not set regular variant will be used.
|
# If not set regular variant will be used.
|
||||||
accent_color_dark = "#ffa348"
|
accent_color_dark = "#380891"
|
||||||
|
|
||||||
# Ditto but for the dark theme.
|
# Ditto but for the dark theme.
|
||||||
fix_contrast_dark = true
|
fix_contrast_dark = true
|
||||||
|
|
||||||
show_read_time = true
|
show_read_time = true
|
||||||
|
|
||||||
|
show_copy_button = true
|
||||||
|
|
||||||
[extra.nav]
|
[extra.nav]
|
||||||
# Whether to show the Atom/RSS feed button in the nav
|
# Whether to show the Atom/RSS feed button in the nav
|
||||||
show_feed = true
|
show_feed = true
|
||||||
|
@ -51,12 +56,13 @@ show_repo = true
|
||||||
# i.e. "@/blog/_index.md".
|
# i.e. "@/blog/_index.md".
|
||||||
# See https://www.getzola.org/documentation/content/linking/#internal-links
|
# See https://www.getzola.org/documentation/content/linking/#internal-links
|
||||||
links = [
|
links = [
|
||||||
{ name = "Links", menu = [
|
# { 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 = "@/blog/_index.md", name = "Blog"},
|
||||||
# { url = "@/demo/index.md", name = "Demo" },
|
# { url = "https://daudix.one/coffee/", name = "Coffee" },
|
||||||
# { url = "@/mods/index.md", name = "Mods" },
|
|
||||||
] },
|
|
||||||
{ url = "https://daudix.one/coffee/", name = "Coffee" },
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[extra.footer]
|
[extra.footer]
|
||||||
|
@ -66,7 +72,7 @@ links = [
|
||||||
{ url = "@/blog/_index.md", name = "Blog" },
|
{ url = "@/blog/_index.md", name = "Blog" },
|
||||||
# { url = "@/demo/index.md", name = "Demo" },
|
# { url = "@/demo/index.md", name = "Demo" },
|
||||||
# { url = "@/mods/index.md", name = "Mods" },
|
# { url = "@/mods/index.md", name = "Mods" },
|
||||||
{ url = "https://daudix.one/coffee/", name = "Coffee" },
|
# { url = "https://daudix.one/coffee/", name = "Coffee" },
|
||||||
]
|
]
|
||||||
|
|
||||||
[extra.toc]
|
[extra.toc]
|
||||||
|
|
|
@ -82,6 +82,6 @@ jgs~^~^`---'~^~^~^`---'~^~^~^`---'~^~^~^`---'~^~^~^`---'~^~^~
|
||||||
```
|
```
|
||||||
{% end %}
|
{% end %}
|
||||||
|
|
||||||
{% alert(note=true) %}
|
This blog is written using the wonderful engine [zola](https://www.getzola.org) and the [duckquill](https://duckquill.daudix.one) theme
|
||||||
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 %}
|
## asd
|
|
@ -1,9 +1,9 @@
|
||||||
+++
|
+++
|
||||||
title = "Writings of Duck's Feet"
|
title = "Index of my blog"
|
||||||
# sort_by = "date"
|
# sort_by = "date"
|
||||||
template = "article_list.html"
|
template = "article_list.html"
|
||||||
page_template = "article.html"
|
page_template = "article.html"
|
||||||
paginate_by = 2
|
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!
|
21
content/blog/assets/cetz.typ
Normal file
21
content/blog/assets/cetz.typ
Normal 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$
|
||||||
|
)
|
||||||
|
})
|
||||||
|
})
|
75
content/blog/format-comparison.md
Normal file
75
content/blog/format-comparison.md
Normal 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
|
||||||
|
|
|
@ -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({
|
#cetz.canvas({
|
||||||
import cetz.draw: *
|
import cetz.draw: *
|
||||||
import cetz.plot
|
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
11
justfile
Normal 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
|
Loading…
Reference in a new issue