📝 Samuel's new personal website https://blog.samuel.domains/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

40 lines
1.5 KiB

  1. ---
  2. layout: null
  3. regenerate: true
  4. ---
  5. {
  6. "version": "https://jsonfeed.org/version/1",
  7. "title": {{ site.title | jsonify }},
  8. "home_page_url": "{{ site.url }}",
  9. "feed_url": "{{ site.url }}{{ page.url }}",
  10. "author": {
  11. "name": {{ site.author.name | jsonify }},
  12. "url": "{{ site.author.url }}",
  13. "avatar": "{{ site.url }}{{ site.logo }}"
  14. },
  15. "icon": "{{ site.url }}{{ site.logo }}",
  16. "favicon": "{{ site.url }}/img/favicon/favicon.ico",
  17. "items": [{% for post in site.posts limit: site.feed.limit %}{% unless post.draft %}
  18. {%- capture post_content -%}
  19. {{ post.content |
  20. re_substitute: '<\bscript\b.*>.*<\/\bscript\b>', '' |
  21. re_substitute: '<\biframe\b.*>.*<\/\biframe\b>', ''
  22. }}
  23. {%- endcapture -%}
  24. {
  25. "title": {{ post.title | jsonify }},
  26. "date_published": {{ post.date | date_to_xmlschema | jsonify }},
  27. "date_modified": {{ post.date | date_to_xmlschema | jsonify }},
  28. "id": "{{ site.url }}{{ post.url }}",
  29. "url": "{{ site.url }}{{ post.url }}",
  30. "image": "{{ site.url }}{{ post.image }}",
  31. "author": {
  32. "name": {{ site.author.name | jsonify }}
  33. },
  34. "content_html": {{ post_content | markdownify | jsonify }},
  35. "summary": {{ post.description | jsonify }},
  36. "tags": [{{ post.category | jsonify }}]
  37. }{% unless forloop.last %},{% endunless %}{% endunless %}{% endfor %}
  38. ]
  39. }