mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-24 17:10:29 +00:00
Add a link back to github for each tiddler on tiddlywiki.com
This commit is contained in:
parent
3994f0dbc6
commit
f244293cac
25
editions/tw5.com/tiddlers/system/Sources.tid
Normal file
25
editions/tw5.com/tiddlers/system/Sources.tid
Normal 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>>
|
@ -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>>
|
@ -23,4 +23,8 @@
|
||||
"zh-Hans",
|
||||
"zh-Hant"
|
||||
]
|
||||
,
|
||||
"config": {
|
||||
"retain-original-tiddler-path": true
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user