fb access token in config, limit 4

This commit is contained in:
wgroeneveld 2020-05-11 10:35:19 +02:00
parent 04a1e85b34
commit 2a2dabeff4
3 changed files with 10 additions and 2 deletions

View File

@ -13,10 +13,11 @@ theme = "desem-swift-theme"
[params] [params]
logo = "/images/desemdoos.png" logo = "/images/desemdoos.png"
fbtoken = "EAAn5J1FBPssBAEklcMbCU4PrCZB3aMyLuD3XqYGTaif8gKbx24PH5ZA6WrsQwiSGJzLIuVdHn4s2EymVDXTdrWaKLJqkDACiY5SLreXbeLuXTKirw7bncJM68dKTV7Y7Sp9rroU9IGqSUsJrhIzFvjlZAKBCQwUesut1p03oLPxkVTpNSg2"
# For search functionnality # For search functionnality
[outputs] [outputs]
home = [ "HTML", "RSS", "JSON"] home = [ "HTML", "RSS" ]
# https://gohugo.io/getting-started/configuration-markup (ofwel de oude unsafe togglen?) - is nodig, Wordpress export bevat veel HTML! # https://gohugo.io/getting-started/configuration-markup (ofwel de oude unsafe togglen?) - is nodig, Wordpress export bevat veel HTML!
[markup] [markup]

View File

@ -8,6 +8,13 @@ https://www.goodreads.com/book/show/53267590-red-zuurdesem doorgeven?
[ ] Leo Babauta: un-copyright te bekijken [ ] Leo Babauta: un-copyright te bekijken
### Site rework todo's
[X] Facebook posts auto-grab IDs op een of andere manier? https://developers.facebook.com/docs/graph-api/reference/v7.0/page/feed reeds included
[ ] fucking token die maar 2 maand houdbaar is - in kalender zetten? met api calls auto-refreshen op een of andere manier
[ ] search functionaliteit. zie config.toml, JSON output
[ ] Korte policy pagina? Koekske banner? (cookies weg indien niet ingelogd)
### Via-via persoonlijk ### Via-via persoonlijk
[X] Ann Lummen [X] Ann Lummen

View File

@ -88,7 +88,7 @@
} }
try { try {
FB.api("/redzuurdesem/feed?limit=6&access_token=EAAn5J1FBPssBAEklcMbCU4PrCZB3aMyLuD3XqYGTaif8gKbx24PH5ZA6WrsQwiSGJzLIuVdHn4s2EymVDXTdrWaKLJqkDACiY5SLreXbeLuXTKirw7bncJM68dKTV7Y7Sp9rroU9IGqSUsJrhIzFvjlZAKBCQwUesut1p03oLPxkVTpNSg2", parseFeed); FB.api("/redzuurdesem/feed?limit=4&access_token={{ .Site.Params.fbtoken }}", parseFeed);
} catch(e) { } catch(e) {
whoops(e); whoops(e);
} }