Skip to content

Commit

Permalink
Bug #16/ #10, move "search" and "tag" HTML, "_out/.htaccess"
Browse files Browse the repository at this point in the history
* Bug #10, new `feed-all.xml` RSS feed/ site-map (limit: 100)
  • Loading branch information
nfreear committed Nov 3, 2015
1 parent 825d9fd commit b9e45ca
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ _site
*BAK*
*copy*

_out/*
!_out/.htaccess
_out/
#!_out/.htaccess

blog.md

Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

default: serve

help:
# Targets: serve draft rewrite count

serve:
jekyll serve

Expand Down
File renamed without changes.
37 changes: 37 additions & 0 deletions _pages/feed-all.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
layout: null
permalink: /feed-all.xml
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/">
<channel>
<title>{{ site.title | xml_escape }}</title>
<description>{{ site.description | xml_escape }}</description>
<link>{{ site.url }}{{ site.baseurl }}/</link>
<atom:link href="{{ "/feed-all.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml"/>
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>2</sy:updateFrequency>
<generator>Jekyll v{{ jekyll.version }}</generator>
{% assign limit = site.ex_feed_limit %}{% unless limit %}{% assign limit = 10 %}{% endunless %}
<!--limit: {{ limit }}; count: {{ site.posts | size }}; sitemap-->
{% for post in site.posts limit: limit %}
<item>
<title>{{ post.title | xml_escape }}</title>
{% comment %}<description>{{ post.content | xml_escape }}</description>{% endcomment %}
<description>{{ post.content | strip_html | truncatewords: 75 | xml_escape }}</description>
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
<guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.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>
File renamed without changes.
File renamed without changes.
5 changes: 2 additions & 3 deletions feed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ layout: null
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
<generator>Jekyll v{{ jekyll.version }}</generator>
{% assign limit = site.ex_feed_limit %}{% unless limit %}{% assign limit = 10 %}{% endunless %}
{% assign limit = 10 %}
<!--limit: {{ limit }}-->
{% for post in site.posts limit: limit %}
<item>
<title>{{ post.title | xml_escape }}</title>
{% comment %}<description>{{ post.content | xml_escape }}</description>{% endcomment %}
<description>{{ post.content | strip_html | truncatewords: 100 | xml_escape }}</description>
<description>{{ post.content | xml_escape }}</description>
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
<guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
Expand Down

0 comments on commit b9e45ca

Please sign in to comment.