1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-30 09:13:16 +00:00

Add a link back to github for each tiddler on tiddlywiki.com

This commit is contained in:
Jermolene 2014-02-27 16:30:24 +00:00
parent 3994f0dbc6
commit f244293cac
3 changed files with 29 additions and 13 deletions

View File

@ -0,0 +1,25 @@
title: $:/editions/tw5.com/TiddlerInfo/Sources
tags: $:/tags/TiddlerInfo
caption: Sources
\define makeStaticLink()
http://tiddlywiki.com/static/<$view tiddler=<<currentTiddler>> field="title" format="doubleurlencoded"/>.html
\end
\define outerMakeStaticLink()
<$macrocall $name="makeStaticLink" $output="text/plain"/>
\end
\define makeGitHubLink()
https://github.com/Jermolene/TiddlyWiki5/blob/master/editions/tw5.com/tiddlers/$(githubLink)$
\end
\define outerMakeGitHubLink()
<$set name="githubLink" value={{$:/config/OriginalTiddlerPaths##$(currentTiddler)$}}>
<a href=<<makeGitHubLink>> class="tw-tiddlylink-external" target="_blank"><$text text=<<makeGitHubLink>>/></a>
</$set>
\end
A static HTML representation of this tiddler is available at the URL:
<<outerMakeStaticLink>>
Help us to improve the documentation by sending a ~GitHub pull request for this tiddler:
<<outerMakeGitHubLink>>

View File

@ -1,13 +0,0 @@
title: $:/editions/tw5.com/TiddlerInfo/StaticLink
tags: $:/tags/TiddlerInfo
caption: Static Link
\define makeLink()
http://tiddlywiki.com/static/<$view tiddler=<<currentTiddler>> field="title" format="doubleurlencoded"/>.html
\end
\define outerMakeLink()
<$macrocall $name="makeLink" $output="text/plain"/>
\end
A static HTML representation of this tiddler is available at the URL:
<<outerMakeLink>>

View File

@ -23,4 +23,8 @@
"zh-Hans",
"zh-Hant"
]
,
"config": {
"retain-original-tiddler-path": true
}
}