Commit d58b915e by Jun Matsushita

Added internal link checker openintegrity/www#3 added handlebar for in-place…

Added internal link checker openintegrity/www#3 added handlebar for in-place templating and fixed atom feed.
parent 94eab5c8
Pipeline #185 failed with stage
in 0 seconds
var helperMoment = require('helper-moment');
module.exports = function (str, pattern){
return helperMoment(str, pattern)
}
\ No newline at end of file
......@@ -5,23 +5,23 @@ layout: null
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ site.title }}</title>
<link href="{{ site.url }}/atom.xml" rel="self"/>
<link href="{{ site.url }}/"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<link href="{{ site.url }}{{ site.baseurl }}/atom.xml" rel="self"/>
<link href="{{ site.url }}{{ site.baseurl }}/"/>
<updated>{{ moment site.time "ddd, DD MMM YYYY HH:mm:ss ZZ"}}</updated>
<id>{{ site.url }}</id>
<author>
<name>{{ site.author.name }}</name>
<email>{{ site.author.email }}</email>
</author>
{% for post in site.posts %}
{{#each site.posts}}
<entry>
<title>{{ post.title }}</title>
<link href="{{ site.url }}{{ post.url }}"/>
<updated>{{ post.date | date_to_xmlschema }}</updated>
<id>{{ site.url }}{{ post.id }}</id>
<content type="html">{{ post.content | xml_escape }}</content>
<title>{{ title }}</title>
<link href="{{ ../site.url }}{{ ../site.baseurl }}{{ url }}"/>
<updated>{{ moment date "ddd, DD MMM YYYY HH:mm:ss ZZ" }}</updated>
<id>{{ ../site.url }}{{ ../site.baseurl }}{{ id }}</id>
<content type="html">{{ contents }}</content>
</entry>
{% endfor %}
{{/each}}
</feed>
......@@ -2,7 +2,7 @@
"source": "_tmp",
"destination": "_site/openintegrity.org",
"metadata": {},
"clean": false,
"clean": true,
"frontmatter": false,
"ignore": [
"LICENSE",
......@@ -23,7 +23,7 @@
},
{
"metalsmith-ignore": [
"code"
"code/**"
]
},
{
......@@ -56,6 +56,14 @@
]
}
},
{
"metalsmith-many-more": {
"pattern": "**/*.html",
"separator": "<!--more-->",
"key": "children",
"trim": true
}
},
{
"metalsmith-collections": {
"pages": {
......@@ -119,22 +127,21 @@
"basename": "datebasename"
}
},
{
"metalsmith-pandoc": {
"pattern": "**/*.md",
"from": "markdown_github+definition_lists+raw_html+markdown_in_html_blocks+link_attributes"
{
"metalsmith-register-helpers": {
"directory": "code/_helpers"
}
},
{
"metalsmith-many-more": {
"pattern": "**/*.html",
"separator": "<!--more-->",
"key": "children",
"trim": true
"metalsmith-in-place": {
"engine": "handlebars"
}
},
{
"metalsmith-debug": {}
"metalsmith-pandoc": {
"pattern": "**/*.md",
"from": "markdown_github+definition_lists+raw_html+markdown_in_html_blocks+link_attributes"
}
},
{
"metalsmith-metacopy": {
......@@ -187,6 +194,16 @@
"default": "page.jade",
"ext": ".jade"
}
},
{
"metalsmith-broken-link-checker": {
"baseURL": "/openintegrity.org",
"allowRedirects":true,
"warn": true
}
},
{
"metalsmith-debug": {}
}
]
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment