1
0
Fork 0
mirror of https://github.com/netz39/www.netz39.de.git synced 2025-06-01 00:36:01 +02:00

Merge remote-tracking branch 'sylhare/Type-on-Strap'

This commit is contained in:
MG-5 2024-03-27 04:13:48 +01:00 committed by MG-5
parent abb4d6b8e3
commit a8c4c41aaf
91 changed files with 9399 additions and 16125 deletions
assets/data

View file

@ -1,29 +1,8 @@
---
---
[
{% for post in site.posts %}
{
"title" : "{{ post.title | strip_newlines | escape }}",
"category" : "{{ post.category }}",
"tags" : "{{ post.tags | join: ', ' | prepend: " " }}",
"url" : "{{ post.url | relative_url }}",
"date" : "{{ post.date | date: "%B %-d, %Y" }}",
"excerpt" : {{ post.content | strip_html | truncate: '250' | escape | jsonify }},
"content" : {{ post.content | strip_html | escape | jsonify }}
} {% unless forloop.last %},{% endunless %}
{% endfor %}
{% if site.portfolio.size > 0 %},{% endif %}
{% for page in site.portfolio %}
{
{% if page.title != nil %}
"title" : "{{ page.title | strip_newlines | escape }}",
"category" : "{{ page.category }}",
"tags" : "{{ page.tags | join: ', ' | prepend: " " }}",
"url" : "{{ page.url | relative_url }}",
"date" : "{{ page.date | date: "%B %-d, %Y" }}",
"excerpt" : {{ page.content | strip_html | truncate: '250' | jsonify }},
"content" : {{ page.content | strip_html | escape | jsonify }}
{% endif %}
} {% unless forloop.last %},{% endunless %}
{% endfor %}
]
{% comment %}
The json is created in search_input.liquid and included here to be compresed
{% endcomment %}
{% capture _search %}{% include default/search_input.liquid %}{% endcapture %}
{% assign emptyField = '{ },' %}
{{ _search | split: " " | join: " " | remove: emptyField }}