From ad6a6f3b752f9598dd1ca83634085e7f39c9cc09 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Thu, 3 Sep 2015 08:54:41 +0100 Subject: [PATCH] Introduce the blog plugin --- .../staging/editions/Blog_Edition.tid | 9 ++++++ plugins/tiddlywiki/blog/docs.tid | 6 ++++ plugins/tiddlywiki/blog/icon.tid | 11 +++++++ plugins/tiddlywiki/blog/images/blog-icon.tid | 23 ++++++++++++++ plugins/tiddlywiki/blog/plugin.info | 7 +++++ plugins/tiddlywiki/blog/readme.tid | 5 ++++ .../blog/templates/html-page/page.tid | 30 +++++++++++++++++++ .../blog/templates/html-page/post.tid | 30 +++++++++++++++++++ 8 files changed, 121 insertions(+) create mode 100644 editions/prerelease/tiddlers/staging/editions/Blog_Edition.tid create mode 100644 plugins/tiddlywiki/blog/docs.tid create mode 100644 plugins/tiddlywiki/blog/icon.tid create mode 100644 plugins/tiddlywiki/blog/images/blog-icon.tid create mode 100644 plugins/tiddlywiki/blog/plugin.info create mode 100644 plugins/tiddlywiki/blog/readme.tid create mode 100644 plugins/tiddlywiki/blog/templates/html-page/page.tid create mode 100644 plugins/tiddlywiki/blog/templates/html-page/post.tid diff --git a/editions/prerelease/tiddlers/staging/editions/Blog_Edition.tid b/editions/prerelease/tiddlers/staging/editions/Blog_Edition.tid new file mode 100644 index 000000000..f6bc40165 --- /dev/null +++ b/editions/prerelease/tiddlers/staging/editions/Blog_Edition.tid @@ -0,0 +1,9 @@ +created: 20150902123139133 +modified: 20150902123255662 +tags: Editions +title: Blog Edition +type: text/vnd.tiddlywiki + +The ''Blog'' edition of TiddlyWiki contains tools to help publish blogs written in TiddlyWiki. + +editions/blog/index.html diff --git a/plugins/tiddlywiki/blog/docs.tid b/plugins/tiddlywiki/blog/docs.tid new file mode 100644 index 000000000..acab8c0cf --- /dev/null +++ b/plugins/tiddlywiki/blog/docs.tid @@ -0,0 +1,6 @@ +title: $:/plugins/tiddlywiki/blog/docs + +Until there's more documentation, see an example of the use of this plugin here: + +* Blog: http://jermolene-blog.github.io/ +* Repository: https://github.com/Jermolene-blog/blog diff --git a/plugins/tiddlywiki/blog/icon.tid b/plugins/tiddlywiki/blog/icon.tid new file mode 100644 index 000000000..3800fd62a --- /dev/null +++ b/plugins/tiddlywiki/blog/icon.tid @@ -0,0 +1,11 @@ +title: $:/plugins/tiddlywiki/blog/icon +tags: $:/tags/Image + + + + + + {{$:/plugins/tiddlywiki/blog/images/blog-icon}} + + + \ No newline at end of file diff --git a/plugins/tiddlywiki/blog/images/blog-icon.tid b/plugins/tiddlywiki/blog/images/blog-icon.tid new file mode 100644 index 000000000..99f28c29b --- /dev/null +++ b/plugins/tiddlywiki/blog/images/blog-icon.tid @@ -0,0 +1,23 @@ +title: $:/plugins/tiddlywiki/blog/images/blog-icon +tags: $:/tags/Image + + + + + + + + + + + + + + + + + + + + + diff --git a/plugins/tiddlywiki/blog/plugin.info b/plugins/tiddlywiki/blog/plugin.info new file mode 100644 index 000000000..a1b079ccc --- /dev/null +++ b/plugins/tiddlywiki/blog/plugin.info @@ -0,0 +1,7 @@ +{ + "title": "$:/plugins/tiddlywiki/blog", + "description": "Tools for using TiddlyWiki to publish blogs", + "author": "JeremyRuston", + "core-version": ">=5.0.0", + "list": "readme docs" +} diff --git a/plugins/tiddlywiki/blog/readme.tid b/plugins/tiddlywiki/blog/readme.tid new file mode 100644 index 000000000..6edd9cab3 --- /dev/null +++ b/plugins/tiddlywiki/blog/readme.tid @@ -0,0 +1,5 @@ +title: $:/plugins/tiddlywiki/blog/readme + +This plugin contains tools to help publish blogs: + +* Templates and tools for building static HTML pages and posts diff --git a/plugins/tiddlywiki/blog/templates/html-page/page.tid b/plugins/tiddlywiki/blog/templates/html-page/page.tid new file mode 100644 index 000000000..1bac0cc7f --- /dev/null +++ b/plugins/tiddlywiki/blog/templates/html-page/page.tid @@ -0,0 +1,30 @@ +title: $:/plugins/tiddlywiki/blog/templates/html-page/page + +\define tv-wikilink-template() posts/$uri_doubleencoded$.html +\define tv-config-toolbar-icons() no +\define tv-config-toolbar-text() no +\define tv-config-toolbar-class() tc-btn-invisible +` + + + + + + + + + + + +`<$view field="caption"><$view field="title"/></$view>: {{$:/core/wiki/title}}` + + +`{{$:/StaticBanner||$:/core/templates/html-tiddler}}` +
+`<$importvariables filter="[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]"> +<$view tiddler="$:/core/ui/ViewTemplate" format="htmlwikified"/> +` +
+ + +` diff --git a/plugins/tiddlywiki/blog/templates/html-page/post.tid b/plugins/tiddlywiki/blog/templates/html-page/post.tid new file mode 100644 index 000000000..f991ea677 --- /dev/null +++ b/plugins/tiddlywiki/blog/templates/html-page/post.tid @@ -0,0 +1,30 @@ +title: $:/plugins/tiddlywiki/blog/templates/html-page/post + +\define tv-wikilink-template() /$uri_doubleencoded$.html +\define tv-config-toolbar-icons() no +\define tv-config-toolbar-text() no +\define tv-config-toolbar-class() tc-btn-invisible +` + + + + + + + + + + + +`<$view field="caption"><$view field="title"/></$view>: {{$:/core/wiki/title}}` + + +`{{$:/StaticBanner||$:/core/templates/html-tiddler}}` +
+`<$importvariables filter="[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]"> +<$view tiddler="$:/core/ui/ViewTemplate" format="htmlwikified"/> +` +
+ + +`