mirror of
https://github.com/netz39/www.netz39.de.git
synced 2025-05-28 23:37:54 +02:00
Merge remote-tracking branch 'sylhare/Type-on-Strap'
This commit is contained in:
parent
abb4d6b8e3
commit
a8c4c41aaf
91 changed files with 9399 additions and 16125 deletions
_includes/default
51
_includes/default/search_input.liquid
Normal file
51
_includes/default/search_input.liquid
Normal file
|
@ -0,0 +1,51 @@
|
|||
{% assign dateFormat = site.data.language.str_date_format | default: '%B %-d, %Y' %}
|
||||
[
|
||||
{% for post in site.posts %}
|
||||
{
|
||||
{% unless post.excluded %}
|
||||
"title" : "{{ post.title | strip_newlines | escape }}",
|
||||
"category" : "{{ post.category }}",
|
||||
"tags" : "{{ post.tags | join: ', ' | prepend: " " }}",
|
||||
"url" : "{{ post.url | relative_url }}",
|
||||
"date" : "{{ post.date | date: dateFormat }}",
|
||||
"excerpt" : {{ post.content | strip_html | strip_newlines | strip | escape | truncate: '250' | escape | jsonify }},
|
||||
"content" : {{ post.content | strip_html | strip_newlines | strip | escape | jsonify }}
|
||||
{% endunless %}
|
||||
}{% unless forloop.last %},{% endunless %}
|
||||
{% endfor %}
|
||||
{% if site.pages.size > 0 %},{% endif %}
|
||||
{% for page in site.pages %}
|
||||
{
|
||||
{% unless page.excluded or 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: dateFormat | default: "N/A" }}",
|
||||
"excerpt" : {{ page.content | strip_html | strip_newlines | strip | escape | truncate: '250' | escape | jsonify }},
|
||||
"content" : {{ page.content | strip_html | strip_newlines | strip | escape | jsonify }}
|
||||
{% endunless %}
|
||||
}{% unless forloop.last %},{% endunless %}
|
||||
{% endfor %}
|
||||
{% if site.collections.size > 1 %},{% endif %}
|
||||
{% for collection in site.collections %}
|
||||
{% unless collection.label == 'posts' or site[collection.label].size == 0 %}
|
||||
{% for page in site[collection.label] %}
|
||||
{
|
||||
{% if page.excluded or 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: dateFormat | default: "N/A" }}",
|
||||
"excerpt" : {{ page.content | strip_html | strip_newlines | strip | escape | truncate: '250' | jsonify }},
|
||||
"content" : {{ page.content | strip_html | strip_newlines | strip | escape | jsonify }}
|
||||
{% endif %}
|
||||
}{% unless forloop.last %},{% endunless %}
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
{}
|
||||
{% endunless %}
|
||||
{% unless forloop.last %},{% endunless %}
|
||||
{% endfor %}
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue