get rid of facebook, add basic indieweb stuff

This commit is contained in:
Wouter Groeneveld 2021-05-08 20:49:35 +02:00
parent 1217575d0d
commit e0658b9e9c
30 changed files with 82 additions and 99 deletions

View File

@ -1,5 +1,5 @@
--- ---
title: "Facebook post op 2020-05-07" title: "2020-05-07"
date: 2020-05-07 date: 2020-05-07
link: https://www.facebook.com/redzuurdesem/posts/3067948703326127 link: https://www.facebook.com/redzuurdesem/posts/3067948703326127
--- ---

View File

@ -1,5 +1,5 @@
--- ---
title: "Facebook post op 2020-05-14" title: "2020-05-14"
date: 2020-05-14 date: 2020-05-14
link: https://www.facebook.com/redzuurdesem/posts/3083224988465165 link: https://www.facebook.com/redzuurdesem/posts/3083224988465165
--- ---

View File

@ -1,5 +1,5 @@
--- ---
title: "Facebook post op 2020-05-17" title: "2020-05-17"
date: 2020-05-17 date: 2020-05-17
link: https://www.facebook.com/redzuurdesem/posts/3092681767519487 link: https://www.facebook.com/redzuurdesem/posts/3092681767519487
--- ---

View File

@ -1,5 +1,5 @@
--- ---
title: "Facebook post op 2020-05-20" title: "2020-05-20"
date: 2020-05-20 date: 2020-05-20
link: https://www.facebook.com/redzuurdesem/posts/3107354282718902 link: https://www.facebook.com/redzuurdesem/posts/3107354282718902
--- ---

View File

@ -1,5 +1,5 @@
--- ---
title: "Facebook post op 2020-06-01" title: "2020-06-01"
date: 2020-06-01 date: 2020-06-01
link: https://www.facebook.com/redzuurdesem/posts/3129244797196517 link: https://www.facebook.com/redzuurdesem/posts/3129244797196517
--- ---

View File

@ -1,5 +1,5 @@
--- ---
title: "Facebook post op 2020-06-13" title: "2020-06-13"
date: 2020-06-13 date: 2020-06-13
link: https://www.facebook.com/redzuurdesem/posts/3159739047480425 link: https://www.facebook.com/redzuurdesem/posts/3159739047480425
--- ---

View File

@ -1,5 +1,5 @@
--- ---
title: "Facebook post op 2020-06-16" title: "2020-06-16"
date: 2020-06-16 date: 2020-06-16
link: https://www.facebook.com/redzuurdesem/posts/3166707546783575 link: https://www.facebook.com/redzuurdesem/posts/3166707546783575
--- ---

View File

@ -1,5 +1,5 @@
--- ---
title: "Facebook post op 2020-06-23" title: "2020-06-23"
date: 2020-06-23 date: 2020-06-23
link: https://www.facebook.com/redzuurdesem/posts/3186200238167639 link: https://www.facebook.com/redzuurdesem/posts/3186200238167639
--- ---

View File

@ -1,5 +1,5 @@
--- ---
title: "Facebook post op 2020-06-27" title: "2020-06-27"
date: 2020-06-27 date: 2020-06-27
link: https://www.facebook.com/redzuurdesem/posts/3196838217103841 link: https://www.facebook.com/redzuurdesem/posts/3196838217103841
--- ---

View File

@ -1,5 +1,5 @@
--- ---
title: "Facebook post op 2020-07-19" title: "2020-07-19"
date: 2020-07-19 date: 2020-07-19
link: https://www.facebook.com/redzuurdesem/posts/3254144931373169 link: https://www.facebook.com/redzuurdesem/posts/3254144931373169
--- ---

View File

@ -1,5 +1,5 @@
--- ---
title: "Facebook post op 2020-07-25" title: "2020-07-25"
date: 2020-07-25 date: 2020-07-25
link: https://www.facebook.com/redzuurdesem/posts/3272455619542100 link: https://www.facebook.com/redzuurdesem/posts/3272455619542100
--- ---

View File

@ -1,5 +1,5 @@
--- ---
title: "Facebook post op 2020-09-06" title: "2020-09-06"
date: 2020-09-06 date: 2020-09-06
link: https://www.facebook.com/redzuurdesem/posts/3413172158803778 link: https://www.facebook.com/redzuurdesem/posts/3413172158803778
--- ---

View File

@ -1,5 +1,5 @@
--- ---
title: "Facebook post op 2020-10-21" title: "2020-10-21"
date: 2020-10-21 date: 2020-10-21
link: https://www.facebook.com/redzuurdesem/posts/3569904153130577 link: https://www.facebook.com/redzuurdesem/posts/3569904153130577
--- ---

View File

@ -1,5 +1,5 @@
--- ---
title: "Facebook post op 2020-11-10" title: "2020-11-10"
date: 2020-11-11 date: 2020-11-11
link: https://www.facebook.com/redzuurdesem/posts/3632033746917617 link: https://www.facebook.com/redzuurdesem/posts/3632033746917617
--- ---

View File

@ -1,5 +1,5 @@
--- ---
title: "Facebook post op 2020-12-01" title: "2020-12-01"
date: 2020-12-01 date: 2020-12-01
link: https://www.facebook.com/redzuurdesem/posts/3691394150981576 link: https://www.facebook.com/redzuurdesem/posts/3691394150981576
--- ---

View File

@ -1,5 +1,5 @@
--- ---
title: "Facebook post op 2020-12-06" title: "2020-12-06"
date: 2020-12-06 date: 2020-12-06
link: https://www.facebook.com/redzuurdesem/posts/3705591246228533 link: https://www.facebook.com/redzuurdesem/posts/3705591246228533
--- ---

View File

@ -1,5 +1,5 @@
--- ---
title: "Facebook post op 2020-12-16" title: "2020-12-16"
date: 2020-12-16 date: 2020-12-16
link: https://www.facebook.com/redzuurdesem/posts/3569904153130577 link: https://www.facebook.com/redzuurdesem/posts/3569904153130577
--- ---

View File

@ -1,5 +1,5 @@
--- ---
title: "Facebook post op 2021-01-20" title: "2021-01-20"
date: 2021-01-20 date: 2021-01-20
link: https://www.facebook.com/redzuurdesem/posts/3823212524466404 link: https://www.facebook.com/redzuurdesem/posts/3823212524466404
--- ---

View File

@ -2,12 +2,11 @@
title: Hallo daar! title: Hallo daar!
aliases: aliases:
- /about/ - /about/
disablefb: true
--- ---
Mijn naam is [Wouter Groeneveld][1] en mijn missie is zuurdesembrood bakken opnieuw populair maken. Mijn naam is [Wouter Groeneveld](https://brainbaking.com/about) en mijn missie is zuurdesembrood bakken opnieuw populair maken.
Mijn grootste passies zijn brood bakken en kennis delen. De vruchtbare combinatie van deze twee dingen betekende de geboorte van deze [blog](/blog) en van [het boek](/boek)! Mijn grootste passies zijn brood bakken en kennis delen. De vruchtbare combinatie van deze twee dingen betekende de geboorte van deze [blog](/post) en van [het boek](/boek)!
### Waarom bakken met zuurdesem? ### Waarom bakken met zuurdesem?
@ -24,10 +23,16 @@ Natuurlijk kan ik niet alleen het woord verspreiden, daarvoor heb ik **je hulp**
1. Door zuurdesembrood te bakken en weg te geven. 1. Door zuurdesembrood te bakken en weg te geven.
2. Door anderen aan te zetten zelf te bakken met een stukje van jouw zuurdesemstarter. 2. Door anderen aan te zetten zelf te bakken met een stukje van jouw zuurdesemstarter.
3. Door de [Facebook groep](https://facebook.com/redzuurdesem) bij te staan met raad en daad. 3. Door het ['Red Zuurdesem'-boek](/boek) aan te raden bij familie en vrienden, en een eerlijke recensie te schrijven.
4. Door het ['Red Zuurdesem'-boek](/boek) aan te raden bij familie en vrienden, en een eerlijke recensie te schrijven.
Als er iets anders is waarmee je graag Red Zuurdesem wenst te helpen, heel graag! Laat gerust een berichtje achter en dan gaan we samen aan de slag. Bedankt! Als er iets anders is waarmee je graag Red Zuurdesem wenst te helpen, heel graag! Laat gerust een berichtje achter via e-mail en dan gaan we samen aan de slag: <span class="meel" style="border-bottom: 2px solid var(--theme); cursor: pointer">zeg hallo</span>.
[1]: https://brainbaking.com/about/ <noscript>
[2]: https://sourdough.com/shop/artisan-baker-association JavaScript is uitgeschakeld. Ik gebruik het om mijn e-mail adres te verbergen om spambots weg te houden. <br/>
Bereik me via: <code>[brood] at [this-domain] punt [belgië-afkorting]</code>.
</noscript>
Bedankt!
[2]: https://sourdough.com/shop/artisan-baker-association

View File

@ -1,6 +1,5 @@
--- ---
title: Pricacy/cookie policy title: Pricacy/cookie policy
disablefb: true
--- ---
## Privacy en cookie policy ## Privacy en cookie policy

View File

@ -2,7 +2,6 @@
title: Zoeken title: Zoeken
aliases: aliases:
- /search/ - /search/
disablefb: true
--- ---
Niet gevonden wat je zocht? Probeer hier je geluk. Niet gevonden wat je zocht? Probeer hier je geluk.

View File

@ -58,24 +58,21 @@
</div> </div>
<hr/> <hr/>
<!-- BLOCK: facebook posts --> <!-- BLOCK: notes -->
<div class='post post_content'> <div class='post post_content'>
<h1> <h1>
<a href="https://facebook.com/redzuurdesem">Laatste Facebook posts</a> &raquo; <a href="/kort">In het kort</a> &raquo;
</h1> </h1>
</div> </div>
<ul class='posts wrap'> <ul class='posts wrap'>
{{- range first 4 (where .Site.RegularPages "Section" "==" "fb") }} {{- range first 4 (where .Site.RegularPages "Section" "==" "kort") }}
{{ partial "excerptfb" . }} {{ partial "excerptkort" . }}
{{- end }} {{- end }}
</ul> </ul>
<script>
window.fbtoken = "{{ .Site.Params.fbtoken }}";
</script>
<div class = 'post post_content'> <div class = 'post post_content'>
<h4> <h4>
<a href="https://facebook.com/redzuurdesem">Bekijk alle Facebook posts</a> &raquo; <a href="/kort">Bekijk alle nieuwtjes</a> &raquo;
</h4> </h4>
</div> </div>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 92 KiB

View File

@ -206,31 +206,6 @@
} }
fromFixedToScrollForSafari(); fromFixedToScrollForSafari();
const fbCommunityHeaderify = () => {
var elem = document.querySelector('#fb-community-header');
if(!elem) return;
var list = [
"Starter dood? Facebook to the rescue",
"Hulp nodig? Laat een berichtje achter",
"Brood mislukt? Laat ons helpen",
"Ongerezen brood? Schakel hulp in",
"Smaakmakers nodig? Brainstorm hier mee",
"moeilijkheden met je deeg? Zo opgelost",
"Desem te zuur? Vraag om tips",
"Eerste experiment gelukt? Deel de vreugde",
"Mooi brood gebakken? Deel de vreugde",
"Lekker brood gebakken? Deel je trots",
"Zuurdesemstarter gemaakt? Deel je trots",
"Prachtige 'brood-foto' gemaakt? Deel je vreugde",
"Trots op je zelfgemaakt brood? Deel je vreugde"
];
var index = Math.floor(Math.random() * list.length);
elem.innerHTML = list[index] + ' &raquo;';
}
fbCommunityHeaderify();
const lightbox = () => { const lightbox = () => {
[...document.querySelectorAll('article img')].forEach(el => { [...document.querySelectorAll('article img')].forEach(el => {
if(el.parentNode.nodeName !== 'A') { if(el.parentNode.nodeName !== 'A') {
@ -242,4 +217,15 @@
const box = new SimpleLightbox('.lbox', { /* options */ }); const box = new SimpleLightbox('.lbox', { /* options */ });
}; };
lightbox(); lightbox();
const meel = document.querySelector('.meel');
const enc = "<o ofwo-zopsz='aowz orrfsgg' vfst='aowzhc:pfccr@fsrniifrsgsa.ps'>pfccr@fsrniifrsgsa.ps</o>"
if(meel) {
meel.addEventListener('click', function() {
meel.setAttribute('class', '')
meel.innerHTML = enc.replace(/[a-zA-Z]/g,function(c){return String.fromCharCode((c<="Z"?90:122)>=(c=c.charCodeAt(0)+12)?c:c-26);});
})
}
})() })()

View File

@ -239,10 +239,7 @@
&.active, &.disabled &.active, &.disabled
opacity: 0.5 opacity: 0.5
#fbwidget .kortpost_item
margin: 0
.fbpost_item
.excerpt .excerpt
margin-top: 0.5em margin-top: 0.5em

View File

@ -3,7 +3,7 @@
{{- partial "head" . }} {{- partial "head" . }}
<body> <body>
{{- partial "nav" . }} {{- partial "nav" . }}
<main> <main class="h-entry">
{{- block "main" . }}{{ end }} {{- block "main" . }}{{ end }}
</main> </main>
{{- partial "icons" }} {{- partial "icons" }}

View File

@ -22,7 +22,7 @@
{{- with .Params.tags -}} {{- with .Params.tags -}}
{{- range first 10 . }} {{- range first 10 . }}
{{- $tag := . | urlize }} {{- $tag := . | urlize }}
<a href = '{{ absURL (printf "tags/%s" $tag) }}' class = 'post_tag'> <a href='{{ absURL (printf "tags/%s" $tag) }}' class='post_tag p-category'>
{{- . }} {{- . }}
</a> </a>
{{- end }} {{- end }}
@ -34,54 +34,59 @@
<div class = 'post'> <div class = 'post'>
<div class='post_metadata'> <div class='post_metadata'>
<hr/> <hr/>
<h1 class='post_title'> <h1 class='post_title p-name'>
{{- if isset .Params "title" }} {{- if isset .Params "title" }}
{{ .Title }} {{ .Title }}
{{- else }} {{- else }}
Post op {{ .Lastmod.Format (.Site.Params.dateFormat | default "2 January 2006") }} Post op {{ .Lastmod.Format (.Site.Params.dateFormat | default "2 January 2006") }}
{{- end }} {{- end }}
{{- if isset .Params "link" }}
(<a href="{{ .Params.link }}" target="_blank" rel="noopener" style="text-decoration: underline;">link</a>)
{{- end }}
</h1> </h1>
{{ if isset .Params "date" }} {{ if isset .Params "date" }}
<div class="titlemeta"> <div class="titlemeta">
<svg> <svg>
<use xlink:href="#calendar"></use> <use xlink:href="#calendar"></use>
</svg> </svg>
{{ .Lastmod.Format (.Site.Params.dateFormat | default "2 January 2006") }} <time datetime='{{ .Date.Format "2006-01-02" }}' class="dt-published">
<a class="u-url u-uid" href="{{ .RelPermalink }}">
{{ .Lastmod.Format (.Site.Params.dateFormat | default "2 January 2006") }}
</a>
</time>
</div> </div>
{{ end }} {{ end }}
{{- if isset .Params "link" }}
Ook beschikbaar op dit platform:
<a href="{{ .Params.link }}" class="u-syndication" target="_blank" rel="noopener" style="text-decoration: underline;">
publicatielink
</a>.
{{- end }}
<hr/> <hr/>
</div> </div>
<article class='post_content'> <article class='post_content e-content'>
{{- .Content }} {{- .Content }}
<div class = 'post_extra'> <div class = 'post_extra'>
{{- partial "copy" . }} {{- partial "copy" . }}
</div> </div>
</article> </article>
</div> </div>
<div class='post'> <div class='post p-author h-card'>
<p class="p-note">
Geschreven voor <em>{{ .Site.Title }}</em> door
<span classs="p-name">
{{ if isset .Params "author" }}
{{ .Params.author }}
{{ else }}
{{ .Site.Author.name }}
{{ end }}
</span>.
<img class="u-photo" src="/images/badge.png" alt="Logo" style="display: none" />
</p>
</div>
<div class='post p-author h-card'>
<aside> <aside>
{{- partial "aside" . }} {{- partial "aside" . }}
</aside> </aside>
</div> </div>
{{ if not (isset .Params "disablefb") }}
<hr/> <hr/>
<div class='post'>
<article class='post_content' style="text-align: center;">
<h3 id="fb-community-header">Facebook community &raquo;</h3>
<p>Klik op '<em>Berichten</em>' en laat iets van je horen!</p>
<p>
<a href="https://facebook.com/redzuurdesem/" target="_blank" rel="noopener">
<img loading="lazy" src="/fb/fbwidget.jpg" id="fbwidget" alt="Facebook Widget Screenshot" />
</a>
</p>
</article>
</div>
{{ end }}
{{- end }} {{- end }}

View File

@ -10,19 +10,15 @@
{{- end }} {{- end }}
{{- $image := $scratch.Get "image" }} {{- $image := $scratch.Get "image" }}
{{- $bg := ( $image | absLangURL) }} {{- $bg := ( $image | absLangURL) }}
<li class = 'fbpost_item post_item' data-link="{{ .Params.link }}"> <li class = 'kortpost_item post_item' data-link="{{ .Permalink }}">
<div class = 'excerpt'> <div class = 'excerpt'>
<a href='{{ .Params.link }}' target="_blank" aria-label="logo" rel="noopener"> <a href='{{ .Permalink }}' target="_blank" aria-label="logo" rel="noopener">
<img src="/images/badge.png" alt="logo" class="fbpost_item_badge" />
<h3 class = 'post_link fbpost_item_link'> <h3 class = 'post_link fbpost_item_link'>
Red Zuurdesem Red Zuurdesem
</h3> </h3>
<h4 class='fbpost_item_date'> <h4 class='kortpost_item_date'>
Op {{ .Date.Format (.Site.Params.dateFormat | default "2 January 2006") }} Op {{ .Date.Format (.Site.Params.dateFormat | default "2 January 2006") }}
</h4> </h4>
<svg>
<use xlink:href="#facebook"></use>
</svg>
</a> </a>
<p class = 'pale'>{{ .Content }}</p> <p class = 'pale'>{{ .Content }}</p>
</div> </div>

View File

@ -28,6 +28,8 @@
<meta property="article:tag" content="{{ . }}" /> <meta property="article:tag" content="{{ . }}" />
{{ end }}{{ end }} {{ end }}{{ end }}
<link rel="webmention" href="https://jam.brainbaking.com/webmention" />
<link rel="pingback" href="https://jam.brainbaking.com/pingback" />
<link rel="icon" href="/images/favicon.png" type="image/png"> <link rel="icon" href="/images/favicon.png" type="image/png">
<link rel='canonical' href='{{ .Permalink }}'> <link rel='canonical' href='{{ .Permalink }}'>
{{- $options := (dict "targetPath" "css/styles.css" "outputStyle" "compressed" "enableSourceMap" "true") -}} {{- $options := (dict "targetPath" "css/styles.css" "outputStyle" "compressed" "enableSourceMap" "true") -}}

View File

@ -9,7 +9,4 @@
<symbol viewBox="0 0 60.015 60.015" xmlns="http://www.w3.org/2000/svg" id="reply"> <symbol viewBox="0 0 60.015 60.015" xmlns="http://www.w3.org/2000/svg" id="reply">
<path d="M42.007 0h-24c-9.925 0-18 8.075-18 18v14c0 9.59 7.538 17.452 17 17.973v8.344a1.694 1.694 0 0 0 1.699 1.698c.44 0 .873-.173 1.198-.498l1.876-1.876C26.708 52.713 33.259 50 40.227 50h1.78c9.925 0 18-8.075 18-18V18c0-9.925-8.075-18-18-18zm16 32c0 8.822-7.178 16-16 16h-1.78c-7.502 0-14.556 2.921-19.86 8.226l-1.359 1.359V44a1 1 0 1 0-2 0v3.949c-8.356-.52-15-7.465-15-15.949V18c0-8.822 7.178-16 16-16h24c8.822 0 16 7.178 16 16v14z"></path> <path d="M42.007 0h-24c-9.925 0-18 8.075-18 18v14c0 9.59 7.538 17.452 17 17.973v8.344a1.694 1.694 0 0 0 1.699 1.698c.44 0 .873-.173 1.198-.498l1.876-1.876C26.708 52.713 33.259 50 40.227 50h1.78c9.925 0 18-8.075 18-18V18c0-9.925-8.075-18-18-18zm16 32c0 8.822-7.178 16-16 16h-1.78c-7.502 0-14.556 2.921-19.86 8.226l-1.359 1.359V44a1 1 0 1 0-2 0v3.949c-8.356-.52-15-7.465-15-15.949V18c0-8.822 7.178-16 16-16h24c8.822 0 16 7.178 16 16v14z"></path>
</symbol> </symbol>
<symbol id="facebook" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
<path fill="currentColor" d="M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"></path>
</symbol>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB