1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 12:07:19 +00:00

Simplify PageTemplate

We no longer need to mess around with the currentTiddler variable to be able to access to the "name" field of the current language
This commit is contained in:
Jermolene 2019-04-05 09:11:54 +01:00
parent 6e81122fa3
commit d5fa68b46a

View File

@ -15,11 +15,7 @@ tc-page-container tc-page-view-$(storyviewTitle)$ tc-language-$(languageTitle)$
<$set name="storyviewTitle" value={{$:/view}}> <$set name="storyviewTitle" value={{$:/view}}>
<$set name="currentTiddler" value={{$:/language}}> <$set name="languageTitle" value={{{ [{$:/language}get[name]] }}}>
<$set name="languageTitle" value={{!!name}}>
<$set name="currentTiddler" value="">
<div class=<<containerClasses>>> <div class=<<containerClasses>>>
@ -50,7 +46,3 @@ tc-page-container tc-page-view-$(storyviewTitle)$ tc-language-$(languageTitle)$
</$set> </$set>
</$set> </$set>
</$set>
</$set>