fixing search json file
This commit is contained in:
parent
2c9f1d9f96
commit
0655e5323d
@ -1,5 +1,6 @@
|
||||
---
|
||||
title: "Formatting pages"
|
||||
tagName: formatting
|
||||
search: exclude
|
||||
---
|
||||
{% include taglogic.html %}
|
@ -1,5 +1,6 @@
|
||||
---
|
||||
title: "Getting started pages"
|
||||
tagName: getting-started
|
||||
search: exclude
|
||||
---
|
||||
{% include taglogic.html %}
|
@ -1,5 +1,6 @@
|
||||
---
|
||||
title: "Navigation pages"
|
||||
tagName: navigation
|
||||
search: exclude
|
||||
---
|
||||
{% include taglogic.html %}
|
@ -1,5 +1,6 @@
|
||||
---
|
||||
title: "Publishing pages"
|
||||
tagName: publishing
|
||||
search: exclude
|
||||
---
|
||||
{% include taglogic.html %}
|
@ -1,5 +1,6 @@
|
||||
---
|
||||
title: "Single-sourcing pages"
|
||||
tagName: single-sourcing
|
||||
search: exclude
|
||||
---
|
||||
{% include taglogic.html %}
|
@ -1,5 +1,6 @@
|
||||
---
|
||||
title: "Special layout pages"
|
||||
tagName: special-layouts
|
||||
search: exclude
|
||||
---
|
||||
{% 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
|
||||
search: false
|
||||
search: exclude
|
||||
---
|
||||
{% include custom/conditions.html %}
|
||||
|
||||
|
31
search.json
31
search.json
@ -1,40 +1,23 @@
|
||||
---
|
||||
title: search
|
||||
layout: none
|
||||
search: false
|
||||
search: exclude
|
||||
---
|
||||
[
|
||||
{% for page in site.pages %}
|
||||
{% if page.search == true %}
|
||||
{% unless page.search == "exclude" %}
|
||||
{
|
||||
"title": "{{ page.title | escape }}",
|
||||
"tags": "{{ page.tags }}",
|
||||
"keywords": "{{page.keywords}}",
|
||||
"url": "{{ page.url | replace: "/", "" }}",
|
||||
"last_updated": "{{ page.last_updated }}",
|
||||
"url": "{{ page.url | replace: '/','' }}",
|
||||
"summary": "{{page.summary}}",
|
||||
"body": "{{ page.content | strip_html | strip_newlines | replace: '\', '\\\\' | replace: '"', '\\"' }}"
|
||||
}
|
||||
{% unless forloop.last %},{% endunless %}
|
||||
},
|
||||
{% endunless %}
|
||||
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% 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 %}
|
||||
null
|
||||
]
|
||||
|
||||
|
||||
|
||||
|
27
sitemap.xml
27
sitemap.xml
@ -1,33 +1,10 @@
|
||||
---
|
||||
layout: null
|
||||
search: false
|
||||
search: exclude
|
||||
---
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<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 %}
|
||||
{% unless page.sitemap.exclude == "yes" %}
|
||||
<url>
|
||||
|
@ -1,5 +1,6 @@
|
||||
---
|
||||
type: title
|
||||
search: exclude
|
||||
---
|
||||
<div class="printTitleArea">
|
||||
<div class="printTitle">{{site.print_title}}</div>
|
||||
|
@ -1,5 +1,6 @@
|
||||
---
|
||||
type: frontmatter
|
||||
search: exclude
|
||||
---
|
||||
|
||||
<!-- new page -->
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
layout: none
|
||||
search: false
|
||||
search: exclude
|
||||
---
|
||||
{
|
||||
"entries":
|
||||
|
Loading…
x
Reference in New Issue
Block a user