rons of new bread and stuff

master
Ondřej Hruška 4 years ago
parent a9bff361ab
commit 3de7b54eae
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 19
      src/bread.rs
  2. 2
      src/main.rs
  3. BIN
      web/data/2019-07-19-steak/016e19b3e6aec4018ae8c9f546741ce65ff6fbfda8e67ea1284257c9e5df34b3.jpg
  4. 1
      web/data/2019-07-19-steak/note.txt
  5. BIN
      web/data/2019-07-21-zucke/ee656afdf1a12b56a1d5f3dae1c998173893d10a46388b8cc978d2456bdc5b45.jpg
  6. 3
      web/data/2019-07-21-zucke/note.txt
  7. BIN
      web/data/2019-07-23-mer-kolac/342cc29dc8072462753e28986e6baa462dda92cbf1be101a1aa76812376034bf.jpg
  8. BIN
      web/data/2019-07-23-mer-kolac/bc8bb00c9b7f5d8dc8b491ff821ab6b153ee8600c8a864c19daad7a72bc44f26.jpg
  9. BIN
      web/data/2019-07-23-mer-kolac/d090ff790998d5f33e29599d43233a65a24ffb569f9f96bc05004172f6cfd0f9 cover.jpg
  10. BIN
      web/data/2019-07-27-sunkolinka/db1d118b5538cc087328f79ef3b57b9d41aa2f013d8c46fd0a2dca136e49f5e8.jpg
  11. 1
      web/data/2019-07-27-sunkolinka/note.txt
  12. BIN
      web/data/2019-08-04-udon/392d5860ee5856ffc9ddd5293aa0536db152857be8d7658bddaaaf1dadca04a6.jpg
  13. BIN
      web/data/2019-08-04-udon/50ed2397655d11c544f4cc6749165fecc6826ff4795ff03b0fcda5064939f12d.jpg
  14. 1
      web/data/2019-08-04-udon/note.txt
  15. BIN
      web/data/2019-08-07-kefirak/4cfcb6a8be4a6b15cb20d061e3983aef6f03892b966add78fbef379e0dbc2399 cover.jpg
  16. BIN
      web/data/2019-08-07-kefirak/f1a5d06e5f76cd7e72f3a4daf986810d04b471756563935035d3b6f98d402682.jpg
  17. 1
      web/data/2019-08-07-kefirak/note.txt
  18. BIN
      web/data/2019-08-08-tatramelky/07d5b88c666d1982e4c654916fa03d50e0cff9109c11b2af350796741b94ac50.jpg
  19. BIN
      web/data/2019-08-08-tatramelky/57a2ea6cf3bc0e2a946b772c96aab09d59b9f42e60751f2131eca464b4d7d0bb.jpg
  20. 3
      web/data/2019-08-08-tatramelky/note.txt
  21. BIN
      web/data/2019-08-09-pizza/54ad6155dc36ec82fd8a4fc0cdb12e7515841ead036343b2763dd709bd10d2b2.jpg
  22. BIN
      web/data/2019-08-09-pizza/f74c530c5f7b8e1a9e3cf8953b1e4dac8d0be3d004bf45624f930a51c73b050e cover.jpg
  23. 1
      web/data/2019-08-09-pizza/note.txt
  24. BIN
      web/data/2019-08-19-umeboshi/01.jpg
  25. BIN
      web/data/2019-08-19-umeboshi/02.jpg
  26. BIN
      web/data/2019-08-19-umeboshi/02b.jpg
  27. BIN
      web/data/2019-08-19-umeboshi/03.jpg
  28. BIN
      web/data/2019-08-19-umeboshi/04.jpg
  29. BIN
      web/data/2019-08-19-umeboshi/05.jpg
  30. BIN
      web/data/2019-08-19-umeboshi/06 cover.jpg
  31. BIN
      web/data/2019-08-19-umeboshi/07.jpg
  32. 5
      web/data/2019-08-19-umeboshi/note.txt
  33. BIN
      web/data/2019-08-25-sv-kolac/93a6fa305285cc1e9e949d318469edd62bc607e42079196062c4f29394983d08 cover.jpg
  34. BIN
      web/data/2019-08-25-sv-kolac/cf4ada9b336bf18103b6810003608d4cf720e7ea6533b2633c45e11966599544.jpg
  35. 1
      web/data/2019-08-25-sv-kolac/note.txt
  36. BIN
      web/data/2019-08-27-wakame-soup/07a84a1e7171675c73eea0ee394fdc7a20a7c2db0c7afe38e6a4d671c582dfa0.jpg
  37. BIN
      web/data/2019-08-27-wakame-soup/7cafa765abbf05961879fa7828d4c4bee502762fb2c92f59f0c00e7d386dabf0 cover.jpg
  38. 1
      web/data/2019-08-27-wakame-soup/note.txt
  39. BIN
      web/data/2019-08-31-tempura/4e7ad2b612d2068bdca79edbb5b6731e88ee8834eca5e9e634ba63a1171578a3.jpg
  40. 1
      web/data/2019-08-31-tempura/note.txt
  41. BIN
      web/data/2019-09-03-suseni/01.jpg
  42. BIN
      web/data/2019-09-03-suseni/02.jpg
  43. BIN
      web/data/2019-09-03-suseni/03.jpg
  44. BIN
      web/data/2019-09-03-suseni/04.jpg
  45. BIN
      web/data/2019-09-03-suseni/04b.jpg
  46. BIN
      web/data/2019-09-03-suseni/05 cover.jpg
  47. BIN
      web/data/2019-09-03-suseni/06.jpg
  48. BIN
      web/data/2019-09-03-suseni/07.jpg
  49. BIN
      web/data/2019-09-03-suseni/08.jpg
  50. 1
      web/data/2019-09-03-suseni/note.txt
  51. BIN
      web/data/2019-09-07-beans/44bfb96a99787792fe431251b7d0ed9c7daf947e5d4582ea8b47f26d10658b2b.jpg
  52. 1
      web/data/2019-09-07-beans/note.txt
  53. BIN
      web/data/2019-09-08-korokke/1080e25c93e1e093699253b970a351c8464218d4983f31b930ec160da5136069 cover.jpg
  54. BIN
      web/data/2019-09-08-korokke/88a3dcb42d602d36f83998aad557e6210ca430d624ba357e649cd020426a308c.jpg
  55. BIN
      web/data/2019-09-08-korokke/fa135f23b64d12332b3026ea1cc6a93f476e627ff58b41fd032ed56d6dd0d7f3.jpg
  56. 3
      web/data/2019-09-08-korokke/note.txt
  57. BIN
      web/data/2019-09-11-prosl-hrusky/01.jpg
  58. BIN
      web/data/2019-09-11-prosl-hrusky/02.jpg
  59. BIN
      web/data/2019-09-11-prosl-hrusky/03.jpg
  60. BIN
      web/data/2019-09-11-prosl-hrusky/04.jpg
  61. 3
      web/data/2019-09-11-prosl-hrusky/note.txt
  62. BIN
      web/data/2019-09-11-soba/023d6be8c7ceda2552ca67e00a50f7ada750b8fb712516b55ed4a15d375ebf2f.jpg
  63. 1
      web/data/2019-09-11-soba/note.txt
  64. BIN
      web/data/2019-09-16-tomyum/57cdeb193505b558e9d9c7c47bbbc51986fc5b1c0475042cfff5f230eb3a5ca1.jpg
  65. 1
      web/data/2019-09-16-tomyum/note.txt
  66. BIN
      web/data/2019-09-20-borsc/f0baf5367b9fd91d88a8be7ed5f8ee0e66bd6054946e55aa8ef9180639a8eff0.jpg
  67. BIN
      web/data/2019-09-20-borsc/f6ca9590464d548e7547bacfbed04c3217663160dac166f2cf8bfe1d6e885bdf cover.jpg
  68. BIN
      web/data/2019-09-24-rizek/c8a6ad80fac90bd947e62a37104e7b137d8bb3dec89b481ab5a20c10e13ea938.jpg
  69. BIN
      web/data/2019-09-29-tomato-paste/01.jpg
  70. 8
      web/data/2019-09-29-tomato-paste/note.md
  71. BIN
      web/data/2019-09-30-roasted-pumpkin/28ad1f820cfaefe25ef89c64c0112f86b1d577fa2f1a55827c55a6db67933e59.jpg
  72. 3
      web/data/2019-09-30-roasted-pumpkin/note.txt
  73. BIN
      web/data/2019-10-03-korokke/bc4d0499a5ba1eecf3bd408a03e7d41b22fb256df7031316f4a9bb0ce4608f3b.jpg
  74. BIN
      web/data/2019-10-03-korokke/eb2c934dc7ca7cd034fce17e2d94fb0de4675a14381ee8b4bdc01cc2d4b3d875.jpg
  75. 1
      web/data/2019-10-03-korokke/note.txt
  76. BIN
      web/data/2019-10-05/4c2b8aa61d0afcd3a0c9e50bf9f6a80ad3ffabde40af22c1f8010fcdffc41ad4.jpg
  77. BIN
      web/data/2019-10-05/d620a16d07d2f9cffbb4d50b87ab999ded2bb8b8489cb40896d9c94e3a0ecfcf cover.jpg
  78. 1
      web/data/2019-10-05/note.txt
  79. BIN
      web/data/2019-10-06-mebrillo/01.jpg
  80. BIN
      web/data/2019-10-06-mebrillo/02.jpg
  81. BIN
      web/data/2019-10-06-mebrillo/03.jpg
  82. BIN
      web/data/2019-10-06-mebrillo/04.jpg
  83. 1
      web/data/2019-10-06-mebrillo/note.txt
  84. BIN
      web/data/2019-10-09-makovec-priklop/01.jpg
  85. BIN
      web/data/2019-10-09-makovec-priklop/02.jpg
  86. BIN
      web/data/2019-10-09-makovec-priklop/03.jpg
  87. BIN
      web/data/2019-10-09-makovec-priklop/04 cover.jpg
  88. 1
      web/data/2019-10-09-makovec-priklop/note.txt
  89. BIN
      web/data/2019-10-09-polivka/4a9d719422779753d7474e525ae88a1c8e18b35b5aa8e09d9a5bab3e549afd3e.jpg
  90. 1
      web/data/2019-10-09-polivka/note.txt
  91. BIN
      web/data/2019-10-18-ohankova-polivka/acbb6d11d4a1acbcd7c07c13a7f9737b990ddd741358461c04ba751989cbbe68.jpg
  92. 1
      web/data/2019-10-18-ohankova-polivka/note.txt
  93. BIN
      web/data/2019-10-19-nigiri/74a0dd7b1d2f9be2de983d129d4b3c9544e9bb005cedda4c8348f3e76162813f.jpg
  94. 1
      web/data/2019-10-19-nigiri/note.txt
  95. BIN
      web/data/2019-10-19-sunkofleky/2002920d360aa11d579aa6f863ea038d313eb27d41b310af80c6c163620762a9 cover.jpg
  96. BIN
      web/data/2019-10-19-sunkofleky/e7836dedc4649715529f3a9619aee3c56d73092554420db2211b61eecd2f7699.jpg
  97. 1
      web/data/2019-10-19-sunkofleky/note.txt
  98. BIN
      web/data/2019-10-21-tabemono/075a4c4686cae2e4f959542a5cab67a8aa39bebc7dcfd6608d765cda369ef16a.jpg
  99. 3
      web/data/2019-10-21-tabemono/note.txt
  100. BIN
      web/data/2019-11-03-dyne/e91c5898430d6f4fba1c078366bd0b4a05cee4b9905c2dd1cca0520581fccb34.jpg
  101. Some files were not shown because too many files have changed in this diff Show More

@ -25,6 +25,7 @@ pub struct Bread {
path: PathBuf, path: PathBuf,
rel_path: PathBuf, rel_path: PathBuf,
pub date: chrono::NaiveDate, pub date: chrono::NaiveDate,
pub slug: String,
note: String, note: String,
rss_note: String, rss_note: String,
images: Vec<PathBuf>, images: Vec<PathBuf>,
@ -40,7 +41,7 @@ pub struct BreadLink {
impl Bread { impl Bread {
pub fn compile(&mut self, config: &mut GalleryInfo, prev : Option<BreadLink>, next : Option<BreadLink>) -> Fallible<()> { pub fn compile(&mut self, config: &mut GalleryInfo, prev : Option<BreadLink>, next : Option<BreadLink>) -> Fallible<()> {
let date = self.date.format("%Y/%m/%d").to_string(); let date = self.date.format("%Y/%m/%d").to_string();
let date_slug = self.date.format("%Y-%m-%d").to_string(); let date_slug = &self.slug;
let detail_file = date_slug.clone() + ".html"; let detail_file = date_slug.clone() + ".html";
println!("+ {}", date_slug); println!("+ {}", date_slug);
@ -204,7 +205,7 @@ impl Bread {
pub fn to_link(&self) -> BreadLink { pub fn to_link(&self) -> BreadLink {
BreadLink { BreadLink {
label: self.date.format("%Y/%m/%d").to_string(), label: self.date.format("%Y/%m/%d").to_string(),
url: self.date.format("%Y-%m-%d.html").to_string(), url: format!("{}.html", self.slug),
} }
} }
@ -257,12 +258,16 @@ impl Bread {
}) })
.collect(); .collect();
let bname = bpath.file_name().unwrap().to_string_lossy();
let date = if bname.chars().nth(10) == Some('-') {
&bname[0..10]
} else {
&bname
};
return Ok(Bread { return Ok(Bread {
date: NaiveDate::parse_from_str( date: NaiveDate::parse_from_str(&date, "%Y-%m-%d").expect("malformed date"),
&bpath.file_name().unwrap().to_string_lossy(), slug: bname.to_string(),
"%Y-%m-%d",
)
.unwrap(),
rel_path: bpath.strip_prefix(base_dir)?.to_path_buf(), rel_path: bpath.strip_prefix(base_dir)?.to_path_buf(),
path: bpath, path: bpath,
note, note,

@ -183,7 +183,7 @@ fn main() -> Fallible<()> {
// main page // main page
{ {
// make thumbs go from the newest to the oldest // make thumbs go from the newest to the oldest
breads.reverse(); //breads.reverse(); // actually don't do that
let oldest = ginfo.oldest_year; let oldest = ginfo.oldest_year;
let latest = ginfo.latest_year; let latest = ginfo.latest_year;

@ -0,0 +1,3 @@
zapečená kulatá cuketa se sýrem a mletým
seřízká aby se vešla do remosky

@ -0,0 +1 @@
idk what this is but it was really good

Binary file not shown.

After

Width:  |  Height:  |  Size: 629 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 590 KiB

@ -0,0 +1,3 @@
tatramelky
nebylo to úplně ono, ale skoro

Binary file not shown.

After

Width:  |  Height:  |  Size: 728 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 827 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 747 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 875 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 628 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 566 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 775 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

@ -0,0 +1,5 @@
This was an attempt to make fake umeboshi.
I made them way too salty and sour, but it was an interesting experiment. I might try it again.
The process took several weeks

@ -0,0 +1 @@
švestkový koláč s drobenkou

@ -0,0 +1 @@
turns out fried leek is much better than grilled leek, take that, skyrim

Binary file not shown.

After

Width:  |  Height:  |  Size: 535 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 616 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 801 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 826 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 936 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 760 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 926 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 648 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 629 KiB

@ -0,0 +1 @@
drying fruit in my new dryer machine

@ -0,0 +1 @@
black eyed beans with sausage, speck, onion. that's all. easy and tasty

@ -0,0 +1,3 @@
コロッケ
I saw these in an anime

Binary file not shown.

After

Width:  |  Height:  |  Size: 764 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 771 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 667 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 703 KiB

@ -0,0 +1,3 @@
Candied pears. I spent a week on these, but it was very much worth it.
They have to be repeatedly brought to a boil in sugary water and left cool and sit in it overnight.

Binary file not shown.

After

Width:  |  Height:  |  Size: 890 KiB

@ -0,0 +1 @@
so I discovered soba noodles

@ -0,0 +1 @@
so I got some galangal and other stuff and tried to make tomyum. it wasn't exactly like the instant noodles version, but it was prety good

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

@ -0,0 +1,8 @@
Homemade tomato paste to use up excess tomatoes.
I got the recipe from someone on fedi:
> You could peel the tomatoes, boil them up, let it all simmer to reduce to an intensive tasting extract. Put it through a very fine sieve to get rid of solid matter, if you want. Then freeze it in small portions (e.g. icecube-sized). Perfect base for soups, sauces or to simply being used as a spice for preparing other dishes.
> If you keep the temperature low to medium-low you only need to stir occasionally to not let it scorch - make sure to really scrape the bottom of the pot while stirring; most people tend to overlook this.
It's actually easy to get a feeling for when/ how often you need to stir. And if your not confident in your skill (really though, there's no reason for that), try a small test batch first.
> Give it time until your thin juice becomes as thick as gravy or sauce bolognese - basically, the thicker (as in more concentrated) the more intensive the taste. Think tomato paste.

@ -0,0 +1,3 @@
roasted pumpkin
here's my recipe: olive oil, garlic, salt, bit of sugar, cayenne, any herbs you feel like. roast. serve

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1017 KiB

@ -0,0 +1 @@
mřížkový linecký koláč

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 798 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 736 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 742 KiB

@ -0,0 +1 @@
dulce de mebrillo, recommended by friends from Spain. This one actually lasted me to August the next year. Best with a piece of cheese and black forest ham

Binary file not shown.

After

Width:  |  Height:  |  Size: 612 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 922 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 674 KiB

@ -0,0 +1 @@
makový koláč se švestkami. recept už nevím

@ -0,0 +1 @@
"polévka z hovězí oháňky"

@ -0,0 +1 @@
my first try at shrimp nigiri. the green stuff is wasabi paste

@ -0,0 +1 @@
šunkofleky s uzeným (z žebírek)

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save