fixing search json file
This commit is contained in:
parent
2c9f1d9f96
commit
0655e5323d
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "Formatting pages"
|
title: "Formatting pages"
|
||||||
tagName: formatting
|
tagName: formatting
|
||||||
|
search: exclude
|
||||||
---
|
---
|
||||||
{% include taglogic.html %}
|
{% include taglogic.html %}
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "Getting started pages"
|
title: "Getting started pages"
|
||||||
tagName: getting-started
|
tagName: getting-started
|
||||||
|
search: exclude
|
||||||
---
|
---
|
||||||
{% include taglogic.html %}
|
{% include taglogic.html %}
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "Navigation pages"
|
title: "Navigation pages"
|
||||||
tagName: navigation
|
tagName: navigation
|
||||||
|
search: exclude
|
||||||
---
|
---
|
||||||
{% include taglogic.html %}
|
{% include taglogic.html %}
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "Publishing pages"
|
title: "Publishing pages"
|
||||||
tagName: publishing
|
tagName: publishing
|
||||||
|
search: exclude
|
||||||
---
|
---
|
||||||
{% include taglogic.html %}
|
{% include taglogic.html %}
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "Single-sourcing pages"
|
title: "Single-sourcing pages"
|
||||||
tagName: single-sourcing
|
tagName: single-sourcing
|
||||||
|
search: exclude
|
||||||
---
|
---
|
||||||
{% include taglogic.html %}
|
{% include taglogic.html %}
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: "Special layout pages"
|
title: "Special layout pages"
|
||||||
tagName: special-layouts
|
tagName: special-layouts
|
||||||
|
search: exclude
|
||||||
---
|
---
|
||||||
{% include taglogic.html %}
|
{% include taglogic.html %}
|
31
feed.xml
31
feed.xml
@ -1,31 +0,0 @@
|
|||||||
---
|
|
||||||
layout: null
|
|
||||||
search: false
|
|
||||||
---
|
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
|
||||||
<channel>
|
|
||||||
<title>{{ site.title | xml_escape }}</title>
|
|
||||||
<description>{{ site.description | xml_escape }}</description>
|
|
||||||
<!--<link>{{ site.url }}{{ site.baseurl }}/</link>-->
|
|
||||||
<atom:link href=/feed.xml" rel="self" type="application/rss+xml"/>
|
|
||||||
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
|
|
||||||
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
|
|
||||||
<generator>Jekyll v{{ jekyll.version }}</generator>
|
|
||||||
{% for post in site.posts limit:10 %}
|
|
||||||
<item>
|
|
||||||
<title>{{ post.title | xml_escape }}</title>
|
|
||||||
<description>{{ post.content | xml_escape }}</description>
|
|
||||||
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
|
|
||||||
<link>{{ post.url }}</link>
|
|
||||||
<guid isPermaLink="true">{{ post.url }}</guid>
|
|
||||||
{% for tag in post.tags %}
|
|
||||||
<category>{{ tag | xml_escape }}</category>
|
|
||||||
{% endfor %}
|
|
||||||
{% for cat in post.categories %}
|
|
||||||
<category>{{ cat | xml_escape }}</category>
|
|
||||||
{% endfor %}
|
|
||||||
</item>
|
|
||||||
{% endfor %}
|
|
||||||
</channel>
|
|
||||||
</rss>
|
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
layout: none
|
layout: none
|
||||||
search: false
|
search: exclude
|
||||||
---
|
---
|
||||||
{% include custom/conditions.html %}
|
{% include custom/conditions.html %}
|
||||||
|
|
||||||
|
47
search.json
47
search.json
@ -1,40 +1,23 @@
|
|||||||
---
|
---
|
||||||
|
title: search
|
||||||
layout: none
|
layout: none
|
||||||
search: false
|
search: exclude
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
{% for page in site.pages %}
|
{% for page in site.pages %}
|
||||||
{% if page.search == true %}
|
{% unless page.search == "exclude" %}
|
||||||
{
|
{
|
||||||
"title": "{{ page.title | escape }}",
|
"title": "{{ page.title | escape }}",
|
||||||
"tags": "{{ page.tags }}",
|
"tags": "{{ page.tags }}",
|
||||||
"keywords": "{{page.keywords}}",
|
"keywords": "{{page.keywords}}",
|
||||||
"url": "{{ page.url | replace: "/", "" }}",
|
"url": "{{ page.url | replace: '/','' }}",
|
||||||
"last_updated": "{{ page.last_updated }}",
|
"summary": "{{page.summary}}",
|
||||||
"summary": "{{page.summary}}",
|
"body": "{{ page.content | strip_html | strip_newlines | replace: '\', '\\\\' | replace: '"', '\\"' }}"
|
||||||
"body": "{{ page.content | strip_html | strip_newlines | replace: '\', '\\\\' | replace: '"', '\\"' }}"
|
},
|
||||||
}
|
{% endunless %}
|
||||||
{% unless forloop.last %},{% endunless %}
|
|
||||||
|
|
||||||
{% endif %}
|
{% endfor %}
|
||||||
{% endfor %}
|
null
|
||||||
|
|
||||||
{% for post in site.posts %}
|
|
||||||
{% if forloop.length != 0 and forloop.first %},{% endif %}
|
|
||||||
|
|
||||||
{% if post.search == true %}
|
|
||||||
{
|
|
||||||
"title": "{{ page.title | escape }}",
|
|
||||||
"tags": "{{ page.tags }}",
|
|
||||||
"keywords": "{{page.keywords}}",
|
|
||||||
"url": "{{ site.baseurl }}{{ page.url }}",
|
|
||||||
"last_updated": "{{ page.last_updated }}",
|
|
||||||
"summary": "{{page.summary}}",
|
|
||||||
"body": "{{ page.content | strip_html | strip_newlines | replace: '\', '\\\\' | replace: '"', '\\"' }}"
|
|
||||||
} {% unless forloop.last %},{% endunless %}
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
27
sitemap.xml
27
sitemap.xml
@ -1,33 +1,10 @@
|
|||||||
---
|
---
|
||||||
layout: null
|
layout: null
|
||||||
search: false
|
search: exclude
|
||||||
---
|
---
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||||
{% for post in site.posts %}
|
|
||||||
{% unless post.published == false %}
|
|
||||||
<url>
|
|
||||||
<loc>{{ site.url }}{{ post.url }}</loc>
|
|
||||||
{% if post.sitemap.last_updated %}
|
|
||||||
<last_updated>{{ post.sitemap.last_updated | date: "%Y-%m-%d" }}</last_updated>
|
|
||||||
{% elsif post.date %}
|
|
||||||
<last_updated>{{ post.date | date_to_xmlschema }}</last_updated>
|
|
||||||
{% else %}
|
|
||||||
<last_updated>{{ site.time | date_to_xmlschema }}</last_updated>
|
|
||||||
{% endif %}
|
|
||||||
{% if post.sitemap.changefreq %}
|
|
||||||
<changefreq>{{ post.sitemap.changefreq }}</changefreq>
|
|
||||||
{% else %}
|
|
||||||
<changefreq>monthly</changefreq>
|
|
||||||
{% endif %}
|
|
||||||
{% if post.sitemap.priority %}
|
|
||||||
<priority>{{ post.sitemap.priority }}</priority>
|
|
||||||
{% else %}
|
|
||||||
<priority>0.5</priority>
|
|
||||||
{% endif %}
|
|
||||||
</url>
|
|
||||||
{% endunless %}
|
|
||||||
{% endfor %}
|
|
||||||
{% for page in site.pages %}
|
{% for page in site.pages %}
|
||||||
{% unless page.sitemap.exclude == "yes" %}
|
{% unless page.sitemap.exclude == "yes" %}
|
||||||
<url>
|
<url>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
type: title
|
type: title
|
||||||
|
search: exclude
|
||||||
---
|
---
|
||||||
<div class="printTitleArea">
|
<div class="printTitleArea">
|
||||||
<div class="printTitle">{{site.print_title}}</div>
|
<div class="printTitle">{{site.print_title}}</div>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
type: frontmatter
|
type: frontmatter
|
||||||
|
search: exclude
|
||||||
---
|
---
|
||||||
|
|
||||||
<!-- new page -->
|
<!-- new page -->
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
layout: none
|
layout: none
|
||||||
search: false
|
search: exclude
|
||||||
---
|
---
|
||||||
{
|
{
|
||||||
"entries":
|
"entries":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user