diff --git a/assets/datasets/PodcastApps.json b/assets/datasets/PodcastApps.json deleted file mode 100644 index 94c525088..000000000 --- a/assets/datasets/PodcastApps.json +++ /dev/null @@ -1 +0,0 @@ -["AntennaPod","Pocket Casts","DoggCatcher","Podcast Addict","BeyondPod","Podcast Republic","Podbean","Castbox.FM Podcast Player","Google Podcasts","Stitcher","Podcast Guru","Castro","Overcast","Pocket Casts","Downcast","iCatcher","Castbox","Breaker","Amazon Music","Podverse","Podfriend","CurioCaster","Fountain","Castamatic","PodLP","CastCoverage","Anytime Podcast Player","Tsacdop","Playapod","Escapepod","Kasts","gPodder"] diff --git a/assets/datasets/documentation_index.json b/assets/datasets/documentation_index.json index a3db2e23c..86571265a 100644 --- a/assets/datasets/documentation_index.json +++ b/assets/datasets/documentation_index.json @@ -2,15 +2,10 @@ layout: null --- [ - {% for documentation in site.documentation %} - {% capture title %}{% t {{ documentation.texts }}.title %}{% endcapture %} - {% capture excerpt %}{{ documentation.content | strip_html | strip_newlines | truncatewords: 25 }}{% endcapture %} - { - "title" : "{{ title | escape }}", - "url" : "{% if site.lang != "en" %}/{{ site.lang }}{% endif %}{{ documentation.url | replace:'.html','' }}", - "excerpt" : {{ excerpt | jsonify }}, - "content" : {{ documentation.content | strip_html | strip_newlines | jsonify }} - } {% unless forloop.last %},{% endunless %} - {% endfor %} +{%- for documentation in site.documentation -%} +{%- capture title -%}{% t {{ documentation.texts }}.title %}{%- endcapture -%} +{%- assign title = title | strip -%} +{%- capture content -%}{{ documentation.content | strip_html | replace: "\n", " " | remove_first: title | strip }}{%- endcapture -%} +{"title":{{ title | jsonify }},"url":"{% if site.lang != "en" %}/{{ site.lang }}{% endif %}{{ documentation.url | replace:'.html','' }}","excerpt":{{ content | truncatewords: 25 | jsonify }},"content":{{ content | jsonify }}}{%- unless forloop.last -%},{%- endunless -%} +{%- endfor -%} ] - diff --git a/documentation/index.html b/documentation/index.html index aab9d66bd..faa3cc019 100644 --- a/documentation/index.html +++ b/documentation/index.html @@ -59,8 +59,7 @@