experimenting with a new format: short thoughts
This commit is contained in:
parent
a60874a47e
commit
1086afc81c
|
@ -14,7 +14,7 @@ feel free to go back at any time by clicking here.
|
|||
- welcome! make yourself at home :ralsei_wave:
|
||||
|
||||
% id = "01H8VWEHX501SNYQTE61WX7YJC"
|
||||
- [_"owo, what's this?"_][page:kuroneko]{.secret}
|
||||
- :folder: [_"owo, what's this?"_][page:kuroneko]{.secret}
|
||||
|
||||
% id = "about"
|
||||
content.link = "about"
|
||||
|
@ -26,7 +26,7 @@ feel free to go back at any time by clicking here.
|
|||
|
||||
% id = "01H8V556P1GRAA3717VH3QJFMV"
|
||||
classes.branch_children = "index:hobby-corners"
|
||||
- hobby corners
|
||||
- :folder: hobby corners
|
||||
|
||||
% id = "programming"
|
||||
content.link = "programming"
|
||||
|
@ -85,7 +85,11 @@ feel free to go back at any time by clicking here.
|
|||
```
|
||||
|
||||
% id = "01HFYZKREWE2AM61ZRW3R501H6"
|
||||
- various thoughts
|
||||
- :folder: /var
|
||||
|
||||
% id = "short-thoughts"
|
||||
content.link = "short-thoughts"
|
||||
+ ## [sh](https://www.youtube.com/watch?v=rFL2VOdb944){.secret}ort thoughts
|
||||
|
||||
% id = "philosophy"
|
||||
content.link = "philosophy"
|
||||
|
|
19
content/short-thoughts.tree
Normal file
19
content/short-thoughts.tree
Normal file
|
@ -0,0 +1,19 @@
|
|||
%% title = "short thoughts"
|
||||
|
||||
% id = "01J4J6400Q4MWF2QPGX3P9Q2WQ"
|
||||
- if there's one thing I learned from Go...
|
||||
|
||||
```rust
|
||||
let mut list = WalkList::new(args);
|
||||
|
||||
let condition = list.expect_arg(c, src, "missing `if` condition");
|
||||
let if_true = list.expect_arg(c, src, "missing `if` true branch");
|
||||
let if_false = list.expect_arg(c, src, "missing `if` false branch");
|
||||
list.expect_nil(c, src, "extra arguments after `if` false branch");
|
||||
|
||||
if !list.ok {
|
||||
return Ok(());
|
||||
}
|
||||
```
|
||||
|
||||
...it's that `?` is not the only option.
|
Loading…
Reference in a new issue