diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 8566691..1e969e6 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -3,9 +3,9 @@ :!author-email: :author: {author-name} :!email: {author-email} -:revnumber: v1.24.0 -:revdate: 2019-12-19T14:59:18+0900 -:revremark: Add log that add link to demo site in README +:revnumber: v1.25.0 +:revdate: 2019-12-24T22:34:36+0900 +:revremark: Add log that add ignore asciidoc in `_includes` directory :doctype: article :description: gatsby-simple-blog-with-asciidoctor Change Log :title: @@ -41,6 +41,15 @@ ifndef::env-github[:icons: font] :repository-url: {github-url}/hitsuji-no-shippo/gatsby-simple-blog-with-asciidoctor :issues-url: {repository-url}/issues +== 0.3.0 (2019-12-24) + +== Features + +=== Add + +* Ignore asciidoc in `_includes` directory. (close link:{issues-url}/74[#74]) + + == 0.2.0 (2019-12-19) === Breaking Changes diff --git a/README.adoc b/README.adoc index cabe8ff..694a7bf 100644 --- a/README.adoc +++ b/README.adoc @@ -3,9 +3,9 @@ :!author-email: :author: {author-name} :!email: {author-email} -:revnumber: v1.13.2 +:revnumber: v1.14.0 :revdate: 2019-12-20T13:55:15+0900 -:revremark: add important admonition +:revremark: add ignore asciidoc in `_includes` directory :doctype: article :description: gatsby-simple-blog-with-asciidoctor README :title: @@ -351,6 +351,10 @@ Use disqus.com to enable comment. Enable eslint for better coding experience. * module resolver + Enable babel-module-resolver to prevent relative path hell +* inogre + + The `ignore` option in link:[https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-source-filesystem + `gatsby-source-filesystem`^] is used so that the node of asciidoc in + `_includes` directory is not generated. == LICENSE diff --git a/content/blog/include/_includes/first.adoc b/content/blog/include/_includes/first.adoc new file mode 100644 index 0000000..af958ae --- /dev/null +++ b/content/blog/include/_includes/first.adoc @@ -0,0 +1,22 @@ +:revdate: 2019-12-21T21:27:04+0900 + +// tag::body[] += First + +First + +.Attributes +[cols="m,d", cols="headers, autowidth"] +|================================================ +|Attributes |Values +|\{doctitle} |{doctitle} +|================================================ + +.Include command +[literal] +.... +\include::./second/index.adoc[tag=body, leveloffset=+1] +.... + +include::./second/index.adoc[tag=body, leveloffset=+1] +// end::body[] diff --git a/content/blog/include/_includes/second/index.adoc b/content/blog/include/_includes/second/index.adoc new file mode 100644 index 0000000..703ec45 --- /dev/null +++ b/content/blog/include/_includes/second/index.adoc @@ -0,0 +1,22 @@ +:revdate: 2019-12-21T21:30:24+0900 + +// tag::body[] += Second index + +Second index + +.Attributes +[cols="m,d", cols="headers, autowidth"] +|================================================ +|Attributes |Values +|\{doctitle} |{doctitle} +|================================================ + +.Include command +[literal] +.... +\include::./second.adoc[tag=body, leveloffset=+1] +.... + +include::./second.adoc[tag=body, leveloffset=+1] +// end::body[] diff --git a/content/blog/include/_includes/second/second.adoc b/content/blog/include/_includes/second/second.adoc new file mode 100644 index 0000000..d7ac056 --- /dev/null +++ b/content/blog/include/_includes/second/second.adoc @@ -0,0 +1,14 @@ +:revdate: 2019-12-21T21:26:29+0900 + +// tag::body[] += Second + +Second + +.Attributes +[cols="m,d", cols="headers, autowidth"] +|================================================ +|Attributes |Values +|\{doctitle} |{doctitle} +|================================================ +// end::body[] diff --git a/content/blog/include/index.adoc b/content/blog/include/index.adoc new file mode 100644 index 0000000..54f9cde --- /dev/null +++ b/content/blog/include/index.adoc @@ -0,0 +1,20 @@ += Include +:revdate: 2019-12-21T21:26:58+0900 +:page-tags: [ascidoc, include] + +Include + +.Attributes +[cols="m,d", cols="headers, autowidth"] +|================================================ +|Attributes |Values +|\{doctitle} |{doctitle} +|================================================ + +.Include command +[listing] +.... +\include::content/blog/include/_includes/first.adoc[tag=body, leveloffset=+1] +.... + +include::content/blog/include/_includes/first.adoc[tag=body, leveloffset=+1] diff --git a/gatsby-config.js b/gatsby-config.js index 88508d8..44416d1 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -42,6 +42,7 @@ module.exports = { options: { path: `${__dirname}/content/blog`, name: 'blog', + ignore: ['**\/_includes'], }, }, {