I feel like I am real close on this, but keep hitting barriers. I have a
working TOC using the *toc *macro. I have changed the
*$:/core/templates/static.tiddler.html
*to successfully show the *SiteTitle *and *SiteSubtitle *just like on the
"normal" (Javascript-enabled) wiki:
<body class="tc-body">
`{{$:/StaticBanner||$:/core/templates/html-tiddler}}
`<div class="tc-sidebar-scrollable" style="overflow: auto;">
<div class="tc-sidebar-header">
`<$reveal state="$:/state/sidebar" type="match" text="yes" default="yes"
retain="yes">
`<h1 class="tc-site-title">`<$transclude tiddler="$:/SiteTitle"
mode="inline"/>`</h1>
<div class="tc-site-subtitle">`<$transclude tiddler="$:/SiteSubtitle"
mode="inline"/>`</div>
This works fine. Under those I don't want all the buttons and tabs in the
static sidebar (since they wouldn't work anyway), but just a TOC. When I
add the following right after the above, it shows the dynamically generated
TOC successfully in the *$:/core/templates/static.tiddler.html *once I
leave edit mode:
<div class="tc-table-of-contents">
`{{Table of Contents}}`
</div>
But when I render out the static site, the *<div
class="tc-table-of-contents"> *and closing *</div> *are inserted into the
static HTML, along with some blank lines between them (for presumably each
TOC list entry). I have tried both transcluding the existing *Table of
Contents* tiddler as well as calling the *toc *macro directly within the
above *div*, just like in the *Table of Contents *tiddler itself, but in
both cases I get the same results. What am I missing?
BTW, I have been working on getting a usable sidebar for a static site for
days now - it is a lot of work for what I would think is something many
would want. I am trying to document what I am doing so I can write some
articles about it, but if someone has already done the heavy lifting, I
would appreciate pointers. I've searched this group and the web, but not
with much success.
Thanks,
Jim
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.