From 45e33100b289022056cbf56ae1cce63fdcc989e0 Mon Sep 17 00:00:00 2001 From: wgroeneveld Date: Mon, 11 May 2020 20:14:04 +0200 Subject: [PATCH] image includes op https, privacy settings hugo --- config.toml | 9 + .../2012-07-08-baking-your-daily-bread.md | 6 - ...3-bakken-met-zuurdesem-een-samenvatting.md | 26 +- .../2012-07-21-80-wholerye-with-soaker.md | 4 +- content/post/2012-07-21-pain-au-levain.md | 6 +- content/post/2012-07-26-miche-epeautre.md | 4 +- content/post/2012-08-12-caraway-rye.md | 2 +- ...12-08-13-straight-and-poolish-baguettes.md | 2 +- .../2012-09-28-flax-seed-levain-with-spelt.md | 4 +- .../2012-11-09-sweet-tasting-apple-desem.md | 4 +- .../post/2012-12-07-whole-rye-wheat-combi.md | 4 +- .../2012-12-13-horst-bandels-pumpernickel.md | 6 +- .../post/2013-01-03-sourdough-croissants.md | 10 +- ...2013-02-17-sunflower-seed-rye-sourdough.md | 4 +- .../2013-03-22-correctly-scoring-your-loaf.md | 4 +- .../post/2013-04-01-enriched-easter-bread.md | 2 +- ...04-11-making-bread-from-croissant-dough.md | 2 +- .../2013-05-05-country-potato-focaccia.md | 2 +- ...9-sourdough-sweets-waffles-and-pancakes.md | 4 +- content/post/2013-08-05-pane-di-altamura.md | 4 +- ...014-02-24-bakken-in-een-openluchtmuseum.md | 8 +- .../post/maak-je-eigen-zuurdesemstarter.md | 8 +- content/privacy/_index.md | 11 +- layouts/index.html | 30 +- ...s_ca26857cefa9076967ab300682271513.content | 2 +- ...sass_ca26857cefa9076967ab300682271513.json | 2 +- static/js/redzuurdesem.js | 30 + .../assets/sass/_components.sass | 35 + .../exampleSite/.gitlab-ci.yml | 14 - .../desem-swift-theme/exampleSite/config.toml | 32 - .../exampleSite/content/about.md | 18 - .../content/post/creating-a-new-theme.md | 1143 ----------------- .../exampleSite/content/post/goisforlovers.md | 344 ----- .../content/post/hugoisforlovers.md | 89 -- .../content/post/migrate-from-jekyll.md | 151 --- .../exampleSite/data/authors.yml | 4 - .../exampleSite/data/designer.yml | 2 - .../exampleSite/data/menu.yml | 10 - ...s_ca26857cefa9076967ab300682271513.content | 3 - ...sass_ca26857cefa9076967ab300682271513.json | 1 - .../exampleSite/static/.gitignore | 0 .../exampleSite/static/images/screenshot.png | Bin 111626 -> 0 bytes .../exampleSite/static/images/tn.png | Bin 278018 -> 0 bytes .../exampleSite/staticman.yml | 31 - .../layouts/partials/footer.html | 1 + .../partials/google-analytics-anonymous.html | 8 - .../layouts/partials/head.html | 2 +- 47 files changed, 143 insertions(+), 1945 deletions(-) create mode 100644 static/js/redzuurdesem.js delete mode 100644 themes/desem-swift-theme/exampleSite/.gitlab-ci.yml delete mode 100644 themes/desem-swift-theme/exampleSite/config.toml delete mode 100644 themes/desem-swift-theme/exampleSite/content/about.md delete mode 100644 themes/desem-swift-theme/exampleSite/content/post/creating-a-new-theme.md delete mode 100644 themes/desem-swift-theme/exampleSite/content/post/goisforlovers.md delete mode 100644 themes/desem-swift-theme/exampleSite/content/post/hugoisforlovers.md delete mode 100644 themes/desem-swift-theme/exampleSite/content/post/migrate-from-jekyll.md delete mode 100644 themes/desem-swift-theme/exampleSite/data/authors.yml delete mode 100644 themes/desem-swift-theme/exampleSite/data/designer.yml delete mode 100644 themes/desem-swift-theme/exampleSite/data/menu.yml delete mode 100644 themes/desem-swift-theme/exampleSite/resources/_gen/assets/sass/sass/main.sass_ca26857cefa9076967ab300682271513.content delete mode 100644 themes/desem-swift-theme/exampleSite/resources/_gen/assets/sass/sass/main.sass_ca26857cefa9076967ab300682271513.json delete mode 100644 themes/desem-swift-theme/exampleSite/static/.gitignore delete mode 100644 themes/desem-swift-theme/exampleSite/static/images/screenshot.png delete mode 100644 themes/desem-swift-theme/exampleSite/static/images/tn.png delete mode 100644 themes/desem-swift-theme/exampleSite/staticman.yml delete mode 100644 themes/desem-swift-theme/layouts/partials/google-analytics-anonymous.html diff --git a/config.toml b/config.toml index 9453216..3654a16 100644 --- a/config.toml +++ b/config.toml @@ -27,3 +27,12 @@ home = [ "HTML", "RSS" ] extensionsmask = ["fencedCode"] fractions = false +[privacy] + [privacy.googleAnalytics] + anonymizeIP = true + disable = false + respectDoNotTrack = false + useSessionStorage = false + [privacy.youtube] + disable = false + privacyEnhanced = true diff --git a/content/post/2012-07-08-baking-your-daily-bread.md b/content/post/2012-07-08-baking-your-daily-bread.md index 7d8b06b..bb4a214 100644 --- a/content/post/2012-07-08-baking-your-daily-bread.md +++ b/content/post/2012-07-08-baking-your-daily-bread.md @@ -96,15 +96,9 @@ The loaves were proofed in a basket and shaped in the same way, but the latter o Time for more experiments! -**Also on: _Bake your own Bread –_** - -BYOB 125 x 125 - -**Also on: **[**_The Fresh Loaf_**][6] [1]: https://redzuurdesem.be/wp-content/uploads/2012/07/dailybread_midden_24h.jpg [2]: https://redzuurdesem.be/wp-content/uploads/2012/07/dailybread_slice_24h.jpg [3]: http://www.youtube.com/watch?v=nmRt5O4rd8o&feature=related [4]: https://redzuurdesem.be/wp-content/uploads/2012/07/dailybread_slice_40h.jpg [5]: http://www.thefreshloaf.com/searchresults?cx=partner-pub-5060446827351852%3A9bvu1n-clx1&cof=FORID%3A9&ie=ISO-8859-1&cow=more+sour&sa=Search - [6]: http://www.thefreshloaf.com/node/29337/my-daily-bread-65-ww-sourdough \ No newline at end of file diff --git a/content/post/2012-07-13-bakken-met-zuurdesem-een-samenvatting.md b/content/post/2012-07-13-bakken-met-zuurdesem-een-samenvatting.md index 70ddfd5..2c3e653 100644 --- a/content/post/2012-07-13-bakken-met-zuurdesem-een-samenvatting.md +++ b/content/post/2012-07-13-bakken-met-zuurdesem-een-samenvatting.md @@ -18,13 +18,15 @@ tags: Los van dat zijn er enkele basisstappen waar elk brood door gaat, onafhankelijk van het recept of van uw bloem type. Ik wil bij deze graag een snelle samenvatting geven rond bakken met zuurdesem. Eens je bekent bent met deze basisprincipes kan je makkelijk je eigen recept creëren en er een eigen stijl aan geven. +Een gedetailleerde uitleg, inclusief een stevige theoretische basis, is terug te vinden in ['Red Zuurdesem: het boek'](/het-boek). + ### [ 07:00 AM ] Stap 1: maak uw voordeeg Wat is een “voordeeg”? > Een preferment – of een **voordeeg** – is een deel van het deeg dat al een tijdje “gefermenteerd” werd. (Rijzen met een vorm van gist) – dit zonder de rest van het deeg te vermengen.
-This is a 15% preferment of wholewheat, after 12 hours of resting.
Dit is een 15% preferment met voltarwe, na 12 uren van rusten.
+This is a 15% preferment of wholewheat, after 12 hours of resting.
Dit is een 15% preferment met voltarwe, na 12 uren van rusten.
Brood kan gebakken worden met of zonder voordeeg. Zonder bakken heet meestal een “rechttoe rechtaan brood” of een _straight_ _bread_. Dit kan enkel gedaan worden met hulp van commerciële gist, omdat dit zeer snel kan rijzen. **Minder tijd om te rijzen** betekent **minder smaak**! Het voordeeg wordt meestal 12 uur op voorhand gemaakt zodat het op kamertemperatuur kan rusten. Dit voordeeg is meestal 10 tot 35% van het totale brooddeeg. @@ -42,7 +44,7 @@ Je kan een **stijf voordeeg** maken of een **vloeibaar voordeeg**. Het enige ve Deze stap is heel gemakkelijk. Je voordeeg zou goed moeten gerezen hebben (tot het dubbel van de originele grootte). Als je een vloeibaar voordeeg gebruikt is dit makkelijker zichtbaar. Wanneer het voordeeg terug begint te slinken, wil dat zeggen dat de bacteriën zijn uitgewerkt en voeg je best minder van je zuurdesemstarter toe de volgende keer. Anders hebben de bacteriën geen eten meer (= het bloem) en gaat je brood instorten! Dit kan dus enkele oorzaken hebben:
-[_MG_6408.jpg][1]
Alles gecombineerd in een mengkom..
[_MG_6410.jpg][2]
Het deeg op het keukentablet gedumpt.
+[_MG_6408.jpg][1]
Alles gecombineerd in een mengkom..
[_MG_6410.jpg][2]
Het deeg op het keukentablet gedumpt.
  • Te weinig bloem in verhouding tot de zuurdesemstarter @@ -92,7 +94,7 @@ Deze stap is heel gemakkelijk. Je voordeeg zou goed moeten gerezen hebben (tot h

    - _MG_6431.jpg_MG_6433.jpg_MG_6438.jpg _MG_6441.jpg _MG_6443.jpg + _MG_6431.jpg_MG_6433.jpg_MG_6438.jpg _MG_6441.jpg _MG_6443.jpg

    @@ -131,7 +133,7 @@ Deze stap is heel gemakkelijk. Je voordeeg zou goed moeten gerezen hebben (tot h {{< youtube 9oyg8K6J8QM >}} - _MG_6464.jpg

    Stretch & folded het deeg na french folden.
    _MG_6446.jpg
    Na 5 minuten french folden ziet het deeg er mooier uit!
    + _MG_6464.jpg
    Stretch & folded het deeg na french folden.
    _MG_6446.jpg
    Na 5 minuten french folden ziet het deeg er mooier uit!

    Het meest belangrijkste aspect hier is het vouwen. Een youtube video demonstreert dit, zie het  “my daily bread” artikel. In plaats van als een zot het deeg te bewerken kan simpelweg het deeg uitrekken en over elkaar vouwen zoals een brief even zeer de gluten versterken! Dit heet “stretch & folding”. @@ -169,7 +171,7 @@ Deze stap is heel gemakkelijk. Je voordeeg zou goed moeten gerezen hebben (tot h [ 09:00 PM ] Stap 5: vormen

    - _MG_6465.jpg
    voorgevormd in batârds
    + _MG_6465.jpg
    voorgevormd in batârds

    Het deeg in evenredig verdeelde stukjes opdelen en dan vormen zoals een boule (rond) of een batârd (ovaal). Of wil je liever baguettes maken? Laat u gaan! Dit wordt meestal gedaan in drie verschillende substappen: pre-vormen, rusten en finale vormgeving; @@ -212,7 +214,7 @@ Deze stap is heel gemakkelijk. Je voordeeg zou goed moeten gerezen hebben (tot h Dit is een andere “wacht en wacht en wacht…” stap. Wanneer je je broden op de juiste manier vorm gegeven hebt, zullen ze mooi naar boven rijzen. Let op dat je het niet te lang laat rijzen! Dit wordt ook wel “overproofing” genoemd. Dit kan zijn doordat het te warm is, of doordat het te lang duurde voordat het brood in de oven ging. In dat geval zal het “plat” vallen in de oven en niet goed meer rijzen.

    - _MG_6471.jpg
    Mijn broden hebben gerezen in een rijsmandje.
    _MG_6474.jpg
    Dit brood is nogal gerezen!
    + _MG_6471.jpg
    Mijn broden hebben gerezen in een rijsmandje.
    _MG_6474.jpg
    Dit brood is nogal gerezen!

    Vergeet niet om de broden te bedekken met wat plastic om korstvorming te voorkomen! @@ -234,7 +236,7 @@ Deze stap is heel gemakkelijk. Je voordeeg zou goed moeten gerezen hebben (tot h Wanneer je denkt dat je broden klaar zijn om te baken ben je te laat! De oven zou altijd al voorverwarmd moeten zijn, zelfs die 15 minuten kunnen veel uitmaken doordat het brood te lang rijst en dan inzakt. Dus denk een beetje op voorhand na! Je kan “the poke test” uitvoeren om te bepalen of het brood klaar is om gebakken te worden of niet. Wanneer je twijfelt kan je het beter bakken – beter minder lang dan te lang laten rijzen!

    - _MG_6469.jpg
    Mijn “kerfstok” is een licht gebogen scheermesje!
    + _MG_6469.jpg
    Mijn “kerfstok” is een licht gebogen scheermesje!

    Juist voordat je de broden in de oven steekt zou je de broden moeten inkerven. Wat betekent dit? @@ -257,7 +259,7 @@ Deze stap is heel gemakkelijk. Je voordeeg zou goed moeten gerezen hebben (tot h {{< youtube iYl5mCqY_L8 >}} - _MG_6478.jpg

    Na het inkerven. Te diep en niet schuin genoeg!
    _MG_6480.jpg
    Een closeup van de gaatjes veroorzaakt door het fermenteren van de zuurdesem.
    + _MG_6478.jpg
    Na het inkerven. Te diep en niet schuin genoeg!
    _MG_6480.jpg
    Een closeup van de gaatjes veroorzaakt door het fermenteren van de zuurdesem.

    Eindelijk, we zijn klaar om te bakken! Ik bak altijd alle zuurdesembroden op de zo hoog mogelijke instelling van mijn oven – dit is 250°C. Na een kwartier of 20 minuten, wanneer het brood enorm gerezen is in de oven (de “oven spring”, de laatste zucht van de gistcellen die CO2 maken voor ze sterven door de hitte) kan je het reduceren tot een 230-tal graden. Hoelang moet dit ongeveer bakken? 40 tot 50 minuten, afhankelijk van de grootte van het brood. Je bakt het beter wat langer dan niet lang genoeg, omdat anders de korst te zacht wordt nadat het brood is afgekoeld. @@ -274,7 +276,7 @@ Deze stap is heel gemakkelijk. Je voordeeg zou goed moeten gerezen hebben (tot h

    - _MG_6481.jpg_MG_6485.jpg_MG_6492.jpg_MG_6507.jpg   + _MG_6481.jpg_MG_6485.jpg_MG_6492.jpg_MG_6507.jpg  

    @@ -303,11 +305,7 @@ Deze stap is heel gemakkelijk. Je voordeeg zou goed moeten gerezen hebben (tot h

  • -
    -

    - > Also on: The fresh loaf -

    -
    + [1]: http://lh6.ggpht.com/-6fIkLP09_wc/T_suE3I7EFI/AAAAAAAAGVA/PESIuwwteO4/s1024/_MG_6408.jpg "_MG_6408.jpg" diff --git a/content/post/2012-07-21-80-wholerye-with-soaker.md b/content/post/2012-07-21-80-wholerye-with-soaker.md index a4d316e..5be2ea6 100644 --- a/content/post/2012-07-21-80-wholerye-with-soaker.md +++ b/content/post/2012-07-21-80-wholerye-with-soaker.md @@ -25,7 +25,7 @@ Since this is a rye bread, kneading, shaping and baking will be quite different  
    -[_MG_6514.jpg][3]
    Initial mixing
    [_MG_6521.jpg][4]
    Dough, a thick paste
    [_MG_6529.jpg][5]
    Proofing as a boule
    +[_MG_6514.jpg][3]
    Initial mixing
    [_MG_6521.jpg][4]
    Dough, a thick paste
    [_MG_6529.jpg][5]
    Proofing as a boule

    Recipe and time table @@ -60,7 +60,7 @@ If you want, you can let the preferment sit there for up to 24 hours. I’ve Bulk ferment: 1 hour, final proofing: 2 hours. (Mine was 1 hour short, turned out to be too flat). You will **not** notice a big oven spring. It should rise a bit though!
    -[_MG_6538.jpg][6]
    Starting to get hungry now…
    _MG_6533.jpg
    Finished! looking good!
    [_MG_6542.jpg][7]
    A slice of rye.
    +[_MG_6538.jpg][6]
    Starting to get hungry now…
    _MG_6533.jpg
    Finished! looking good!
    [_MG_6542.jpg][7]
    A slice of rye.
    [1]: https://redzuurdesem.be/wp-content/uploads/2012/07/MG_6545.jpg [2]: https://redzuurdesem.be/70-rye-with-soaker/ "70% wholerye bread with soaker" diff --git a/content/post/2012-07-21-pain-au-levain.md b/content/post/2012-07-21-pain-au-levain.md index 936709a..e2a7a87 100644 --- a/content/post/2012-07-21-pain-au-levain.md +++ b/content/post/2012-07-21-pain-au-levain.md @@ -17,7 +17,7 @@ The main differences between both books and recipes: 2. Instead of **stretch & fold**-ing, Mr. Leader calls it “**turning the dough**“. The physical action is different but it has the same effect on the dough: it gets stretched and tightens again. 3. **Much more wholewheat flour** added to the mix in this recipe. The classic _pain au levain_ from “BREAD” contains only 5% wholegrain flour.
    -[2012-07-21 08.54.20.jpg][3]
    A section of the refreshed stiff levain.
    [2012-07-21 11.41.04.jpg][4]
    The bâtards ready to be proofed on a couche.
    +[2012-07-21 08.54.20.jpg][3]
    A section of the refreshed stiff levain.
    [2012-07-21 11.41.04.jpg][4]
    The bâtards ready to be proofed on a couche.

    The recipe @@ -43,7 +43,7 @@ The main differences between both books and recipes: Remarks: 24% wholewheat (baker’s percentage!), **70%** hydratation, **25% **preferment present in the final build. That’s more than usual for a “pain au levain” recipe, and I like it that way. Bulk fermentation: 3-4 hours including 1 stretch & fold after 1 hour. Final proofing: 1 hour.
    -[2012-07-21 16.32.57.jpg][5]
    Can you spot the yeasted and the levain versions?
    [2012-07-21 16.22.23.jpg][6]
    The finished bâtards.
    [2012-07-21 16.30.40.jpg][7]
    A section look at the crumb. Left: levain, right: yeasted.
    +[2012-07-21 16.32.57.jpg][5]
    Can you spot the yeasted and the levain versions?
    [2012-07-21 16.22.23.jpg][6]
    The finished bâtards.
    [2012-07-21 16.30.40.jpg][7]
    A section look at the crumb. Left: levain, right: yeasted.

    I’ve also made some yeasted straight loaves, also shaped as bâtards because I wanted to practice the shape. The yeasted version was made with about 40% wholewheat flour (500gr in total for 2 loaves), without any rye. It took me 4 hours from start to finish but they came out a bit tasteless compared to the amazingly mild and pleasant taste the pain au levain has. Can you spot the yeasted version on the pictures above? Yes indeed they also have a lot of nice holes! Great, isn’t it? That’s because of the high percentage of water (70%) and the nice score. @@ -59,7 +59,7 @@ Remarks: 24% wholewheat (baker’s percentage!), **70%** hydratation, **25 it with a simple plant mister but my scores never turned out into nice ears like the bâtards this time and I had no idea why. I thought it was just bad cutting, but I was wrong! It was too little steam, which can cause:

    -2012-07-21 16.33.34.jpg +2012-07-21 16.33.34.jpg * Too little air pockets to be formed into the crumb * Too little oven spring diff --git a/content/post/2012-07-26-miche-epeautre.md b/content/post/2012-07-26-miche-epeautre.md index 525161a..b6051bb 100644 --- a/content/post/2012-07-26-miche-epeautre.md +++ b/content/post/2012-07-26-miche-epeautre.md @@ -38,7 +38,7 @@ So while I was at it, why not try something new? This is an _adapted_ version f
    -_MG_6629.JPG
    Stretch & folding helps to build structure
    _MG_6614.JPG
    The stiff starter looks a bit more wet now
    _MG_6662.JPG
    After Folding the dough
    +_MG_6629.JPG
    Stretch & folding helps to build structure
    _MG_6614.JPG
    The stiff starter looks a bit more wet now
    _MG_6662.JPG
    After Folding the dough
    Final dough @@ -86,7 +86,7 @@ So while I was at it, why not try something new? This is an _adapted_ version f I baked it straight from the fridge, called a “cold bake”, with some steam injected into the oven. It is actually not really needed to slash this boule, as wholewheat does not get a huge oven spring anyway and you might want to decorate your loaf with some flour.

    - _MG_6681.JPG
    This is the wholewheat flour I’ve used
    + _MG_6681.JPG
    This is the wholewheat flour I’ve used

      diff --git a/content/post/2012-08-12-caraway-rye.md b/content/post/2012-08-12-caraway-rye.md index e053344..1063ee5 100644 --- a/content/post/2012-08-12-caraway-rye.md +++ b/content/post/2012-08-12-caraway-rye.md @@ -19,7 +19,7 @@ You might notice in the pictures below that the bread is still quite grey, for & I **did not add yeast** in the final dough. I don’t know why almost all rye sourdough breads call for additional commercial yeast, I find it quite unneeded as the bulk fermentation time could be simply slightly increased (as I did). The crumb is not very dense at all and contains evenly placed little holes. I folded the dough once (or twice? Can’t remember).

    -[_MG_6731.JPG][3]
    Some slices of the bread
    [_MG_6730.JPG][4]
    A good look at the crumb
    +[_MG_6731.JPG][3]
    Some slices of the bread
    [_MG_6730.JPG][4]
    A good look at the crumb

    Lessons learned: diff --git a/content/post/2012-08-13-straight-and-poolish-baguettes.md b/content/post/2012-08-13-straight-and-poolish-baguettes.md index 6b20600..be8f8c1 100644 --- a/content/post/2012-08-13-straight-and-poolish-baguettes.md +++ b/content/post/2012-08-13-straight-and-poolish-baguettes.md @@ -16,7 +16,7 @@ Both recipes came from Jeffrey Hamelman’s “BREAD” book. There Therefore, Mr. Hamelman suggests to only fold the poolish version once after an hour. Fermentation time has been **decreased** with the **poolish version** by one hour because the yeast is already much more active than the “straight dough” version (which is called “French Bread”). The straight version got 2 folds over a period of one hour (2,5 – 3 hour fermenting).
    -[_MG_6739.JPG][2]
    Just out of the oven: poolish version on the left
    [_MG_6732.JPG][3]
    I used my baker’s linen for the first time with great success!
    [120820122018.jpg][4]
    Crumb structure: poolish version on the bottom
    +[_MG_6739.JPG][2]
    Just out of the oven: poolish version on the left
    [_MG_6732.JPG][3]
    I used my baker’s linen for the first time with great success!
    [120820122018.jpg][4]
    Crumb structure: poolish version on the bottom
    What’s odd though, is that the poolish version has a more open structure than the straight version, even with the (very slightly) decreased hydratation level! I think it’s largely due to the cuts on the baguettes. It might not be visible on the pictures, but some cuts bloomed nicely during the oven spring and some did not – the volume of the baguettes is largely dependant on correct cuts. I did not bake on a stone, just a non pre-heated sheet pan. diff --git a/content/post/2012-09-28-flax-seed-levain-with-spelt.md b/content/post/2012-09-28-flax-seed-levain-with-spelt.md index c9d7a76..570c1d8 100644 --- a/content/post/2012-09-28-flax-seed-levain-with-spelt.md +++ b/content/post/2012-09-28-flax-seed-levain-with-spelt.md @@ -22,7 +22,7 @@ Make this 12 hours before you plan on mixing the final dough. I used more wholew **seed soaker**
    -[_MG_7214.JPG][3]
    Make sure you create smaller points at the end of the bâtard!
    +[_MG_7214.JPG][3]
    Make sure you create smaller points at the end of the bâtard!
    1. 100gr flax seeds 2. 227gr water @@ -41,7 +41,7 @@ Make the same time as you mix the preferment. The seeds will stick and absorb ev 6. 10gr salt 7. all of the soaked flax seeds
    -[_MG_7217.JPG][4]
    Out of the oven. I love those “ears”!
    [_MG_7223.JPG][5]
    Big holes, so spelt flour can also expand quickly…
    [_MG_7218.JPG][6]
    Slicing at a shallow angle nets nice results.
    +[_MG_7217.JPG][4]
    Out of the oven. I love those “ears”!
    [_MG_7223.JPG][5]
    Big holes, so spelt flour can also expand quickly…
    [_MG_7218.JPG][6]
    Slicing at a shallow angle nets nice results.

    I did not divert from the baking instructions much – autolyse for about 30 minutes, kneaded using the french fold technique for a minute or 5-6 and folded once after 1 hour of bulk fermenting. The total fermentation time took up to 3 hours because the kitchen temperature was only 20°C and I wanted to make sure they were well risen. After shaping them into bâtards, proofed on the couche for 1,5 hour and baked at 250°C with steam (reduced the heat to 230°C after 10 minutes). diff --git a/content/post/2012-11-09-sweet-tasting-apple-desem.md b/content/post/2012-11-09-sweet-tasting-apple-desem.md index 6407db3..f14af93 100644 --- a/content/post/2012-11-09-sweet-tasting-apple-desem.md +++ b/content/post/2012-11-09-sweet-tasting-apple-desem.md @@ -11,7 +11,7 @@ tags: Doesn’t this look amazing? I’ve read great things about using “**yeast water**” at [The Fresh Loaf][2] which is basically _anything_ fermented with water. You can even use certain vegetables. Or tea. According to Wikipedia, tea combined with honey is a popular fermentation tool – something like Kefir and the like. You do know that yogurt is also made by slowly fermenting milk, right? The longer you ferment things, the more tasty they get (or the more “tang” they have, which might not appeal to everyone). -[_MG_7286.JPG][3]My girlfriends uncle has an apple orchard. They are “organic” meaning no insecticides are used (and no pruning either, they’re full-grown trees). I simply cut up one apple, added some water and left it for a few days. Some bubbles start appearing and after a while, the apples start releasing a purgent smell. This indicates that the fermentation process has been started. You can “refresh” your water yeast by simply replacing some old apple pieces with new ones. +[_MG_7286.JPG][3]My girlfriends uncle has an apple orchard. They are “organic” meaning no insecticides are used (and no pruning either, they’re full-grown trees). I simply cut up one apple, added some water and left it for a few days. Some bubbles start appearing and after a while, the apples start releasing a purgent smell. This indicates that the fermentation process has been started. You can “refresh” your water yeast by simply replacing some old apple pieces with new ones. I had no idea when this yeast would be ready to fully leaven a bread. And how long it would take – meaning the (bulk) fermentation time, I’m used to while using classic rye or wheat sourdough. So I came up with a recipe to try it out after some small successes (trying to combine some yeast water with flour and seeing what happens). @@ -24,7 +24,7 @@ I had no idea when this yeast would be ready to fully leaven a bread. And how lo **final dough**

    -[apple yeast][4]
    apple yeast
    +[apple yeast][4]
    apple yeast
    * 300gr spelt flour * 100gr wholerye flour diff --git a/content/post/2012-12-07-whole-rye-wheat-combi.md b/content/post/2012-12-07-whole-rye-wheat-combi.md index 8368b23..2d32081 100644 --- a/content/post/2012-12-07-whole-rye-wheat-combi.md +++ b/content/post/2012-12-07-whole-rye-wheat-combi.md @@ -33,7 +33,7 @@ tags: --- Dit is een variatie van Mr. Hamelman’s “volkorenrogge en volkorentarwe zuurdesembrood”. Het bevat 50% volkoren bloem en 50% sterk wit tarwemeel om het te helpen rijzen, met een preferment percentage van 25.
    -[_MG_7598.JPG][1]
    Nog altijd tamelijk open voor een 50% volkoren broodje!
    +[_MG_7598.JPG][1]
    Nog altijd tamelijk open voor een 50% volkoren broodje!
    ## Formule @@ -61,7 +61,7 @@ Dit is een variatie van Mr. Hamelman’s “volkorenrogge en volkorentar
    -## [_MG_7597.JPG][2] Smaak +## [_MG_7597.JPG][2] Smaak Dit brood doet me denken aan een combinatie tussen het 50% volkoren rogge noten brood (zonder de noten dan) en [Vermont zuurdesem stijl brood][3]. Het bouwt zelfs naargelang de dagen vorderen meer smaak (en zuurtegraad) op en proeft het lekkerste na 2 dagen bakken, geweldig! diff --git a/content/post/2012-12-13-horst-bandels-pumpernickel.md b/content/post/2012-12-13-horst-bandels-pumpernickel.md index 638f80e..dfcdf46 100644 --- a/content/post/2012-12-13-horst-bandels-pumpernickel.md +++ b/content/post/2012-12-13-horst-bandels-pumpernickel.md @@ -51,7 +51,7 @@ Het recept komt weeral van Mr. Hamelman’s [“BREAD” boek][3] &
    - Special ingredients used in this dough + Special ingredients used in this dough
    @@ -97,7 +97,7 @@ Dit is heel simpel: hak de roggebesjes gewoonweg zelf, in zo klein mogelijke stu
    -[Het einddeeg na de tweede rijs.][4]
    Het einddeeg, na de tweede rijs.
    +[Het einddeeg na de tweede rijs.][4]
    Het einddeeg, na de tweede rijs.
    ##  Het brood bakken @@ -107,7 +107,7 @@ Ik heb geen pullman pan, dus heb ik simpelweg aluminium folie gebruikt om de bov Laat het brood volledig afkoelen na het uit de oven te nemen (door het uit de pan te halen natuurlijk). Wacht tenminste 24 uur voor er sneetjes van af te snijden, om de interne structuur te stabiliseren.
    -[De heerlijk grove structuur.][6]
    De heerlijk grove structuur.
    +[De heerlijk grove structuur.][6]
    De heerlijk grove structuur.
    Smakelijk! diff --git a/content/post/2013-01-03-sourdough-croissants.md b/content/post/2013-01-03-sourdough-croissants.md index c4bcea7..9b12353 100644 --- a/content/post/2013-01-03-sourdough-croissants.md +++ b/content/post/2013-01-03-sourdough-croissants.md @@ -48,7 +48,7 @@ Wat is er lekkerder dan een croissant met wat aardbeien confituur op een late zo * Je zal ook **200gr** ongezouten boter in blokvorm nodig hebben voor het bladerdeeg proces en * 1 ei voor 2x het bestrijken van de croissants
    -[_MG_7017.JPG][2]
    De boter vorm geven
    +[_MG_7017.JPG][2]
    De boter vorm geven
    ## Het proces @@ -64,7 +64,7 @@ Berg het deeg op in de frigo voor minstens 2 uur. Het zal niet zo veel rijzen. We willen een vierkant blokje boter maken uit die 200gr – dit doen we door ze plat te kloppen met een deegrol tussen twee blaadjes van bakpapier. Plezant hé? Probeer zo precies mogelijk te zijn en vorm een blok van 13x13cm. Doe dit terug in de frigo om het terug wat vaster te maken.
    -[_MG_7020.JPG][3]
    Vouwen nadat de boter is toegevoegd
    +[_MG_7020.JPG][3]
    Vouwen nadat de boter is toegevoegd
    ### Boter in het deeg vouwen voor de eerste keer @@ -74,7 +74,7 @@ Nog een waarschuwing: afhankelijk van je keukentemperatuur zal je zelf kunnen er Als de rechthoek goed werd uitgerold, kan je dit nu voor de eerste keer vouwen zoals een brief: 1/3de vouwen, dan 2/3de over dat eerste 1/3de. Als je niet zeker bent hoe, kijk even naar dit: [the weekend bakery video][4]. Uw eerste “toer” is compleet! Doe alles terug in de frigo voor 12 tot 24 uur.
    -[_MG_7023.JPG][5]
    Driehoekjes uitgesneden van het bladerdeeg.
    +[_MG_7023.JPG][5]
    Driehoekjes uitgesneden van het bladerdeeg.

    Nog twee toeren (2x vouwen) @@ -92,13 +92,13 @@ Snij mooie even driehoekjes uit van het bladerdeeg (niet zo lelijk als ik in de Croissants zullen minstens **3 uur** moeten rijzen op 20°C. Het is bijna onmogelijk om croissants te lang te laten rijzen dankzij de hoge concentratie aan vet dat aanwezig is in het deeg. Daarom is de extra gedroogde gist ook nodig om het te laten rijzen en zal het desem alleen moeilijk volstaan. Een andere manier is natuurlijk minder boter te gebruiken…
    -[_MG_7172.JPG][6]
    Uit de oven. Ruikt heerlijk!
    +[_MG_7172.JPG][6]
    Uit de oven. Ruikt heerlijk!
    ### Eindelijk tijd om croissants te bakken! Voordat we ze in de oven steken bestrijk je de croissants nog een laatste keer met ei. Bak ze op **200°C **voor 30 tot 35 minuten – en let er goed op dat ze genoeg bruinen in de oven. Croissants kunnen snel verbranden dus blijf best even bij de oven staan. Proficiat, je hebt net je eigen croissants vanaf 0 gemaakt! Smakelijk!
    -[_MG_7178.JPG][7]
    De binnenkant van mijn croissant
    +[_MG_7178.JPG][7]
    De binnenkant van mijn croissant

    Ook opgestuurd via Yeast Spotting. diff --git a/content/post/2013-02-17-sunflower-seed-rye-sourdough.md b/content/post/2013-02-17-sunflower-seed-rye-sourdough.md index 32dc700..a8784c7 100644 --- a/content/post/2013-02-17-sunflower-seed-rye-sourdough.md +++ b/content/post/2013-02-17-sunflower-seed-rye-sourdough.md @@ -60,7 +60,7 @@ ALs je vlokken gebruikt dit niet heel zacht zijn kan je altijd kokend water gebr ## Opmerkingen -_MG_8194.JPG +_MG_8194.JPG **Wat zijn de aangenomen rijstijden??** @@ -73,7 +73,7 @@ Ongeveer hetzelfde als ik aanhoud voor [mijn dagelijks brood][3]. Ik heb deze ke Het brood is heel goed gerezen in de oven dankzij de relatief hoge aanwezigheid van bloem maar ook dankzij de juiste hoeveelheid desem en de gewijzigde rijstijd. Zeker iets om meer mee te experimenteren de volgende keren! -_MG_8190.JPG +_MG_8190.JPG Ook gepubliceerd op [YeastSpotting][4]. diff --git a/content/post/2013-03-22-correctly-scoring-your-loaf.md b/content/post/2013-03-22-correctly-scoring-your-loaf.md index 2ec96ff..391bcec 100644 --- a/content/post/2013-03-22-correctly-scoring-your-loaf.md +++ b/content/post/2013-03-22-correctly-scoring-your-loaf.md @@ -39,7 +39,7 @@ Ik bak dit type van brood ongeveer een jaar en ik heb al veel (stomme) foutjes g Kijk eens goed naar de volgende foto’s. -

    _MG_5938.jpg _MG_8468.JPG _MG_8469.JPG

    +

    _MG_5938.jpg _MG_8468.JPG _MG_8469.JPG

    @@ -53,7 +53,7 @@ De tweede en derde foto zijn broden die ik deze week gebakken heb met hetzelfde ## Het belang van brood lang genoeg bakken -_MG_8482.JPG +_MG_8482.JPG Je kan het feit dat je met zuurdesem bakt niet verbergen. De geur zal misschien wel aangepast kunnen worden door met de starter te spelen (hem milder maken bijvoorbeeld), maar door de wilde gistcellen verschijnen er tal van kleine bubbels op de korst van het brood. Dit wordt nog extra zichtbaar door door het gebruik van voldoende stoom in de oven. Wanneer het brood lang genoeg is gebakken zal de korst goudbruin tot hier en daar zelfs bijna zwart worden. En dat is goed, want hoe natter het deeg, hoe zachter de korst wordt naarmate de dagen verstrijken. Op sommige plaatsten kan de korst zelfs “breken” zoals je op de foto kan zien en zal het brood “zingen” wanneer het uit de oven gehaald wordt. diff --git a/content/post/2013-04-01-enriched-easter-bread.md b/content/post/2013-04-01-enriched-easter-bread.md index 346edca..9a7c7a5 100644 --- a/content/post/2013-04-01-enriched-easter-bread.md +++ b/content/post/2013-04-01-enriched-easter-bread.md @@ -50,7 +50,7 @@ Laat de desem gedurende de nacht rijzen (de keukentempreatuur hier is 19°C R Bestrijk de korst met gesmolten boter zodra het brood uit de oven komt. Geen eieren zijn geklutst tijdens deze stage! -

    _MG_8556.JPG _MG_8559.JPG

    +

    _MG_8556.JPG _MG_8559.JPG

    Variaties diff --git a/content/post/2013-04-11-making-bread-from-croissant-dough.md b/content/post/2013-04-11-making-bread-from-croissant-dough.md index f5cedc0..743e923 100644 --- a/content/post/2013-04-11-making-bread-from-croissant-dough.md +++ b/content/post/2013-04-11-making-bread-from-croissant-dough.md @@ -39,7 +39,7 @@ Dit maakt het deeg extreem actief – het rijzen swingt een beetje de pan ui Aangezien ik alitjd op zoek ben naar rustieke zuurdesem broden met zo veel mogelijk gaatjes, verwachtte ik niet dat het resultaat zo zacht ging zijn. De binnenkant van het brood is heel zacht en evenredig zoals een typisch sandwichdeeg, dankzij het brood en de voordegen. De korst was extreem crunchy door de aanwezigheid van extra suikers (het is een volledig wit brood). Ik heb een paar foto’s gemaakt tijdens het mixen van de verschillende preferments, en dat heeft wat grappige resultaten opgeleverd. -

    _MG_8562.JPG _MG_8568.JPG _MG_8571.JPG _MG_8575.JPG _MG_8585.JPG _MG_8621.JPG _MG_8648.JPG _MG_8654.JPG _MG_8652.JPG _MG_8619.JPG

    +

    _MG_8562.JPG _MG_8568.JPG _MG_8571.JPG _MG_8575.JPG _MG_8585.JPG _MG_8621.JPG _MG_8648.JPG _MG_8654.JPG _MG_8652.JPG _MG_8619.JPG

    Het brood – het recept diff --git a/content/post/2013-05-05-country-potato-focaccia.md b/content/post/2013-05-05-country-potato-focaccia.md index 8d146d5..16f71d9 100644 --- a/content/post/2013-05-05-country-potato-focaccia.md +++ b/content/post/2013-05-05-country-potato-focaccia.md @@ -50,7 +50,7 @@ Je kan ook een reeds gerezen brood uit de frigo halen en het uitspreiden, dan sm

    -

    _MG_8805.JPG _MG_8808.JPG _MG_8810.JPG

    +

    _MG_8805.JPG _MG_8808.JPG _MG_8810.JPG

    Nu zijn er nog twee mogelijkheden: je kan het serveren rechtstreeks vanuit de oven, of het laten afkoelen op een rek en dan pas snijden. Serveer met een beetje pesto en wat sla. Je kan de focaccia stukken ook in de lengte doorsnijden en zo een hoop machtige luchtbelletjes bloot leggen! Het ziet er goed uit en ruikt geweldig. Ik heb wel gemerkt dat vers gebakken zuurdesem niet zo sterk smaakt als een afgekoeld brood.
    Volgende keer ga ik het proberen meer evenredig uit te sprijden op het bakblik, omdat hier onevenredig gerezen was in de oven. Dat heeft natuurlijk ook zijn charme! diff --git a/content/post/2013-06-09-sourdough-sweets-waffles-and-pancakes.md b/content/post/2013-06-09-sourdough-sweets-waffles-and-pancakes.md index 07ac45a..49606d4 100644 --- a/content/post/2013-06-09-sourdough-sweets-waffles-and-pancakes.md +++ b/content/post/2013-06-09-sourdough-sweets-waffles-and-pancakes.md @@ -43,7 +43,7 @@ Dit maakt ongeveer 16 wafels: Mix alles samen behalve de eieren en het zout. Laat dit 12h staan op de keukentafel en mix daarna de eieren en het zout doorheen het beslag. Gebruik een pollepel om het loperig beslag in het hete wafelijzer te gieten. Ja het is normaal dat het heel loperig is – ik paniekeerde ook eerst. Vanille wafels (of “Luikse”) zijn veel dikker, dat is bijna kneedbaar. En ook veel ongezonder… -

    _MG_9015.JPG _MG_9018.JPG

    +

    _MG_9015.JPG _MG_9018.JPG

    ## Zuurdesem pannenkoeken @@ -63,7 +63,7 @@ De basisverhouding is **100gr bloem = 1 ei**. Ik hou persoonlijk van de amandelmelk pannenkoeken, omdat die melk eigenlijk water is maakt het heel veel gaatjes in de koeken als je een superhete koekepan hebt (verdampt sneller). -

    _MG_8876.JPG _MG_8877.JPG

    +

    _MG_8876.JPG _MG_8877.JPG

    [1]: https://redzuurdesem.be/wp-content/uploads/2013/06/MG_9020.jpg [2]: http://en.wikipedia.org/wiki/Belgian_waffle \ No newline at end of file diff --git a/content/post/2013-08-05-pane-di-altamura.md b/content/post/2013-08-05-pane-di-altamura.md index 524c6cf..592eb99 100644 --- a/content/post/2013-08-05-pane-di-altamura.md +++ b/content/post/2013-08-05-pane-di-altamura.md @@ -40,7 +40,7 @@ tags: Ik had nog een recept liggen uit “Local Breads” waar Mr. Leader een heel hoofdstuk aan het speciale brood en zijn afkomst gewijd heeft. Alleen is er een probleempje: het is niet zo gemakkelijk om aan durumtarwe bloem te geraken. Griesmeel, geen probleem – wij eten allemaal graag pap, net als onze Noorderburen. Maar durumtarwe is fijngemalen griesmeel en wordt veel voor pasta’s (en ook broden in fijnere vorm) gebruikt. -

    _MG_9127.JPG _MG_9128.JPG

    +

    _MG_9127.JPG _MG_9128.JPG

    @@ -78,7 +78,7 @@ Ik had nog een recept liggen uit “Local Breads” waar Mr. Leader een Het was ook de eerste keer dat ik grof zeezout (uit West-Frankrijk, met de hand geoogst! Geweldig Slow Food-achtig, toch?) gebruikt heb in brooddeeg. Het smaakte heel goed, maar als je de slap & fold techniek wil gebruiken raad ik je toch aan in het vervolg eerst het zout te malen… De grove korrels sprongen constant uit het deeg! Stretch & fold in de kom is hier veel geschikter voor denk ik (en dus natter deeg, win-win).

    -_MG_9130.JPG +_MG_9130.JPG

    diff --git a/content/post/2014-02-24-bakken-in-een-openluchtmuseum.md b/content/post/2014-02-24-bakken-in-een-openluchtmuseum.md index 9bf2a60..5334069 100644 --- a/content/post/2014-02-24-bakken-in-een-openluchtmuseum.md +++ b/content/post/2014-02-24-bakken-in-een-openluchtmuseum.md @@ -45,7 +45,7 @@ De taak die ik mijzelf oplegde bestond uit nieuwschierige bezoekers informatie v 3. Het tijdsschema. Het museum opent om 10h en sluit om 18h. Ik wou graag in de vroege namiddag bakken omdat het dan de drukste periode is – niemand komt om 18h kijken hoe brood uit de oven gehaald wordt… 4. Materiaal. Dit moest conform zijn aan het tijdperk van toen: geen plastic, geen weegschalen, alles gokken. -2013-07-28 17.47.14-2.jpg +2013-07-28 17.47.14-2.jpg

    @@ -58,7 +58,7 @@ De taak die ik mijzelf oplegde bestond uit nieuwschierige bezoekers informatie v

    -2013-07-07 09.57.37.jpg +2013-07-07 09.57.37.jpg

    @@ -71,7 +71,7 @@ Wanneer het vuur gedoofd is, worden de assen naar achteren in de oven verplaatst

    -2013-07-28 19.26.44.jpg +2013-07-28 19.26.44.jpg

    @@ -91,7 +91,7 @@ Wanneer het vuur gedoofd is, worden de assen naar achteren in de oven verplaatst

    -2013-07-07 09.57.42.jpg +2013-07-07 09.57.42.jpg

    diff --git a/content/post/maak-je-eigen-zuurdesemstarter.md b/content/post/maak-je-eigen-zuurdesemstarter.md index e877809..c7536dc 100644 --- a/content/post/maak-je-eigen-zuurdesemstarter.md +++ b/content/post/maak-je-eigen-zuurdesemstarter.md @@ -3,7 +3,7 @@ title: Maak je eigen zuurdesemstarter author: Wouter type: post date: 2012-06-21T19:40:45+00:00 -image: http://4.bp.blogspot.com/-e_3T5EJsuLc/T2YKXeUQBOI/AAAAAAAAGJw/fVf4BLoxBGU/s400/IMG_5935.jpg +image: https://4.bp.blogspot.com/-e_3T5EJsuLc/T2YKXeUQBOI/AAAAAAAAGJw/fVf4BLoxBGU/s400/IMG_5935.jpg aliases: - /post/2012-06-21-making-your-own-sourdough-starter/ - /making-your-own-sourdough-starter/ @@ -21,7 +21,7 @@ Exacte recepten zal ik niet hier plaatsen - ik raad daarvoor ten zeerste het boe > **The purpose: to make superior tasting bread** (and hopefully it’ll also look good!) -[][3] +[][3]   @@ -71,7 +71,7 @@ Een ander probleem met roggebrood wordt "zetmeelaanval" genoemd: tijdens het bak
    - +
    @@ -263,7 +263,7 @@ Hoe meer % rogge, hoe minder dit nodig is – er zitten toch geen gluten in. diff --git a/content/privacy/_index.md b/content/privacy/_index.md index 4515276..e4300ea 100644 --- a/content/privacy/_index.md +++ b/content/privacy/_index.md @@ -6,11 +6,18 @@ title: Pricacy/cookie policy Deze website maakt gebruik van de volgende externe componenten, waar mogelijks cookies aan zijn verbonden: -#### Google +#### Google Analytics Deze website gebruikt anonieme IP-gegevens in de vorm van Google Analytics om websiteverkeer beter op te kunnen volgen. Er worden geen enkele persoons- of locatiegebonden gegevens mee opgenomen. -Meer informatie over het gebruik van anonieme IP-gegevens door Google: https://support.google.com/analytics/answer/2763052?hl=en +Meer informatie over het gebruik van anonieme IP-gegevens door Google: https://support.google.com/analytics/answer/2763052?hl=nl + +#### YouTube + +Sommige pagina's bevatten YouTube videos. Deze componenten maken expliciet _geen_ het interne cookie systemen van YouTube, maar verwijzen in de plaats daarvan naar `youtube-nocookie.com`. + +Meer informatie over het gebruik van cookies door Google: +https://policies.google.com/technologies/cookies?hl=nl-BE #### Facebook diff --git a/layouts/index.html b/layouts/index.html index dc0a2bb..c0e1a7c 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -63,36 +63,10 @@
      +
    • Bezig met laden...
    diff --git a/resources/_gen/assets/sass/sass/main.sass_ca26857cefa9076967ab300682271513.content b/resources/_gen/assets/sass/sass/main.sass_ca26857cefa9076967ab300682271513.content index 0326108..237293c 100644 --- a/resources/_gen/assets/sass/sass/main.sass_ca26857cefa9076967ab300682271513.content +++ b/resources/_gen/assets/sass/sass/main.sass_ca26857cefa9076967ab300682271513.content @@ -1,3 +1,3 @@ -html{--light: #fff;--dark: #010101;--gray: #f5f5f5;--bubble: #111;--accent: var(--gray);--bg: var(--light);--text: var(--dark);--theme: #ef7f1a;--title: #4f2c16;--font: 'Metropolis', sans-serif}@media (prefers-color-scheme: dark){*{box-shadow:none !important}html{--bg: var(--dark);--text: var(--light);--accent: var(--bubble)}}.post_title,.post{max-width:750px;margin:0 auto}@font-face{font-family:'Metropolis';font-style:normal;font-weight:400;src:local("Metropolis Regular"),local("Metropolis-Regular"),url("../fonts/Metropolis-Regular.woff2") format("woff2"),url("../fonts/Metropolis-Regular.woff") format("woff")}@font-face{font-family:'Metropolis';font-style:normal;font-weight:300;src:local("Metropolis Light"),local("Metropolis-Light"),url("../fonts/Metropolis-Light.woff2") format("woff2"),url("../fonts/Metropolis-Light.woff") format("woff")}@font-face{font-family:'Metropolis';font-style:italic;font-weight:300;src:local("Metropolis Light Italic"),local("Metropolis-LightItalic"),url("../fonts/Metropolis-LightItalic.woff2") format("woff2"),url("../fonts/Metropolis-LightItalic.woff") format("woff")}@font-face{font-family:'Metropolis';font-style:normal;font-weight:500;src:local("Metropolis Medium"),local("Metropolis-Medium"),url("../fonts/Metropolis-Medium.woff2") format("woff2"),url("../fonts/Metropolis-Medium.woff") format("woff")}@font-face{font-family:'Metropolis';font-style:italic;font-weight:500;src:local("Metropolis Medium Italic"),local("Metropolis-MediumItalic"),url("../fonts/Metropolis-MediumItalic.woff2") format("woff2"),url("../fonts/Metropolis-MediumItalic.woff") format("woff")}@font-face{font-family:'Cookie';font-style:normal;font-weight:400;src:local("Cookie-Regular"),url("../fonts/cookie-v10-latin-regular.woff2") format("woff2"),url("../fonts/cookie-v10-latin-regular.woff") format("woff")}*{box-sizing:border-box;-webkit-appearance:none;margin:0;padding:0}body,html{scroll-behavior:smooth}html{font-size:1.1rem}body{font-family:var(--font);background-color:var(--bg);color:var(--text);text-align:justify;line-height:1.5;margin:0 auto;position:relative;font-kerning:normal;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{text-decoration:none;color:inherit}blockquote{opacity:0.8;padding:1rem;position:relative;quotes:"“" "”" "‘" "’";margin:0.75rem 0;display:flex;flex-flow:row wrap;background-repeat:no-repeat;background-size:5rem;background-position:50% 50%;position:relative}blockquote::before{content:"";padding:1px;position:absolute;top:0;bottom:0;left:0;background:var(--theme)}blockquote p{padding-left:0.5rem 0 !important;font-size:1.1rem !important;width:100%;font-weight:300;font-style:italic}h1,h2,h3,h4,h5{font-family:inherit;font-weight:500;padding:5px 0;margin:15px 0;color:inherit;line-height:1.35}h1{font-size:200%}h2{font-size:175%}h3{font-size:150%}h4{font-size:125%}h5{font-size:120%}h6{font-size:100%}img,svg,video{max-width:100%;vertical-align:middle}img{height:auto;margin:1rem auto;padding:0}main{padding-bottom:45px;flex:1}ul{list-style:none;-webkit-padding-start:0;-moz-padding-start:0}b,strong,em{font-weight:500}hr{border:none;padding:0.5px;background:var(--theme);opacity:0.5;margin:1rem 0}aside h3{position:relative;margin:0 !important}span.pager_link{opacity:0.5}ol{counter-reset:my-awesome-counter;list-style:none !important;padding-left:3rem;margin-left:0.5rem}ol li{margin:0 0 0.5rem 0;counter-increment:my-awesome-counter;position:relative;padding-left:0.5rem !important}ol li::before{content:counter(my-awesome-counter);font-size:1.15rem;display:inline-grid;align-items:center;font-weight:500;position:absolute;--size: 1.8rem;left:-2rem;line-height:var(--size);width:var(--size);height:var(--size);color:var(--theme);border-radius:50%;text-align:center;top:0.25rem;border-right:2px solid var(--theme)}ol li.align::before{top:1rem}.smaller{font-size:0.8rem;color:grey}.pages{color:lightgrey}button{background-color:var(--theme);color:white;margin:0.5em;padding-left:2em;padding-right:2em;padding-top:1em;padding-bottom:1em;font-size:1rem;font-family:inherit;cursor:pointer;border-radius:5px;transition:0.5s}button:hover{background-color:black;color:white}.index-title h1{margin-left:0.5em;font-size:4em;font-family:'Signika', sans-serif;text-transform:uppercase;margin-top:0.5em;color:var(--title);text-shadow:1px 1px 2px lightgrey;width:30%}@media (min-width: 960px){.index-title h1{margin-left:2em;font-size:5em}}@media screen and (min-width: 769px){.nav-menu a{display:inline-block;height:initial;text-align:left}}.video{overflow:hidden;padding-bottom:56.25%;position:relative;height:0;margin:1.5rem 0;border-radius:1rem;background-color:var(--bg);box-shadow:0 1rem 4rem rgba(0,0,0,0.17)}.video iframe{left:0;top:0;height:100%;width:100%;position:absolute;transform:scale(1.03)}.copy{position:relative;cursor:pointer;height:1.5rem;width:1.5rem}.copy svg{fill:var(--theme);width:100%;height:100%}.copy::before,.copy::after{content:"";position:absolute;background:var(--theme);color:var(--light);opacity:0;transition:opacity 0.25s ease-in}.copy::before{content:attr(data-share);font-size:0.8rem;width:5.4rem;padding:0.25rem;border-radius:0.25rem;text-align:center;top:-2rem;right:0}.copy_done::before{content:attr(data-copied)}.copy:hover::before,.copy:hover::after{opacity:1}.author,.comment{display:grid;grid-template-columns:4rem 1fr;grid-gap:0 0.75rem;padding:1rem;margin:1.5rem 0;background-color:var(--accent);border-radius:0.5rem;box-shadow:0 0.5rem 2rem rgba(0,0,0,0.12)}.author_name,.comment_name{color:var(--text) !important;font-size:1.25rem;text-transform:capitalize}.author_name,.author_pic,.comment_name,.comment_pic{border:none !important}.author_pic,.comment_pic{padding:0 0.33rem;overflow:hidden}.author_pic img,.comment_pic img{border-radius:50%;margin:0}.author_bio,.comment_bio{padding:0 !important;line-height:1.33}.author_heading,.comment_heading{font-size:0.7rem}.author_meta,.comment_meta{display:flex;flex-flow:column;justify-content:center}.modal{display:none;position:fixed;bottom:0;top:0;left:0;right:0;z-index:9999}.modal_close{margin:25px 0;color:var(--light);border:0;cursor:pointer;padding:5px 15px}.modal_inner{display:inline-flex;flex-direction:column;align-items:center;background:var(--accent);max-width:540px;padding:1.5rem;box-shadow:0 1.5rem 6rem rgba(0,0,0,0.12);border-radius:1rem}.modal_show{overflow:hidden;position:relative}.modal_show::before{position:absolute;content:'';top:0;left:0;width:100%;height:100%;z-index:999;background-color:rgba(0,0,0,0.6)}.modal_show .modal{display:flex;flex-direction:column;align-items:center;justify-content:center}.modal_title{margin:0 !important}.modal::before{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(255,255,255,0.7);z-index:10}.btn{font-size:1rem;margin:1rem 0 1.5rem;padding:0.5rem 2rem;background:var(--theme);box-shadow:0 1rem 4rem rgba(0,0,0,0.5);cursor:pointer;text-align:center;text-transform:uppercase;border-radius:3rem;border:none;outline:none}.btn,.btn_group{width:12rem;display:inline-block;color:var(--light)}.btn_group{position:relative;margin:1rem 0}.btn_group .btn{margin:0}.btn_close{content:"X";width:2.5rem;position:absolute;right:0;top:0;bottom:0;display:grid;align-items:center;text-align:center;font-size:1rem;background-image:url("../images/icons/close.svg");background-size:36% !important;border-left:1px solid var(--bg);z-index:2;cursor:pointer;margin:0}.icon{background-size:75%;background-position:center;background-repeat:no-repeat}.pale{opacity:0.7}.hidden{display:none}.center{text-align:center;margin:5px auto}.wrap{padding:10px 0;max-width:1024px;margin:0 auto}.mt{margin-top:7rem}.link{display:inline-block;width:2.5rem;margin:0 0.25rem;padding:0 0.25rem;opacity:0;transition:opacity 0.3s cubic-bezier(0.39, 0.575, 0.565, 1)}.link_owner:hover .link{opacity:0.9}.link img{margin:0}.solo{grid-column:1/-1}.never{min-height:60vh;background-image:url("../images/icons/sitting.svg");background-position:right bottom;background-repeat:no-repeat;background-size:contain;padding:0 1.5rem;margin-top:6rem}.never_title{text-align:left}@keyframes showMenu{0%{top:100%;opacity:0}100%{top:0;opacity:1}}@keyframes hideMenu{0%{top:0;opacity:1}100%{top:100%;opacity:0}}.align h2,.align h3,.align h4,.align h5,.align h6{margin:0.33rem 0 !important}#logo{position:absolute;width:calc(1rem + 9vw);left:10px;top:-0.5rem}@media (min-width: 960px){#logo{position:fixed}}.nav{position:absolute;top:0;width:100%;transition:height 0.4s cubic-bezier(0.52, 0.16, 0.24, 1);z-index:999}.nav_main_item{display:none !important}@media (min-width: 960px){.nav_main_item{display:inline !important}}.nav_bar{width:100%;position:relative;display:block}@media (min-width: 960px){.nav_bar{display:none}}.nav_bar-wrap{width:1.8rem;height:1.8rem;display:grid;align-items:center;cursor:pointer;z-index:99;min-height:1.5rem}.nav_bar,.nav_bar::after,.nav_bar::before{padding:1px;border-radius:2px;background-color:var(--text)}.nav_bar::after,.nav_bar::before{content:"";position:absolute;width:1.2rem}.nav_bar::before{top:-0.5rem}.nav_bar::after{top:0.5rem;right:0}.nav-body{box-shadow:0 1.5rem 6rem rgba(0,0,0,0.17);position:fixed;right:10px;z-index:1;top:100%;opacity:0;overflow:hidden;background:transparent;background-color:var(--accent);width:16rem;padding:100px 0;min-height:100vh;z-index:1}.nav-body:hover{box-shadow:0 1.5rem 6rem rgba(0,0,0,0.27)}.nav-body a{display:block;padding:12.5px 25px;margin-bottom:2px;border-bottom:1px solid var(--accent)}.nav-body a:hover{color:var(--theme)}.nav-brand{font-family:'Signika', sans-serif;font-size:1.5em !important;padding-top:0 !important;padding-bottom:0 !important;color:var(--title) !important}.nav-close{display:flex;justify-content:flex-start;align-items:center;position:absolute;top:0;right:0;width:100%;padding:25px}.nav-close:after,.nav-close:before{content:'';width:18px;padding:1.5px;background:var(--text);opacity:0.7;position:relative}.nav-close:before{transform:rotate(20deg) translateX(1.5px)}.nav-close:after{transform:rotate(-20deg) translateX(-1.5px)}.nav-drop{cursor:pointer;top:0;bottom:0;z-index:1000}.nav-exit{animation:hideMenu 0.5s cubic-bezier(0.52, 0.16, 0.24, 1) forwards}.nav-menu{position:relative;padding:10px 25px 10px 0;padding-left:15vw;height:100%;max-width:1024px;margin:0 auto;display:flex;align-items:center;justify-content:space-between}@media (min-width: 1150px){.nav-menu{padding-left:3vw}}.nav-menu a{color:inherit;display:block;font-size:105%}.nav-pop{position:fixed;width:100vw;background:rgba(0,0,0,0.05)}.nav-open{animation:showMenu 0.5s cubic-bezier(0.52, 0.16, 0.24, 1) forwards}.nav_item{text-transform:capitalize}.nav_item:hover{background-color:var(--accent)}.post_metadata h1,.post_metadata h3{text-align:center !important}.post_metadata h3{color:gray;font-size:1.2rem;width:100%}.post_metadata svg{width:1rem;height:1rem;fill:var(--theme)}.post_metadata hr{width:100%;background-color:var(--theme)}.post{padding:1rem 1.5rem;margin-top:1.5rem}.post h1,.post h2,.post h3,.post h4,.post h5,.post h6{margin:1rem auto;text-align:left;text-transform:initial;padding:0.25rem 0 0 0}.post p{padding-bottom:0.5rem;padding-top:0.5rem;font-size:1.05rem}.posts{display:flex;justify-content:space-between;flex-flow:row wrap;width:100%;align-items:stretch}.posts:not(.aside){padding:0 30px}.post_content h4{margin:5px 0;text-align:left}.post_content p{line-height:1.65}.post_content p:first-child{margin-top:0;padding-top:0}.post_content a:not(.link){border-bottom:2px solid var(--theme)}.post_content a:not(.link):hover{opacity:0.7}.post_content ol,.post_content ul{padding:0.5rem 0 0.5rem 1.2rem}.post_content li{padding:0.33rem 0}.post_header{background-size:cover;background-repeat:no-repeat;background-position:center;background-attachment:fixed;position:relative;height:48vh;min-height:360px;margin-top:60px;padding:30px}.post_header_tags{position:absolute;bottom:0px}.post_copy{opacity:0;transition:opacity 0.3s ease-out}.post_item{box-shadow:0 0 3rem rgba(0,0,0,0.17);margin:1.25rem 0;border-radius:10px;overflow:hidden;width:100%}.post_item:hover{box-shadow:0 0 5rem rgba(0,0,0,0.255)}@media screen and (min-width: 667px){.post_item{width:47%}}.post_item:hover .post_copy{opacity:1}.post_link{padding:2.5px 0;font-size:1.25em;margin:2.5px 0;text-align:left}.post_meta{overflow:hidden;opacity:0.8;font-size:0.84rem;font-weight:500;display:inline-grid;grid-template-columns:auto 1fr;background-color:var(--light);padding:0;align-items:center;border-radius:0.3rem;color:var(--dark);text-transform:capitalize}.post_meta a:hover{color:var(--theme);text-decoration:underline;opacity:0.9}.post_extra{display:flex;justify-content:flex-end}.post_tag{font-size:0.75rem !important;font-weight:500;background:var(--theme);color:var(--light);padding:0.25rem 0.67rem !important;margin-right:0.25rem;text-transform:uppercase;display:inline-flex;border-radius:5px}.post_title{text-align:center;font-size:2.5rem}.post_author{padding:0.2rem 0.75rem}.post_author a{color:var(--theme);text-decoration:underline}.post_time{background:var(--theme);display:inline-grid;padding:0.2rem 0.75rem;color:var(--light)}.post_card{display:block;position:relative;background-color:var(--dark);border-radius:0.5rem 0.5rem 0 0;background-size:cover;background-position:center;overflow:hidden;height:10rem}.post_card::after{content:'';position:absolute;left:0;right:0;bottom:0;top:0;z-index:1}.post_thumbnail{width:100%;margin:0}.pager{display:flex;justify-content:center;align-content:center;margin:30px auto 0 auto;padding:0 1.5rem;overflow:scroll}.pager,.pager_link{justify-content:center;align-items:center}.pager_link{display:flex;background-color:var(--theme);color:var(--light)}.pager_link:hover{opacity:0.5}.pager_item,.pager_link{height:36px;width:36px;border-radius:50%}.pager_item{margin-left:5px;margin-right:5px;margin-bottom:30px}.pager_item:first-child,.pager_item:last-child{display:none}.pager_item.active,.pager_item.disabled{opacity:0.5}.excerpt{padding:0 10px 1.5rem 10px;position:relative;z-index:1}.excerpt_meta{display:flex;justify-content:space-between;align-items:center;transform:translateY(-2.5rem);position:relative;z-index:5}.waves{max-width:320px;height:5px;display:flex;align-items:center;justify-content:center;flex-direction:column;margin:30px auto}.waves_inner{min-width:18rem;min-height:9rem}.footer{padding:0;color:var(--light);margin:0;background:var(--dark);width:100%;font-size:1.05rem;min-height:75px;position:relative;z-index:1001}.footer a{color:var(--theme);opacity:0.8;transition:opacity 0.3s ease-in-out}.footer a:hover{text-decoration:underline;opacity:1}.footer_inner{display:flex;justify-content:space-between;padding:1.5rem}@media screen and (max-width: 567px){.footer_inner{flex-direction:column}}.comments{position:relative}.comment_reply{margin-left:2rem}.form{display:flex;flex-direction:column;width:100%;background:transparent;height:0;opacity:0;margin:0 0 1rem;transform:translateY(250px);transition:opacity 0.3s ease-in , transform 0.3s ease-in;border-radius:0.67rem}.form_open{height:initial;transform:translateY(0);opacity:1}.form_input{margin:10px 0;font-size:1rem !important;padding:10px 15px !important;-webkit-appearance:none;border-radius:25px;outline:none;transition:all 0.3s ease-out;width:100%;max-width:480px;box-shadow:0 5px 15px 0 rgba(158,174,221,0.2);border:1px solid #eee}.form_input:focus,.form_input:hover{border:1px solid var(--theme)}.form_comment{resize:none;border-radius:15px;min-height:2.5rem !important}.form_label{display:none}.form_submit{margin:0}.reply_btn{width:1.75rem;height:1.75rem;background-image:url("../images/icons/reply.svg");cursor:pointer;margin-top:1rem}.reply_to::before{content:'↷ @'}.g-recaptcha{display:grid;width:100%;background:transparent;border:none;border-radius:0.25rem;margin:1.25rem 0 1.5rem}.g-recaptcha>div,.g-recaptcha iframe{display:grid;width:100% !important;height:6rem !important}.g-recaptcha iframe{transform:scale(1.03);padding:0 0.75rem}code{min-width:100%;max-width:100%}.highlight{display:grid;margin:1.25rem 0}.highlight .highlight{margin:0}.highlight pre{padding:1rem;margin:1.5rem 0;background:var(--bubble) !important;box-shadow:0 0 2.5rem rgba(0,0,0,0.12);border-radius:4px;overflow-x:auto} +html{--light: #fff;--dark: #010101;--gray: #f5f5f5;--bubble: #111;--accent: var(--gray);--bg: var(--light);--text: var(--dark);--theme: #ef7f1a;--title: #4f2c16;--font: 'Metropolis', sans-serif}@media (prefers-color-scheme: dark){*{box-shadow:none !important}html{--bg: var(--dark);--text: var(--light);--accent: var(--bubble)}}.post_title,.post{max-width:750px;margin:0 auto}@font-face{font-family:'Metropolis';font-style:normal;font-weight:400;src:local("Metropolis Regular"),local("Metropolis-Regular"),url("../fonts/Metropolis-Regular.woff2") format("woff2"),url("../fonts/Metropolis-Regular.woff") format("woff")}@font-face{font-family:'Metropolis';font-style:normal;font-weight:300;src:local("Metropolis Light"),local("Metropolis-Light"),url("../fonts/Metropolis-Light.woff2") format("woff2"),url("../fonts/Metropolis-Light.woff") format("woff")}@font-face{font-family:'Metropolis';font-style:italic;font-weight:300;src:local("Metropolis Light Italic"),local("Metropolis-LightItalic"),url("../fonts/Metropolis-LightItalic.woff2") format("woff2"),url("../fonts/Metropolis-LightItalic.woff") format("woff")}@font-face{font-family:'Metropolis';font-style:normal;font-weight:500;src:local("Metropolis Medium"),local("Metropolis-Medium"),url("../fonts/Metropolis-Medium.woff2") format("woff2"),url("../fonts/Metropolis-Medium.woff") format("woff")}@font-face{font-family:'Metropolis';font-style:italic;font-weight:500;src:local("Metropolis Medium Italic"),local("Metropolis-MediumItalic"),url("../fonts/Metropolis-MediumItalic.woff2") format("woff2"),url("../fonts/Metropolis-MediumItalic.woff") format("woff")}@font-face{font-family:'Cookie';font-style:normal;font-weight:400;src:local("Cookie-Regular"),url("../fonts/cookie-v10-latin-regular.woff2") format("woff2"),url("../fonts/cookie-v10-latin-regular.woff") format("woff")}*{box-sizing:border-box;-webkit-appearance:none;margin:0;padding:0}body,html{scroll-behavior:smooth}html{font-size:1.1rem}body{font-family:var(--font);background-color:var(--bg);color:var(--text);text-align:justify;line-height:1.5;margin:0 auto;position:relative;font-kerning:normal;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{text-decoration:none;color:inherit}blockquote{opacity:0.8;padding:1rem;position:relative;quotes:"“" "”" "‘" "’";margin:0.75rem 0;display:flex;flex-flow:row wrap;background-repeat:no-repeat;background-size:5rem;background-position:50% 50%;position:relative}blockquote::before{content:"";padding:1px;position:absolute;top:0;bottom:0;left:0;background:var(--theme)}blockquote p{padding-left:0.5rem 0 !important;font-size:1.1rem !important;width:100%;font-weight:300;font-style:italic}h1,h2,h3,h4,h5{font-family:inherit;font-weight:500;padding:5px 0;margin:15px 0;color:inherit;line-height:1.35}h1{font-size:200%}h2{font-size:175%}h3{font-size:150%}h4{font-size:125%}h5{font-size:120%}h6{font-size:100%}img,svg,video{max-width:100%;vertical-align:middle}img{height:auto;margin:1rem auto;padding:0}main{padding-bottom:45px;flex:1}ul{list-style:none;-webkit-padding-start:0;-moz-padding-start:0}b,strong,em{font-weight:500}hr{border:none;padding:0.5px;background:var(--theme);opacity:0.5;margin:1rem 0}aside h3{position:relative;margin:0 !important}span.pager_link{opacity:0.5}ol{counter-reset:my-awesome-counter;list-style:none !important;padding-left:3rem;margin-left:0.5rem}ol li{margin:0 0 0.5rem 0;counter-increment:my-awesome-counter;position:relative;padding-left:0.5rem !important}ol li::before{content:counter(my-awesome-counter);font-size:1.15rem;display:inline-grid;align-items:center;font-weight:500;position:absolute;--size: 1.8rem;left:-2rem;line-height:var(--size);width:var(--size);height:var(--size);color:var(--theme);border-radius:50%;text-align:center;top:0.25rem;border-right:2px solid var(--theme)}ol li.align::before{top:1rem}.lds-facebook{display:inline-block;position:relative;width:80px;height:80px}.lds-facebook div{display:inline-block;position:absolute;left:8px;width:16px;background:var(--theme);animation:lds-facebook 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite}.lds-facebook div:nth-child(1){left:8px;animation-delay:-0.24s}.lds-facebook div:nth-child(2){left:32px;animation-delay:-0.12s}.lds-facebook div:nth-child(3){left:56px;animation-delay:0}@keyframes lds-facebook{0%{top:8px;height:64px}50%,100%{top:24px;height:32px}}.smaller{font-size:0.8rem;color:grey}.pages{color:lightgrey}button{background-color:var(--theme);color:white;margin:0.5em;padding-left:2em;padding-right:2em;padding-top:1em;padding-bottom:1em;font-size:1rem;font-family:inherit;cursor:pointer;border-radius:5px;transition:0.5s}button:hover{background-color:black;color:white}.index-title h1{margin-left:0.5em;font-size:4em;font-family:'Signika', sans-serif;text-transform:uppercase;margin-top:0.5em;color:var(--title);text-shadow:1px 1px 2px lightgrey;width:30%}@media (min-width: 960px){.index-title h1{margin-left:2em;font-size:5em}}@media screen and (min-width: 769px){.nav-menu a{display:inline-block;height:initial;text-align:left}}.video{overflow:hidden;padding-bottom:56.25%;position:relative;height:0;margin:1.5rem 0;border-radius:1rem;background-color:var(--bg);box-shadow:0 1rem 4rem rgba(0,0,0,0.17)}.video iframe{left:0;top:0;height:100%;width:100%;position:absolute;transform:scale(1.03)}.copy{position:relative;cursor:pointer;height:1.5rem;width:1.5rem}.copy svg{fill:var(--theme);width:100%;height:100%}.copy::before,.copy::after{content:"";position:absolute;background:var(--theme);color:var(--light);opacity:0;transition:opacity 0.25s ease-in}.copy::before{content:attr(data-share);font-size:0.8rem;width:5.4rem;padding:0.25rem;border-radius:0.25rem;text-align:center;top:-2rem;right:0}.copy_done::before{content:attr(data-copied)}.copy:hover::before,.copy:hover::after{opacity:1}.author,.comment{display:grid;grid-template-columns:4rem 1fr;grid-gap:0 0.75rem;padding:1rem;margin:1.5rem 0;background-color:var(--accent);border-radius:0.5rem;box-shadow:0 0.5rem 2rem rgba(0,0,0,0.12)}.author_name,.comment_name{color:var(--text) !important;font-size:1.25rem;text-transform:capitalize}.author_name,.author_pic,.comment_name,.comment_pic{border:none !important}.author_pic,.comment_pic{padding:0 0.33rem;overflow:hidden}.author_pic img,.comment_pic img{border-radius:50%;margin:0}.author_bio,.comment_bio{padding:0 !important;line-height:1.33}.author_heading,.comment_heading{font-size:0.7rem}.author_meta,.comment_meta{display:flex;flex-flow:column;justify-content:center}.modal{display:none;position:fixed;bottom:0;top:0;left:0;right:0;z-index:9999}.modal_close{margin:25px 0;color:var(--light);border:0;cursor:pointer;padding:5px 15px}.modal_inner{display:inline-flex;flex-direction:column;align-items:center;background:var(--accent);max-width:540px;padding:1.5rem;box-shadow:0 1.5rem 6rem rgba(0,0,0,0.12);border-radius:1rem}.modal_show{overflow:hidden;position:relative}.modal_show::before{position:absolute;content:'';top:0;left:0;width:100%;height:100%;z-index:999;background-color:rgba(0,0,0,0.6)}.modal_show .modal{display:flex;flex-direction:column;align-items:center;justify-content:center}.modal_title{margin:0 !important}.modal::before{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(255,255,255,0.7);z-index:10}.btn{font-size:1rem;margin:1rem 0 1.5rem;padding:0.5rem 2rem;background:var(--theme);box-shadow:0 1rem 4rem rgba(0,0,0,0.5);cursor:pointer;text-align:center;text-transform:uppercase;border-radius:3rem;border:none;outline:none}.btn,.btn_group{width:12rem;display:inline-block;color:var(--light)}.btn_group{position:relative;margin:1rem 0}.btn_group .btn{margin:0}.btn_close{content:"X";width:2.5rem;position:absolute;right:0;top:0;bottom:0;display:grid;align-items:center;text-align:center;font-size:1rem;background-image:url("../images/icons/close.svg");background-size:36% !important;border-left:1px solid var(--bg);z-index:2;cursor:pointer;margin:0}.icon{background-size:75%;background-position:center;background-repeat:no-repeat}.pale{opacity:0.7}.hidden{display:none}.center{text-align:center;margin:5px auto}.wrap{padding:10px 0;max-width:1024px;margin:0 auto}.mt{margin-top:7rem}.link{display:inline-block;width:2.5rem;margin:0 0.25rem;padding:0 0.25rem;opacity:0;transition:opacity 0.3s cubic-bezier(0.39, 0.575, 0.565, 1)}.link_owner:hover .link{opacity:0.9}.link img{margin:0}.solo{grid-column:1/-1}.never{min-height:60vh;background-image:url("../images/icons/sitting.svg");background-position:right bottom;background-repeat:no-repeat;background-size:contain;padding:0 1.5rem;margin-top:6rem}.never_title{text-align:left}@keyframes showMenu{0%{top:100%;opacity:0}100%{top:0;opacity:1}}@keyframes hideMenu{0%{top:0;opacity:1}100%{top:100%;opacity:0}}.align h2,.align h3,.align h4,.align h5,.align h6{margin:0.33rem 0 !important}#logo{position:absolute;width:calc(1rem + 9vw);left:10px;top:-0.5rem}@media (min-width: 960px){#logo{position:fixed}}.nav{position:absolute;top:0;width:100%;transition:height 0.4s cubic-bezier(0.52, 0.16, 0.24, 1);z-index:999}.nav_main_item{display:none !important}@media (min-width: 960px){.nav_main_item{display:inline !important}}.nav_bar{width:100%;position:relative;display:block}@media (min-width: 960px){.nav_bar{display:none}}.nav_bar-wrap{width:1.8rem;height:1.8rem;display:grid;align-items:center;cursor:pointer;z-index:99;min-height:1.5rem}.nav_bar,.nav_bar::after,.nav_bar::before{padding:1px;border-radius:2px;background-color:var(--text)}.nav_bar::after,.nav_bar::before{content:"";position:absolute;width:1.2rem}.nav_bar::before{top:-0.5rem}.nav_bar::after{top:0.5rem;right:0}.nav-body{box-shadow:0 1.5rem 6rem rgba(0,0,0,0.17);position:fixed;right:10px;z-index:1;top:100%;opacity:0;overflow:hidden;background:transparent;background-color:var(--accent);width:16rem;padding:100px 0;min-height:100vh;z-index:1}.nav-body:hover{box-shadow:0 1.5rem 6rem rgba(0,0,0,0.27)}.nav-body a{display:block;padding:12.5px 25px;margin-bottom:2px;border-bottom:1px solid var(--accent)}.nav-body a:hover{color:var(--theme)}.nav-brand{font-family:'Signika', sans-serif;font-size:1.5em !important;padding-top:0 !important;padding-bottom:0 !important;color:var(--title) !important}.nav-close{display:flex;justify-content:flex-start;align-items:center;position:absolute;top:0;right:0;width:100%;padding:25px}.nav-close:after,.nav-close:before{content:'';width:18px;padding:1.5px;background:var(--text);opacity:0.7;position:relative}.nav-close:before{transform:rotate(20deg) translateX(1.5px)}.nav-close:after{transform:rotate(-20deg) translateX(-1.5px)}.nav-drop{cursor:pointer;top:0;bottom:0;z-index:1000}.nav-exit{animation:hideMenu 0.5s cubic-bezier(0.52, 0.16, 0.24, 1) forwards}.nav-menu{position:relative;padding:10px 25px 10px 0;padding-left:15vw;height:100%;max-width:1024px;margin:0 auto;display:flex;align-items:center;justify-content:space-between}@media (min-width: 1150px){.nav-menu{padding-left:3vw}}.nav-menu a{color:inherit;display:block;font-size:105%}.nav-pop{position:fixed;width:100vw;background:rgba(0,0,0,0.05)}.nav-open{animation:showMenu 0.5s cubic-bezier(0.52, 0.16, 0.24, 1) forwards}.nav_item{text-transform:capitalize}.nav_item:hover{background-color:var(--accent)}.post_metadata h1,.post_metadata h3{text-align:center !important}.post_metadata h3{color:gray;font-size:1.2rem;width:100%}.post_metadata svg{width:1rem;height:1rem;fill:var(--theme)}.post_metadata hr{width:100%;background-color:var(--theme)}.post{padding:1rem 1.5rem;margin-top:1.5rem}.post h1,.post h2,.post h3,.post h4,.post h5,.post h6{margin:1rem auto;text-align:left;text-transform:initial;padding:0.25rem 0 0 0}.post p{padding-bottom:0.5rem;padding-top:0.5rem;font-size:1.05rem}.posts{display:flex;justify-content:space-between;flex-flow:row wrap;width:100%;align-items:stretch}.posts:not(.aside){padding:0 30px}.post_content h4{margin:5px 0;text-align:left}.post_content p{line-height:1.65}.post_content p:first-child{margin-top:0;padding-top:0}.post_content a:not(.link){border-bottom:2px solid var(--theme)}.post_content a:not(.link):hover{opacity:0.7}.post_content ol,.post_content ul{padding:0.5rem 0 0.5rem 1.2rem}.post_content li{padding:0.33rem 0}.post_header{background-size:cover;background-repeat:no-repeat;background-position:center;background-attachment:fixed;position:relative;height:48vh;min-height:360px;margin-top:60px;padding:30px}.post_header_tags{position:absolute;bottom:0px}.post_copy{opacity:0;transition:opacity 0.3s ease-out}.post_item{box-shadow:0 0 3rem rgba(0,0,0,0.17);margin:1.25rem 0;border-radius:10px;overflow:hidden;width:100%}.post_item:hover{box-shadow:0 0 5rem rgba(0,0,0,0.255)}@media screen and (min-width: 667px){.post_item{width:47%}}.post_item:hover .post_copy{opacity:1}.post_link{padding:2.5px 0;font-size:1.25em;margin:2.5px 0;text-align:left}.post_meta{overflow:hidden;opacity:0.8;font-size:0.84rem;font-weight:500;display:inline-grid;grid-template-columns:auto 1fr;background-color:var(--light);padding:0;align-items:center;border-radius:0.3rem;color:var(--dark);text-transform:capitalize}.post_meta a:hover{color:var(--theme);text-decoration:underline;opacity:0.9}.post_extra{display:flex;justify-content:flex-end}.post_tag{font-size:0.75rem !important;font-weight:500;background:var(--theme);color:var(--light);padding:0.25rem 0.67rem !important;margin-right:0.25rem;text-transform:uppercase;display:inline-flex;border-radius:5px}.post_title{text-align:center;font-size:2.5rem}.post_author{padding:0.2rem 0.75rem}.post_author a{color:var(--theme);text-decoration:underline}.post_time{background:var(--theme);display:inline-grid;padding:0.2rem 0.75rem;color:var(--light)}.post_card{display:block;position:relative;background-color:var(--dark);border-radius:0.5rem 0.5rem 0 0;background-size:cover;background-position:center;overflow:hidden;height:10rem}.post_card::after{content:'';position:absolute;left:0;right:0;bottom:0;top:0;z-index:1}.post_thumbnail{width:100%;margin:0}.pager{display:flex;justify-content:center;align-content:center;margin:30px auto 0 auto;padding:0 1.5rem;overflow:scroll}.pager,.pager_link{justify-content:center;align-items:center}.pager_link{display:flex;background-color:var(--theme);color:var(--light)}.pager_link:hover{opacity:0.5}.pager_item,.pager_link{height:36px;width:36px;border-radius:50%}.pager_item{margin-left:5px;margin-right:5px;margin-bottom:30px}.pager_item:first-child,.pager_item:last-child{display:none}.pager_item.active,.pager_item.disabled{opacity:0.5}.excerpt{padding:0 10px 1.5rem 10px;position:relative;z-index:1}.excerpt_meta{display:flex;justify-content:space-between;align-items:center;transform:translateY(-2.5rem);position:relative;z-index:5}.waves{max-width:320px;height:5px;display:flex;align-items:center;justify-content:center;flex-direction:column;margin:30px auto}.waves_inner{min-width:18rem;min-height:9rem}.footer{padding:0;color:var(--light);margin:0;background:var(--dark);width:100%;font-size:1.05rem;min-height:75px;position:relative;z-index:1001}.footer a{color:var(--theme);opacity:0.8;transition:opacity 0.3s ease-in-out}.footer a:hover{text-decoration:underline;opacity:1}.footer_inner{display:flex;justify-content:space-between;padding:1.5rem}@media screen and (max-width: 567px){.footer_inner{flex-direction:column}}.comments{position:relative}.comment_reply{margin-left:2rem}.form{display:flex;flex-direction:column;width:100%;background:transparent;height:0;opacity:0;margin:0 0 1rem;transform:translateY(250px);transition:opacity 0.3s ease-in , transform 0.3s ease-in;border-radius:0.67rem}.form_open{height:initial;transform:translateY(0);opacity:1}.form_input{margin:10px 0;font-size:1rem !important;padding:10px 15px !important;-webkit-appearance:none;border-radius:25px;outline:none;transition:all 0.3s ease-out;width:100%;max-width:480px;box-shadow:0 5px 15px 0 rgba(158,174,221,0.2);border:1px solid #eee}.form_input:focus,.form_input:hover{border:1px solid var(--theme)}.form_comment{resize:none;border-radius:15px;min-height:2.5rem !important}.form_label{display:none}.form_submit{margin:0}.reply_btn{width:1.75rem;height:1.75rem;background-image:url("../images/icons/reply.svg");cursor:pointer;margin-top:1rem}.reply_to::before{content:'↷ @'}.g-recaptcha{display:grid;width:100%;background:transparent;border:none;border-radius:0.25rem;margin:1.25rem 0 1.5rem}.g-recaptcha>div,.g-recaptcha iframe{display:grid;width:100% !important;height:6rem !important}.g-recaptcha iframe{transform:scale(1.03);padding:0 0.75rem}code{min-width:100%;max-width:100%}.highlight{display:grid;margin:1.25rem 0}.highlight .highlight{margin:0}.highlight pre{padding:1rem;margin:1.5rem 0;background:var(--bubble) !important;box-shadow:0 0 2.5rem rgba(0,0,0,0.12);border-radius:4px;overflow-x:auto} /*# sourceMappingURL=styles.css.map */ \ No newline at end of file diff --git a/resources/_gen/assets/sass/sass/main.sass_ca26857cefa9076967ab300682271513.json b/resources/_gen/assets/sass/sass/main.sass_ca26857cefa9076967ab300682271513.json index 2bdca82..6206197 100644 --- a/resources/_gen/assets/sass/sass/main.sass_ca26857cefa9076967ab300682271513.json +++ b/resources/_gen/assets/sass/sass/main.sass_ca26857cefa9076967ab300682271513.json @@ -1 +1 @@ -{"Target":"css/styles.81fc9dcfcb077dbc7795c2d9bea683156e810cfc4f87e6b7e041342370eb881345397133b82d6d9535099fca88bbc373801118187c66923dfbe7f5a095185cb5.css","MediaType":"text/css","Data":{"Integrity":"sha512-gfydz8sHfbx3lcLZvqaDFW6BDPxPh+a34EE0I3DriBNFOXEzuC1tlTUJn8qIu8NzgBEYGHxmkj375/WglRhctQ=="}} \ No newline at end of file +{"Target":"css/styles.d723ab5bad08d2c572c024d8d09a65ec188cfe915c7af6881832b1ab1752b26b735aec960d0b0189250ddd3d6b08c8570af2672f06921d01746410cbeb883ba1.css","MediaType":"text/css","Data":{"Integrity":"sha512-1yOrW60I0sVywCTY0Jpl7BiM/pFcevaIGDKxqxdSsmtzWuyWDQsBiSUN3T1rCMhXCvJnLwaSHQF0ZBDL64g7oQ=="}} \ No newline at end of file diff --git a/static/js/redzuurdesem.js b/static/js/redzuurdesem.js new file mode 100644 index 0000000..730edf5 --- /dev/null +++ b/static/js/redzuurdesem.js @@ -0,0 +1,30 @@ +(function() { + var fbposts = document.querySelector('#fbposts'); + function whoops(error) { + console.log(error); + fbposts.innerHTML = "
  • Er is iets misgelopen bij het ophalen van Facebook posts.
  • "; + } + function parseFeed(response) { + if(response && !response.error) { + var html = ""; + + response.data.forEach(function(elem) { + var id = elem.id.substring(elem.id.indexOf('_') + 1, elem.id.length); + html += "
  • "; + }); + + fbposts.innerHTML = html; + FB.XFBML.parse(fbposts); + } else { + whoops(response.error); + } + } + + window.fbAsyncInit = function() { + try { + FB.api("/redzuurdesem/feed?limit=4&access_token=" + window.fbtoken, parseFeed); + } catch(e) { + whoops(e); + } + } +})() diff --git a/themes/desem-swift-theme/assets/sass/_components.sass b/themes/desem-swift-theme/assets/sass/_components.sass index 340ad8d..2de8384 100644 --- a/themes/desem-swift-theme/assets/sass/_components.sass +++ b/themes/desem-swift-theme/assets/sass/_components.sass @@ -1,4 +1,39 @@ +.lds-facebook + display: inline-block + position: relative + width: 80px + height: 80px + + div + display: inline-block + position: absolute + left: 8px + width: 16px + background: var(--theme) + animation: lds-facebook 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite + + div:nth-child(1) + left: 8px; + animation-delay: -0.24s + + div:nth-child(2) + left: 32px + animation-delay: -0.12s + + div:nth-child(3) + left: 56px + animation-delay: 0 + +@keyframes lds-facebook + 0% + top: 8px + height: 64px + + 50%, 100% + top: 24px + height: 32px + .smaller font-size: 0.8rem color: grey diff --git a/themes/desem-swift-theme/exampleSite/.gitlab-ci.yml b/themes/desem-swift-theme/exampleSite/.gitlab-ci.yml deleted file mode 100644 index 0be0e69..0000000 --- a/themes/desem-swift-theme/exampleSite/.gitlab-ci.yml +++ /dev/null @@ -1,14 +0,0 @@ -image: monachus/hugo - -variables: - GIT_SUBMODULE_STRATEGY: recursive - -pages: - script: - - cd exampleSite - - hugo --themesDir=../.. -d ../public - artifacts: - paths: - - public - only: - - master diff --git a/themes/desem-swift-theme/exampleSite/config.toml b/themes/desem-swift-theme/exampleSite/config.toml deleted file mode 100644 index d39e5d6..0000000 --- a/themes/desem-swift-theme/exampleSite/config.toml +++ /dev/null @@ -1,32 +0,0 @@ -baseurl = "https://example.com/" # Include trailing slash -title = "Hugo Themes" -theme = "hugo-swift-theme" -author = "Steve Francia" -copyright = "Copyright © 2008–2018, Steve Francia and the Hugo Authors; all rights reserved." -canonifyurls = true -paginate = 4 -# Enable syntax highlighting -# comment on delete the following lines 11 ~ 13 -pygmentsCodefences = true -pygmentsCodefencesGuessSyntax = true - -[params] - # ga_analytics = "" # google analytics ID e.g UA-116386578-1 - - # ga_verify = "" # google verification code e.g 5jb-rxeBfITeJQKOuUss3ud6FPGTxXkCho-ZN5qlrZg - # twitter = "" # twitter handle e.g @weru - # logo = "logo.png" - # author = "Weru" # default author - # image = "placeholder-image.png" # used whenever a page image is not set - # blogDir = "blogFolderName" # uncomment and edit to exclude normal pages ... see issue #57 -# [params.staticman] -# endpoint = "" # URL of your own API deployment (without trailing slash), default: "https://staticman-frama.herokuapp.com" -# gitProvider = "github" # Either "github" or "gitlab" -# username = "username" # GitHub/GitLab user name -# repository = "repo" # GitHub/GitLab user name -# branch = "master" # Branch holding the source code for your site, should match the `branch` parameter in `staticman.yml` -# -# # If you use reCAPTCHA v2, you must also set these parameters in staticman.yml -# [Params.staticman.reCaptcha] -# siteKey = "" # Use your own site key, you need to apply for one on Google -# secret = "" # ENCRYPT your password by going to https:///v3/encrypt/ diff --git a/themes/desem-swift-theme/exampleSite/content/about.md b/themes/desem-swift-theme/exampleSite/content/about.md deleted file mode 100644 index 42101bc..0000000 --- a/themes/desem-swift-theme/exampleSite/content/about.md +++ /dev/null @@ -1,18 +0,0 @@ -+++ -title = "About Hugo" -date = "2014-04-09" -image = 'read.jpg' -+++ - -Hugo is the **world’s fastest framework for building websites**. It is written in Go. - -It makes use of a variety of open source projects including: - -* https://github.com/russross/blackfriday -* https://github.com/alecthomas/chroma -* https://github.com/muesli/smartcrop -* https://github.com/spf13/cobra -* https://github.com/spf13/viper - -Learn more and contribute on [GitHub](https://github.com/gohugoio). - diff --git a/themes/desem-swift-theme/exampleSite/content/post/creating-a-new-theme.md b/themes/desem-swift-theme/exampleSite/content/post/creating-a-new-theme.md deleted file mode 100644 index d4b5e92..0000000 --- a/themes/desem-swift-theme/exampleSite/content/post/creating-a-new-theme.md +++ /dev/null @@ -1,1143 +0,0 @@ ---- -author: "Michael Henderson" -date: 2014-09-28 -title: Creating a New Theme -image: 'artist.jpg' ---- - -## Introduction - -This tutorial will show you how to create a simple theme in Hugo. I assume that you are familiar with HTML, the bash command line, and that you are comfortable using Markdown to format content. I'll explain how Hugo uses templates and how you can organize your templates to create a theme. I won't cover using CSS to style your theme. - -We'll start with creating a new site with a very basic template. Then we'll add in a few pages and posts. With small variations on that, you will be able to create many different types of web sites. - -In this tutorial, commands that you enter will start with the "$" prompt. The output will follow. Lines that start with "#" are comments that I've added to explain a point. When I show updates to a file, the ":wq" on the last line means to save the file. - -Here's an example: - -``` -## this is a comment -$ echo this is a command -this is a command - -## edit the file -$ vi foo.md -+++ -date = "2014-09-28" -title = "creating a new theme" -+++ - -bah and humbug -:wq - -## show it -$ cat foo.md -+++ -date = "2014-09-28" -title = "creating a new theme" -+++ - -bah and humbug -$ -``` - - -## Some Definitions - -There are a few concepts that you need to understand before creating a theme. - -### Skins - -Skins are the files responsible for the look and feel of your site. It’s the CSS that controls colors and fonts, it’s the Javascript that determines actions and reactions. It’s also the rules that Hugo uses to transform your content into the HTML that the site will serve to visitors. - -You have two ways to create a skin. The simplest way is to create it in the ```layouts/``` directory. If you do, then you don’t have to worry about configuring Hugo to recognize it. The first place that Hugo will look for rules and files is in the ```layouts/``` directory so it will always find the skin. - -Your second choice is to create it in a sub-directory of the ```themes/``` directory. If you do, then you must always tell Hugo where to search for the skin. It’s extra work, though, so why bother with it? - -The difference between creating a skin in ```layouts/``` and creating it in ```themes/``` is very subtle. A skin in ```layouts/``` can’t be customized without updating the templates and static files that it is built from. A skin created in ```themes/```, on the other hand, can be and that makes it easier for other people to use it. - -The rest of this tutorial will call a skin created in the ```themes/``` directory a theme. - -Note that you can use this tutorial to create a skin in the ```layouts/``` directory if you wish to. The main difference will be that you won’t need to update the site’s configuration file to use a theme. - -### The Home Page - -The home page, or landing page, is the first page that many visitors to a site see. It is the index.html file in the root directory of the web site. Since Hugo writes files to the public/ directory, our home page is public/index.html. - -### Site Configuration File - -When Hugo runs, it looks for a configuration file that contains settings that override default values for the entire site. The file can use TOML, YAML, or JSON. I prefer to use TOML for my configuration files. If you prefer to use JSON or YAML, you’ll need to translate my examples. You’ll also need to change the name of the file since Hugo uses the extension to determine how to process it. - -Hugo translates Markdown files into HTML. By default, Hugo expects to find Markdown files in your ```content/``` directory and template files in your ```themes/``` directory. It will create HTML files in your ```public/``` directory. You can change this by specifying alternate locations in the configuration file. - -### Content - -Content is stored in text files that contain two sections. The first section is the “front matter,” which is the meta-information on the content. The second section contains Markdown that will be converted to HTML. - -#### Front Matter - -The front matter is information about the content. Like the configuration file, it can be written in TOML, YAML, or JSON. Unlike the configuration file, Hugo doesn’t use the file’s extension to know the format. It looks for markers to signal the type. TOML is surrounded by “`+++`”, YAML by “`---`”, and JSON is enclosed in curly braces. I prefer to use TOML, so you’ll need to translate my examples if you prefer YAML or JSON. - -The information in the front matter is passed into the template before the content is rendered into HTML. - -#### Markdown - -Content is written in Markdown which makes it easier to create the content. Hugo runs the content through a Markdown engine to create the HTML which will be written to the output file. - -### Template Files - -Hugo uses template files to render content into HTML. Template files are a bridge between the content and presentation. Rules in the template define what content is published, where it's published to, and how it will rendered to the HTML file. The template guides the presentation by specifying the style to use. - -There are three types of templates: single, list, and partial. Each type takes a bit of content as input and transforms it based on the commands in the template. - -Hugo uses its knowledge of the content to find the template file used to render the content. If it can’t find a template that is an exact match for the content, it will shift up a level and search from there. It will continue to do so until it finds a matching template or runs out of templates to try. If it can’t find a template, it will use the default template for the site. - -Please note that you can use the front matter to influence Hugo’s choice of templates. - -#### Single Template - -A single template is used to render a single piece of content. For example, an article or post would be a single piece of content and use a single template. - -#### List Template - -A list template renders a group of related content. That could be a summary of recent postings or all articles in a category. List templates can contain multiple groups. - -The homepage template is a special type of list template. Hugo assumes that the home page of your site will act as the portal for the rest of the content in the site. - -#### Partial Template - -A partial template is a template that can be included in other templates. Partial templates must be called using the “partial” template command. They are very handy for rolling up common behavior. For example, your site may have a banner that all pages use. Instead of copying the text of the banner into every single and list template, you could create a partial with the banner in it. That way if you decide to change the banner, you only have to change the partial template. - -## Create a New Site - -Let's use Hugo to create a new web site. I'm a Mac user, so I'll create mine in my home directory, in the Sites folder. If you're using Linux, you might have to create the folder first. - -The "new site" command will create a skeleton of a site. It will give you the basic directory structure and a useable configuration file. - -``` -$ hugo new site ~/Sites/zafta -$ cd ~/Sites/zafta -$ ls -l -total 8 -drwxr-xr-x 7 quoha staff 238 Sep 29 16:49 . -drwxr-xr-x 3 quoha staff 102 Sep 29 16:49 .. -drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 archetypes --rw-r--r-- 1 quoha staff 82 Sep 29 16:49 config.toml -drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 content -drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 layouts -drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 static -$ -``` - -Take a look in the content/ directory to confirm that it is empty. - -The other directories (archetypes/, layouts/, and static/) are used when customizing a theme. That's a topic for a different tutorial, so please ignore them for now. - -### Generate the HTML For the New Site - -Running the `hugo` command with no options will read all the available content and generate the HTML files. It will also copy all static files (that's everything that's not content). Since we have an empty site, it won't do much, but it will do it very quickly. - -``` -$ hugo --verbose -INFO: 2014/09/29 Using config file: config.toml -INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ -WARN: 2014/09/29 Unable to locate layout: [index.html _default/list.html _default/single.html] -WARN: 2014/09/29 Unable to locate layout: [404.html] -0 draft content -0 future content -0 pages created -0 tags created -0 categories created -in 2 ms -$ -``` - -The "`--verbose`" flag gives extra information that will be helpful when we build the template. Every line of the output that starts with "INFO:" or "WARN:" is present because we used that flag. The lines that start with "WARN:" are warning messages. We'll go over them later. - -We can verify that the command worked by looking at the directory again. - -``` -$ ls -l -total 8 -drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 archetypes --rw-r--r-- 1 quoha staff 82 Sep 29 16:49 config.toml -drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 content -drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 layouts -drwxr-xr-x 4 quoha staff 136 Sep 29 17:02 public -drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 static -$ -``` - -See that new public/ directory? Hugo placed all generated content there. When you're ready to publish your web site, that's the place to start. For now, though, let's just confirm that we have what we'd expect from a site with no content. - -``` -$ ls -l public -total 16 --rw-r--r-- 1 quoha staff 416 Sep 29 17:02 index.xml --rw-r--r-- 1 quoha staff 262 Sep 29 17:02 sitemap.xml -$ -``` - -Hugo created two XML files, which is standard, but there are no HTML files. - - - -### Test the New Site - -Verify that you can run the built-in web server. It will dramatically shorten your development cycle if you do. Start it by running the "server" command. If it is successful, you will see output similar to the following: - -``` -$ hugo server --verbose -INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml -INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ -WARN: 2014/09/29 Unable to locate layout: [index.html _default/list.html _default/single.html] -WARN: 2014/09/29 Unable to locate layout: [404.html] -0 draft content -0 future content -0 pages created -0 tags created -0 categories created -in 2 ms -Serving pages from /Users/quoha/Sites/zafta/public -Web Server is available at http://localhost:1313 -Press Ctrl+C to stop -``` - -Connect to the listed URL (it's on the line that starts with "Web Server"). If everything is working correctly, you should get a page that shows the following: - -``` -index.xml -sitemap.xml -``` - -That's a listing of your public/ directory. Hugo didn't create a home page because our site has no content. When there's no index.html file in a directory, the server lists the files in the directory, which is what you should see in your browser. - -Let’s go back and look at those warnings again. - -``` -WARN: 2014/09/29 Unable to locate layout: [index.html _default/list.html _default/single.html] -WARN: 2014/09/29 Unable to locate layout: [404.html] -``` - -That second warning is easier to explain. We haven’t created a template to be used to generate “page not found errors.” The 404 message is a topic for a separate tutorial. - -Now for the first warning. It is for the home page. You can tell because the first layout that it looked for was “index.html.” That’s only used by the home page. - -I like that the verbose flag causes Hugo to list the files that it's searching for. For the home page, they are index.html, _default/list.html, and _default/single.html. There are some rules that we'll cover later that explain the names and paths. For now, just remember that Hugo couldn't find a template for the home page and it told you so. - -At this point, you've got a working installation and site that we can build upon. All that’s left is to add some content and a theme to display it. - -## Create a New Theme - -Hugo doesn't ship with a default theme. There are a few available (I counted a dozen when I first installed Hugo) and Hugo comes with a command to create new themes. - -We're going to create a new theme called "zafta." Since the goal of this tutorial is to show you how to fill out the files to pull in your content, the theme will not contain any CSS. In other words, ugly but functional. - -All themes have opinions on content and layout. For example, Zafta uses "post" over "blog". Strong opinions make for simpler templates but differing opinions make it tougher to use themes. When you build a theme, consider using the terms that other themes do. - - -### Create a Skeleton - -Use the hugo "new" command to create the skeleton of a theme. This creates the directory structure and places empty files for you to fill out. - -``` -$ hugo new theme zafta - -$ ls -l -total 8 -drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 archetypes --rw-r--r-- 1 quoha staff 82 Sep 29 16:49 config.toml -drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 content -drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 layouts -drwxr-xr-x 4 quoha staff 136 Sep 29 17:02 public -drwxr-xr-x 2 quoha staff 68 Sep 29 16:49 static -drwxr-xr-x 3 quoha staff 102 Sep 29 17:31 themes - -$ find themes -type f | xargs ls -l --rw-r--r-- 1 quoha staff 1081 Sep 29 17:31 themes/zafta/LICENSE.md --rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/archetypes/default.md --rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/_default/list.html --rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/_default/single.html --rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/index.html --rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/partials/footer.html --rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/partials/header.html --rw-r--r-- 1 quoha staff 93 Sep 29 17:31 themes/zafta/theme.toml -$ -``` - -The skeleton includes templates (the files ending in .html), license file, a description of your theme (the theme.toml file), and an empty archetype. - -Please take a minute to fill out the theme.toml and LICENSE.md files. They're optional, but if you're going to be distributing your theme, it tells the world who to praise (or blame). It's also nice to declare the license so that people will know how they can use the theme. - -``` -$ vi themes/zafta/theme.toml -author = "michael d henderson" -description = "a minimal working template" -license = "MIT" -name = "zafta" -source_repo = "" -tags = ["tags", "categories"] -:wq - -## also edit themes/zafta/LICENSE.md and change -## the bit that says "YOUR_NAME_HERE" -``` - -Note that the the skeleton's template files are empty. Don't worry, we'll be changing that shortly. - -``` -$ find themes/zafta -name '*.html' | xargs ls -l --rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/_default/list.html --rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/_default/single.html --rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/index.html --rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/partials/footer.html --rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/partials/header.html -$ -``` - - - -### Update the Configuration File to Use the Theme - -Now that we've got a theme to work with, it's a good idea to add the theme name to the configuration file. This is optional, because you can always add "-t zafta" on all your commands. I like to put it the configuration file because I like shorter command lines. If you don't put it in the configuration file or specify it on the command line, you won't use the template that you're expecting to. - -Edit the file to add the theme, add a title for the site, and specify that all of our content will use the TOML format. - -``` -$ vi config.toml -theme = "zafta" -baseurl = "" -languageCode = "en-us" -title = "zafta - totally refreshing" -MetaDataFormat = "toml" -:wq - -$ -``` - -### Generate the Site - -Now that we have an empty theme, let's generate the site again. - -``` -$ hugo --verbose -INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml -INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/ -INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ -WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] -0 draft content -0 future content -0 pages created -0 tags created -0 categories created -in 2 ms -$ -``` - -Did you notice that the output is different? The warning message for the home page has disappeared and we have an additional information line saying that Hugo is syncing from the theme's directory. - -Let's check the public/ directory to see what Hugo's created. - -``` -$ ls -l public -total 16 -drwxr-xr-x 2 quoha staff 68 Sep 29 17:56 css --rw-r--r-- 1 quoha staff 0 Sep 29 17:56 index.html --rw-r--r-- 1 quoha staff 407 Sep 29 17:56 index.xml -drwxr-xr-x 2 quoha staff 68 Sep 29 17:56 js --rw-r--r-- 1 quoha staff 243 Sep 29 17:56 sitemap.xml -$ -``` - -Notice four things: - -1. Hugo created a home page. This is the file public/index.html. -2. Hugo created a css/ directory. -3. Hugo created a js/ directory. -4. Hugo claimed that it created 0 pages. It created a file and copied over static files, but didn't create any pages. That's because it considers a "page" to be a file created directly from a content file. It doesn't count things like the index.html files that it creates automatically. - -#### The Home Page - -Hugo supports many different types of templates. The home page is special because it gets its own type of template and its own template file. The file, layouts/index.html, is used to generate the HTML for the home page. The Hugo documentation says that this is the only required template, but that depends. Hugo's warning message shows that it looks for three different templates: - -``` -WARN: 2014/09/29 Unable to locate layout: [index.html _default/list.html _default/single.html] -``` - -If it can't find any of these, it completely skips creating the home page. We noticed that when we built the site without having a theme installed. - -When Hugo created our theme, it created an empty home page template. Now, when we build the site, Hugo finds the template and uses it to generate the HTML for the home page. Since the template file is empty, the HTML file is empty, too. If the template had any rules in it, then Hugo would have used them to generate the home page. - -``` -$ find . -name index.html | xargs ls -l --rw-r--r-- 1 quoha staff 0 Sep 29 20:21 ./public/index.html --rw-r--r-- 1 quoha staff 0 Sep 29 17:31 ./themes/zafta/layouts/index.html -$ -``` - -#### The Magic of Static - -Hugo does two things when generating the site. It uses templates to transform content into HTML and it copies static files into the site. Unlike content, static files are not transformed. They are copied exactly as they are. - -Hugo assumes that your site will use both CSS and JavaScript, so it creates directories in your theme to hold them. Remember opinions? Well, Hugo's opinion is that you'll store your CSS in a directory named css/ and your JavaScript in a directory named js/. If you don't like that, you can change the directory names in your theme directory or even delete them completely. Hugo's nice enough to offer its opinion, then behave nicely if you disagree. - -``` -$ find themes/zafta -type d | xargs ls -ld -drwxr-xr-x 7 quoha staff 238 Sep 29 17:38 themes/zafta -drwxr-xr-x 3 quoha staff 102 Sep 29 17:31 themes/zafta/archetypes -drwxr-xr-x 5 quoha staff 170 Sep 29 17:31 themes/zafta/layouts -drwxr-xr-x 4 quoha staff 136 Sep 29 17:31 themes/zafta/layouts/_default -drwxr-xr-x 4 quoha staff 136 Sep 29 17:31 themes/zafta/layouts/partials -drwxr-xr-x 4 quoha staff 136 Sep 29 17:31 themes/zafta/static -drwxr-xr-x 2 quoha staff 68 Sep 29 17:31 themes/zafta/static/css -drwxr-xr-x 2 quoha staff 68 Sep 29 17:31 themes/zafta/static/js -$ -``` - -## The Theme Development Cycle - -When you're working on a theme, you will make changes in the theme's directory, rebuild the site, and check your changes in the browser. Hugo makes this very easy: - -1. Purge the public/ directory. -2. Run the built in web server in watch mode. -3. Open your site in a browser. -4. Update the theme. -5. Glance at your browser window to see changes. -6. Return to step 4. - -I’ll throw in one more opinion: never work on a theme on a live site. Always work on a copy of your site. Make changes to your theme, test them, then copy them up to your site. For added safety, use a tool like Git to keep a revision history of your content and your theme. Believe me when I say that it is too easy to lose both your mind and your changes. - -Check the main Hugo site for information on using Git with Hugo. - -### Purge the public/ Directory - -When generating the site, Hugo will create new files and update existing ones in the ```public/``` directory. It will not delete files that are no longer used. For example, files that were created in the wrong directory or with the wrong title will remain. If you leave them, you might get confused by them later. I recommend cleaning out your site prior to generating it. - -Note: If you're building on an SSD, you should ignore this. Churning on a SSD can be costly. - -### Hugo's Watch Option - -Hugo's "`--watch`" option will monitor the content/ and your theme directories for changes and rebuild the site automatically. - -### Live Reload - -Hugo's built in web server supports live reload. As pages are saved on the server, the browser is told to refresh the page. Usually, this happens faster than you can say, "Wow, that's totally amazing." - -### Development Commands - -Use the following commands as the basis for your workflow. - -``` -## purge old files. hugo will recreate the public directory. -## -$ rm -rf public -## -## run hugo in watch mode -## -$ hugo server --watch --verbose -``` - -Here's sample output showing Hugo detecting a change to the template for the home page. Once generated, the web browser automatically reloaded the page. I've said this before, it's amazing. - - -``` -$ rm -rf public -$ hugo server --watch --verbose -INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml -INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/ -INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ -WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] -0 draft content -0 future content -0 pages created -0 tags created -0 categories created -in 2 ms -Watching for changes in /Users/quoha/Sites/zafta/content -Serving pages from /Users/quoha/Sites/zafta/public -Web Server is available at http://localhost:1313 -Press Ctrl+C to stop -INFO: 2014/09/29 File System Event: ["/Users/quoha/Sites/zafta/themes/zafta/layouts/index.html": MODIFY|ATTRIB] -Change detected, rebuilding site - -WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] -0 draft content -0 future content -0 pages created -0 tags created -0 categories created -in 1 ms -``` - -## Update the Home Page Template - -The home page is one of a few special pages that Hugo creates automatically. As mentioned earlier, it looks for one of three files in the theme's layout/ directory: - -1. index.html -2. _default/list.html -3. _default/single.html - -We could update one of the default templates, but a good design decision is to update the most specific template available. That's not a hard and fast rule (in fact, we'll break it a few times in this tutorial), but it is a good generalization. - -### Make a Static Home Page - -Right now, that page is empty because we don't have any content and we don't have any logic in the template. Let's change that by adding some text to the template. - -``` -$ vi themes/zafta/layouts/index.html - - - -

    hugo says hello!

    - - -:wq - -$ -``` - -Build the web site and then verify the results. - -``` -$ hugo --verbose -INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml -INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/ -INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ -WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] -0 draft content -0 future content -0 pages created -0 tags created -0 categories created -in 2 ms - -$ find public -type f -name '*.html' | xargs ls -l --rw-r--r-- 1 quoha staff 78 Sep 29 21:26 public/index.html - -$ cat public/index.html - - - -

    hugo says hello!

    - -``` - -#### Live Reload - -Note: If you're running the server with the `--watch` option, you'll see different content in the file: - -``` -$ cat public/index.html - - - -

    hugo says hello!

    - - -``` - -When you use `--watch`, the Live Reload script is added by Hugo. Look for live reload in the documentation to see what it does and how to disable it. - -### Build a "Dynamic" Home Page - -"Dynamic home page?" Hugo's a static web site generator, so this seems an odd thing to say. I mean let's have the home page automatically reflect the content in the site every time Hugo builds it. We'll use iteration in the template to do that. - -#### Create New Posts - -Now that we have the home page generating static content, let's add some content to the site. We'll display these posts as a list on the home page and on their own page, too. - -Hugo has a command to generate a skeleton post, just like it does for sites and themes. - -``` -$ hugo --verbose new post/first.md -INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml -INFO: 2014/09/29 attempting to create post/first.md of post -INFO: 2014/09/29 curpath: /Users/quoha/Sites/zafta/themes/zafta/archetypes/default.md -ERROR: 2014/09/29 Unable to Cast to map[string]interface{} - -$ -``` - -That wasn't very nice, was it? - -The "new" command uses an archetype to create the post file. Hugo created an empty default archetype file, but that causes an error when there's a theme. For me, the workaround was to create an archetypes file specifically for the post type. - -``` -$ vi themes/zafta/archetypes/post.md -+++ -Description = "" -Tags = [] -Categories = [] -+++ -:wq - -$ find themes/zafta/archetypes -type f | xargs ls -l --rw-r--r-- 1 quoha staff 0 Sep 29 21:53 themes/zafta/archetypes/default.md --rw-r--r-- 1 quoha staff 51 Sep 29 21:54 themes/zafta/archetypes/post.md - -$ hugo --verbose new post/first.md -INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml -INFO: 2014/09/29 attempting to create post/first.md of post -INFO: 2014/09/29 curpath: /Users/quoha/Sites/zafta/themes/zafta/archetypes/post.md -INFO: 2014/09/29 creating /Users/quoha/Sites/zafta/content/post/first.md -/Users/quoha/Sites/zafta/content/post/first.md created - -$ hugo --verbose new post/second.md -INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml -INFO: 2014/09/29 attempting to create post/second.md of post -INFO: 2014/09/29 curpath: /Users/quoha/Sites/zafta/themes/zafta/archetypes/post.md -INFO: 2014/09/29 creating /Users/quoha/Sites/zafta/content/post/second.md -/Users/quoha/Sites/zafta/content/post/second.md created - -$ ls -l content/post -total 16 --rw-r--r-- 1 quoha staff 104 Sep 29 21:54 first.md --rw-r--r-- 1 quoha staff 105 Sep 29 21:57 second.md - -$ cat content/post/first.md -+++ -Categories = [] -Description = "" -Tags = [] -date = "2014-09-29T21:54:53-05:00" -title = "first" - -+++ -my first post - -$ cat content/post/second.md -+++ -Categories = [] -Description = "" -Tags = [] -date = "2014-09-29T21:57:09-05:00" -title = "second" - -+++ -my second post - -$ -``` - -Build the web site and then verify the results. - -``` -$ rm -rf public -$ hugo --verbose -INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml -INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/ -INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ -INFO: 2014/09/29 found taxonomies: map[string]string{"category":"categories", "tag":"tags"} -WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] -0 draft content -0 future content -2 pages created -0 tags created -0 categories created -in 4 ms -$ -``` - -The output says that it created 2 pages. Those are our new posts: - -``` -$ find public -type f -name '*.html' | xargs ls -l --rw-r--r-- 1 quoha staff 78 Sep 29 22:13 public/index.html --rw-r--r-- 1 quoha staff 0 Sep 29 22:13 public/post/first/index.html --rw-r--r-- 1 quoha staff 0 Sep 29 22:13 public/post/index.html --rw-r--r-- 1 quoha staff 0 Sep 29 22:13 public/post/second/index.html -$ -``` - -The new files are empty because because the templates used to generate the content are empty. The homepage doesn't show the new content, either. We have to update the templates to add the posts. - -### List and Single Templates - -In Hugo, we have three major kinds of templates. There's the home page template that we updated previously. It is used only by the home page. We also have "single" templates which are used to generate output for a single content file. We also have "list" templates that are used to group multiple pieces of content before generating output. - -Generally speaking, list templates are named "list.html" and single templates are named "single.html." - -There are three other types of templates: partials, content views, and terms. We will not go into much detail on these. - -### Add Content to the Homepage - -The home page will contain a list of posts. Let's update its template to add the posts that we just created. The logic in the template will run every time we build the site. - -``` -$ vi themes/zafta/layouts/index.html - - - - {{ range first 10 .Data.Pages }} -

    {{ .Title }}

    - {{ end }} - - -:wq - -$ -``` - -Hugo uses the Go template engine. That engine scans the template files for commands which are enclosed between "{{" and "}}". In our template, the commands are: - -1. range -2. .Title -3. end - -The "range" command is an iterator. We're going to use it to go through the first ten pages. Every HTML file that Hugo creates is treated as a page, so looping through the list of pages will look at every file that will be created. - -The ".Title" command prints the value of the "title" variable. Hugo pulls it from the front matter in the Markdown file. - -The "end" command signals the end of the range iterator. The engine loops back to the top of the iteration when it finds "end." Everything between the "range" and "end" is evaluated every time the engine goes through the iteration. In this file, that would cause the title from the first ten pages to be output as heading level one. - -It's helpful to remember that some variables, like .Data, are created before any output files. Hugo loads every content file into the variable and then gives the template a chance to process before creating the HTML files. - -Build the web site and then verify the results. - -``` -$ rm -rf public -$ hugo --verbose -INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml -INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/ -INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ -INFO: 2014/09/29 found taxonomies: map[string]string{"tag":"tags", "category":"categories"} -WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] -0 draft content -0 future content -2 pages created -0 tags created -0 categories created -in 4 ms -$ find public -type f -name '*.html' | xargs ls -l --rw-r--r-- 1 quoha staff 94 Sep 29 22:23 public/index.html --rw-r--r-- 1 quoha staff 0 Sep 29 22:23 public/post/first/index.html --rw-r--r-- 1 quoha staff 0 Sep 29 22:23 public/post/index.html --rw-r--r-- 1 quoha staff 0 Sep 29 22:23 public/post/second/index.html -$ cat public/index.html - - - - -

    second

    - -

    first

    - - - -$ -``` - -Congratulations, the home page shows the title of the two posts. The posts themselves are still empty, but let's take a moment to appreciate what we've done. Your template now generates output dynamically. Believe it or not, by inserting the range command inside of those curly braces, you've learned everything you need to know to build a theme. All that's really left is understanding which template will be used to generate each content file and becoming familiar with the commands for the template engine. - -And, if that were entirely true, this tutorial would be much shorter. There are a few things to know that will make creating a new template much easier. Don't worry, though, that's all to come. - -### Add Content to the Posts - -We're working with posts, which are in the content/post/ directory. That means that their section is "post" (and if we don't do something weird, their type is also "post"). - -Hugo uses the section and type to find the template file for every piece of content. Hugo will first look for a template file that matches the section or type name. If it can't find one, then it will look in the _default/ directory. There are some twists that we'll cover when we get to categories and tags, but for now we can assume that Hugo will try post/single.html, then _default/single.html. - -Now that we know the search rule, let's see what we actually have available: - -``` -$ find themes/zafta -name single.html | xargs ls -l --rw-r--r-- 1 quoha staff 132 Sep 29 17:31 themes/zafta/layouts/_default/single.html -``` - -We could create a new template, post/single.html, or change the default. Since we don't know of any other content types, let's start with updating the default. - -Remember, any content that we haven't created a template for will end up using this template. That can be good or bad. Bad because I know that we're going to be adding different types of content and we're going to end up undoing some of the changes we've made. It's good because we'll be able to see immediate results. It's also good to start here because we can start to build the basic layout for the site. As we add more content types, we'll refactor this file and move logic around. Hugo makes that fairly painless, so we'll accept the cost and proceed. - -Please see the Hugo documentation on template rendering for all the details on determining which template to use. And, as the docs mention, if you're building a single page application (SPA) web site, you can delete all of the other templates and work with just the default single page. That's a refreshing amount of joy right there. - -#### Update the Template File - -``` -$ vi themes/zafta/layouts/_default/single.html - - - - {{ .Title }} - - -

    {{ .Title }}

    - {{ .Content }} - - -:wq - -$ -``` - -Build the web site and verify the results. - -``` -$ rm -rf public -$ hugo --verbose -INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml -INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/ -INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ -INFO: 2014/09/29 found taxonomies: map[string]string{"tag":"tags", "category":"categories"} -WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] -0 draft content -0 future content -2 pages created -0 tags created -0 categories created -in 4 ms - -$ find public -type f -name '*.html' | xargs ls -l --rw-r--r-- 1 quoha staff 94 Sep 29 22:40 public/index.html --rw-r--r-- 1 quoha staff 125 Sep 29 22:40 public/post/first/index.html --rw-r--r-- 1 quoha staff 0 Sep 29 22:40 public/post/index.html --rw-r--r-- 1 quoha staff 128 Sep 29 22:40 public/post/second/index.html - -$ cat public/post/first/index.html - - - - first - - -

    first

    -

    my first post

    - - - - -$ cat public/post/second/index.html - - - - second - - -

    second

    -

    my second post

    - - - -$ -``` - -Notice that the posts now have content. You can go to localhost:1313/post/first to verify. - -### Linking to Content - -The posts are on the home page. Let's add a link from there to the post. Since this is the home page, we'll update its template. - -``` -$ vi themes/zafta/layouts/index.html - - - - {{ range first 10 .Data.Pages }} -

    {{ .Title }}

    - {{ end }} - - -``` - -Build the web site and verify the results. - -``` -$ rm -rf public -$ hugo --verbose -INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml -INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/ -INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ -INFO: 2014/09/29 found taxonomies: map[string]string{"tag":"tags", "category":"categories"} -WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] -0 draft content -0 future content -2 pages created -0 tags created -0 categories created -in 4 ms - -$ find public -type f -name '*.html' | xargs ls -l --rw-r--r-- 1 quoha staff 149 Sep 29 22:44 public/index.html --rw-r--r-- 1 quoha staff 125 Sep 29 22:44 public/post/first/index.html --rw-r--r-- 1 quoha staff 0 Sep 29 22:44 public/post/index.html --rw-r--r-- 1 quoha staff 128 Sep 29 22:44 public/post/second/index.html - -$ cat public/index.html - - - - -

    second

    - -

    first

    - - - - -$ -``` - -### Create a Post Listing - -We have the posts displaying on the home page and on their own page. We also have a file public/post/index.html that is empty. Let's make it show a list of all posts (not just the first ten). - -We need to decide which template to update. This will be a listing, so it should be a list template. Let's take a quick look and see which list templates are available. - -``` -$ find themes/zafta -name list.html | xargs ls -l --rw-r--r-- 1 quoha staff 0 Sep 29 17:31 themes/zafta/layouts/_default/list.html -``` - -As with the single post, we have to decide to update _default/list.html or create post/list.html. We still don't have multiple content types, so let's stay consistent and update the default list template. - -## Creating Top Level Pages - -Let's add an "about" page and display it at the top level (as opposed to a sub-level like we did with posts). - -The default in Hugo is to use the directory structure of the content/ directory to guide the location of the generated html in the public/ directory. Let's verify that by creating an "about" page at the top level: - -``` -$ vi content/about.md -+++ -title = "about" -description = "about this site" -date = "2014-09-27" -slug = "about time" -+++ - -## about us - -i'm speechless -:wq -``` - -Generate the web site and verify the results. - -``` -$ find public -name '*.html' | xargs ls -l --rw-rw-r-- 1 mdhender staff 334 Sep 27 15:08 public/about-time/index.html --rw-rw-r-- 1 mdhender staff 527 Sep 27 15:08 public/index.html --rw-rw-r-- 1 mdhender staff 358 Sep 27 15:08 public/post/first-post/index.html --rw-rw-r-- 1 mdhender staff 0 Sep 27 15:08 public/post/index.html --rw-rw-r-- 1 mdhender staff 342 Sep 27 15:08 public/post/second-post/index.html -``` - -Notice that the page wasn't created at the top level. It was created in a sub-directory named 'about-time/'. That name came from our slug. Hugo will use the slug to name the generated content. It's a reasonable default, by the way, but we can learn a few things by fighting it for this file. - -One other thing. Take a look at the home page. - -``` -$ cat public/index.html - - - -

    creating a new theme

    -

    about

    -

    second

    -

    first

    - - -``` - -Notice that the "about" link is listed with the posts? That's not desirable, so let's change that first. - -``` -$ vi themes/zafta/layouts/index.html - - - -

    posts

    - {{ range first 10 .Data.Pages }} - {{ if eq .Type "post"}} -

    {{ .Title }}

    - {{ end }} - {{ end }} - -

    pages

    - {{ range .Data.Pages }} - {{ if eq .Type "page" }} -

    {{ .Title }}

    - {{ end }} - {{ end }} - - -:wq -``` - -Generate the web site and verify the results. The home page has two sections, posts and pages, and each section has the right set of headings and links in it. - -But, that about page still renders to about-time/index.html. - -``` -$ find public -name '*.html' | xargs ls -l --rw-rw-r-- 1 mdhender staff 334 Sep 27 15:33 public/about-time/index.html --rw-rw-r-- 1 mdhender staff 645 Sep 27 15:33 public/index.html --rw-rw-r-- 1 mdhender staff 358 Sep 27 15:33 public/post/first-post/index.html --rw-rw-r-- 1 mdhender staff 0 Sep 27 15:33 public/post/index.html --rw-rw-r-- 1 mdhender staff 342 Sep 27 15:33 public/post/second-post/index.html -``` - -Knowing that hugo is using the slug to generate the file name, the simplest solution is to change the slug. Let's do it the hard way and change the permalink in the configuration file. - -``` -$ vi config.toml -[permalinks] - page = "/:title/" - about = "/:filename/" -``` - -Generate the web site and verify that this didn't work. Hugo lets "slug" or "URL" override the permalinks setting in the configuration file. Go ahead and comment out the slug in content/about.md, then generate the web site to get it to be created in the right place. - -## Sharing Templates - -If you've been following along, you probably noticed that posts have titles in the browser and the home page doesn't. That's because we didn't put the title in the home page's template (layouts/index.html). That's an easy thing to do, but let's look at a different option. - -We can put the common bits into a shared template that's stored in the themes/zafta/layouts/partials/ directory. - -### Create the Header and Footer Partials - -In Hugo, a partial is a sugar-coated template. Normally a template reference has a path specified. Partials are different. Hugo searches for them along a TODO defined search path. This makes it easier for end-users to override the theme's presentation. - -``` -$ vi themes/zafta/layouts/partials/header.html - - - - {{ .Title }} - - -:wq - -$ vi themes/zafta/layouts/partials/footer.html - - -:wq -``` - -### Update the Home Page Template to Use the Partials - -The most noticeable difference between a template call and a partials call is the lack of path: - -``` -{{ template "theme/partials/header.html" . }} -``` -versus -``` -{{ partial "header.html" . }} -``` -Both pass in the context. - -Let's change the home page template to use these new partials. - -``` -$ vi themes/zafta/layouts/index.html -{{ partial "header.html" . }} - -

    posts

    - {{ range first 10 .Data.Pages }} - {{ if eq .Type "post"}} -

    {{ .Title }}

    - {{ end }} - {{ end }} - -

    pages

    - {{ range .Data.Pages }} - {{ if or (eq .Type "page") (eq .Type "about") }} -

    {{ .Type }} - {{ .Title }} - {{ .RelPermalink }}

    - {{ end }} - {{ end }} - -{{ partial "footer.html" . }} -:wq -``` - -Generate the web site and verify the results. The title on the home page is now "your title here", which comes from the "title" variable in the config.toml file. - -### Update the Default Single Template to Use the Partials - -``` -$ vi themes/zafta/layouts/_default/single.html -{{ partial "header.html" . }} - -

    {{ .Title }}

    - {{ .Content }} - -{{ partial "footer.html" . }} -:wq -``` - -Generate the web site and verify the results. The title on the posts and the about page should both reflect the value in the markdown file. - -## Add “Date Published” to Posts - -It's common to have posts display the date that they were written or published, so let's add that. The front matter of our posts has a variable named "date." It's usually the date the content was created, but let's pretend that's the value we want to display. - -### Add “Date Published” to the Template - -We'll start by updating the template used to render the posts. The template code will look like: - -``` -{{ .Date.Format "Mon, Jan 2, 2006" }} -``` - -Posts use the default single template, so we'll change that file. - -``` -$ vi themes/zafta/layouts/_default/single.html -{{ partial "header.html" . }} - -

    {{ .Title }}

    -

    {{ .Date.Format "Mon, Jan 2, 2006" }}

    - {{ .Content }} - -{{ partial "footer.html" . }} -:wq -``` - -Generate the web site and verify the results. The posts now have the date displayed in them. There's a problem, though. The "about" page also has the date displayed. - -As usual, there are a couple of ways to make the date display only on posts. We could do an "if" statement like we did on the home page. Another way would be to create a separate template for posts. - -The "if" solution works for sites that have just a couple of content types. It aligns with the principle of "code for today," too. - -Let's assume, though, that we've made our site so complex that we feel we have to create a new template type. In Hugo-speak, we're going to create a section template. - -Let's restore the default single template before we forget. - -``` -$ mkdir themes/zafta/layouts/post -$ vi themes/zafta/layouts/_default/single.html -{{ partial "header.html" . }} - -

    {{ .Title }}

    - {{ .Content }} - -{{ partial "footer.html" . }} -:wq -``` - -Now we'll update the post's version of the single template. If you remember Hugo's rules, the template engine will use this version over the default. - -``` -$ vi themes/zafta/layouts/post/single.html -{{ partial "header.html" . }} - -

    {{ .Title }}

    -

    {{ .Date.Format "Mon, Jan 2, 2006" }}

    - {{ .Content }} - -{{ partial "footer.html" . }} -:wq - -``` - -Note that we removed the date logic from the default template and put it in the post template. Generate the web site and verify the results. Posts have dates and the about page doesn't. - -### Don't Repeat Yourself - -DRY is a good design goal and Hugo does a great job supporting it. Part of the art of a good template is knowing when to add a new template and when to update an existing one. While you're figuring that out, accept that you'll be doing some refactoring. Hugo makes that easy and fast, so it's okay to delay splitting up a template. diff --git a/themes/desem-swift-theme/exampleSite/content/post/goisforlovers.md b/themes/desem-swift-theme/exampleSite/content/post/goisforlovers.md deleted file mode 100644 index 3bcf657..0000000 --- a/themes/desem-swift-theme/exampleSite/content/post/goisforlovers.md +++ /dev/null @@ -1,344 +0,0 @@ -+++ -title = "(Hu)go Template Primer" -description = "" -tags = [ - "go", - "golang", - "templates", - "themes", - "development", -] -date = "2014-04-02" -categories = [ - "Development", - "golang", -] -image = "fast-lane.jpg" -+++ - -Hugo uses the excellent [Go][] [html/template][gohtmltemplate] library for -its template engine. It is an extremely lightweight engine that provides a very -small amount of logic. In our experience that it is just the right amount of -logic to be able to create a good static website. If you have used other -template systems from different languages or frameworks you will find a lot of -similarities in Go templates. - -This document is a brief primer on using Go templates. The [Go docs][gohtmltemplate] -provide more details. - -## Introduction to Go Templates - -Go templates provide an extremely simple template language. It adheres to the -belief that only the most basic of logic belongs in the template or view layer. -One consequence of this simplicity is that Go templates parse very quickly. - -A unique characteristic of Go templates is they are content aware. Variables and -content will be sanitized depending on the context of where they are used. More -details can be found in the [Go docs][gohtmltemplate]. - -## Basic Syntax - -Golang templates are HTML files with the addition of variables and -functions. - -**Go variables and functions are accessible within {{ }}** - -Accessing a predefined variable "foo": - - {{ foo }} - -**Parameters are separated using spaces** - -Calling the add function with input of 1, 2: - - {{ add 1 2 }} - -**Methods and fields are accessed via dot notation** - -Accessing the Page Parameter "bar" - - {{ .Params.bar }} - -**Parentheses can be used to group items together** - - {{ if or (isset .Params "alt") (isset .Params "caption") }} Caption {{ end }} - - -## Variables - -Each Go template has a struct (object) made available to it. In hugo each -template is passed either a page or a node struct depending on which type of -page you are rendering. More details are available on the -[variables](/layout/variables) page. - -A variable is accessed by referencing the variable name. - - {{ .Title }} - -Variables can also be defined and referenced. - - {{ $address := "123 Main St."}} - {{ $address }} - - -## Functions - -Go template ship with a few functions which provide basic functionality. The Go -template system also provides a mechanism for applications to extend the -available functions with their own. [Hugo template -functions](/layout/functions) provide some additional functionality we believe -are useful for building websites. Functions are called by using their name -followed by the required parameters separated by spaces. Template -functions cannot be added without recompiling hugo. - -**Example:** - - {{ add 1 2 }} - -## Includes - -When including another template you will pass to it the data it will be -able to access. To pass along the current context please remember to -include a trailing dot. The templates location will always be starting at -the /layout/ directory within Hugo. - -**Example:** - - {{ template "chrome/header.html" . }} - - -## Logic - -Go templates provide the most basic iteration and conditional logic. - -### Iteration - -Just like in Go, the Go templates make heavy use of range to iterate over -a map, array or slice. The following are different examples of how to use -range. - -**Example 1: Using Context** - - {{ range array }} - {{ . }} - {{ end }} - -**Example 2: Declaring value variable name** - - {{range $element := array}} - {{ $element }} - {{ end }} - -**Example 2: Declaring key and value variable name** - - {{range $index, $element := array}} - {{ $index }} - {{ $element }} - {{ end }} - -### Conditionals - -If, else, with, or, & and provide the framework for handling conditional -logic in Go Templates. Like range, each statement is closed with `end`. - - -Go Templates treat the following values as false: - -* false -* 0 -* any array, slice, map, or string of length zero - -**Example 1: If** - - {{ if isset .Params "title" }}

    {{ index .Params "title" }}

    {{ end }} - -**Example 2: If -> Else** - - {{ if isset .Params "alt" }} - {{ index .Params "alt" }} - {{else}} - {{ index .Params "caption" }} - {{ end }} - -**Example 3: And & Or** - - {{ if and (or (isset .Params "title") (isset .Params "caption")) (isset .Params "attr")}} - -**Example 4: With** - -An alternative way of writing "if" and then referencing the same value -is to use "with" instead. With rebinds the context `.` within its scope, -and skips the block if the variable is absent. - -The first example above could be simplified as: - - {{ with .Params.title }}

    {{ . }}

    {{ end }} - -**Example 5: If -> Else If** - - {{ if isset .Params "alt" }} - {{ index .Params "alt" }} - {{ else if isset .Params "caption" }} - {{ index .Params "caption" }} - {{ end }} - -## Pipes - -One of the most powerful components of Go templates is the ability to -stack actions one after another. This is done by using pipes. Borrowed -from unix pipes, the concept is simple, each pipeline's output becomes the -input of the following pipe. - -Because of the very simple syntax of Go templates, the pipe is essential -to being able to chain together function calls. One limitation of the -pipes is that they only can work with a single value and that value -becomes the last parameter of the next pipeline. - -A few simple examples should help convey how to use the pipe. - -**Example 1 :** - - {{ if eq 1 1 }} Same {{ end }} - -is the same as - - {{ eq 1 1 | if }} Same {{ end }} - -It does look odd to place the if at the end, but it does provide a good -illustration of how to use the pipes. - -**Example 2 :** - - {{ index .Params "disqus_url" | html }} - -Access the page parameter called "disqus_url" and escape the HTML. - -**Example 3 :** - - {{ if or (or (isset .Params "title") (isset .Params "caption")) (isset .Params "attr")}} - Stuff Here - {{ end }} - -Could be rewritten as - - {{ isset .Params "caption" | or isset .Params "title" | or isset .Params "attr" | if }} - Stuff Here - {{ end }} - - -## Context (aka. the dot) - -The most easily overlooked concept to understand about Go templates is that {{ . }} -always refers to the current context. In the top level of your template this -will be the data set made available to it. Inside of a iteration it will have -the value of the current item. When inside of a loop the context has changed. . -will no longer refer to the data available to the entire page. If you need to -access this from within the loop you will likely want to set it to a variable -instead of depending on the context. - -**Example:** - - {{ $title := .Site.Title }} - {{ range .Params.tags }} -
  • {{ . }} - {{ $title }}
  • - {{ end }} - -Notice how once we have entered the loop the value of {{ . }} has changed. We -have defined a variable outside of the loop so we have access to it from within -the loop. - -# Hugo Parameters - -Hugo provides the option of passing values to the template language -through the site configuration (for sitewide values), or through the meta -data of each specific piece of content. You can define any values of any -type (supported by your front matter/config format) and use them however -you want to inside of your templates. - - -## Using Content (page) Parameters - -In each piece of content you can provide variables to be used by the -templates. This happens in the [front matter](/content/front-matter). - -An example of this is used in this documentation site. Most of the pages -benefit from having the table of contents provided. Sometimes the TOC just -doesn't make a lot of sense. We've defined a variable in our front matter -of some pages to turn off the TOC from being displayed. - -Here is the example front matter: - -``` ---- -title: "Permalinks" -date: "2013-11-18" -aliases: - - "/doc/permalinks/" -groups: ["extras"] -groups_weight: 30 -notoc: true ---- -``` - -Here is the corresponding code inside of the template: - - {{ if not .Params.notoc }} -
    - {{ .TableOfContents }} -
    - {{ end }} - - - -## Using Site (config) Parameters -In your top-level configuration file (eg, `config.yaml`) you can define site -parameters, which are values which will be available to you in chrome. - -For instance, you might declare: - -```yaml -params: - CopyrightHTML: "Copyright © 2013 John Doe. All Rights Reserved." - TwitterUser: "spf13" - SidebarRecentLimit: 5 -``` - -Within a footer layout, you might then declare a `
    - +