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:
parent
6e81122fa3
commit
d5fa68b46a
@ -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>
|
|
||||||
|
Loading…
Reference in New Issue
Block a user