mcbSolutions / Pico-Plugins

Plugins for Pico - Pico is a stupidly simple, blazing fast, flat file CMS.
MIT License
12 stars 8 forks source link

how to showTableOfContent exactly like your Screenshot #1

Closed liuzhiwei closed 10 years ago

liuzhiwei commented 10 years ago

I add your plugin in. but I can't get the result like your screenshot.

I add these 2 under "" and {{ mcb_toc }} under "content" into the "index.html" under the default theme. where do I need more to change to achieve your screenshot? Thanks.

<section id="content">
    <div class="inner">
        {{ mcb_toc }}
        {{ content }}
    </div>
</section>

see: http://tjnote.sinaapp.com/

mcbSolutions commented 10 years ago

You got troubles uploading the http://tjnote.sinaapp.com/plugins/mcb_TableOfContent/style.css. Also the print.css It's empty.

liuzhiwei commented 10 years ago

Thanks. but still won't work after adding them in.

mcbSolutions commented 10 years ago

You still got troubles uploading the stylesheet: have a look at: http://tjnote.sinaapp.com/plugins/mcb_TableOfContent/style.css. That is no style sheet!

liuzhiwei commented 10 years ago

Thanks for your help. I copied wrong files for style.css... It's ok now after adding correct style.css.

liuzhiwei commented 10 years ago

do you know is there any a way to add a kind of side widget and show the table of content at the side? Thanks.

mcbSolutions commented 10 years ago

You're welcome. Use a template with sidebar or modify the existing one.