/shabti/templates/microsite/+package+/templates/page/pageindex.mako
Mako | 27 lines | 24 code | 1 blank | 2 comment | 6 complexity | 82860c4fde838edf3141f36e66b9c55d MD5 | raw file
- # -*- coding: utf-8 -*-
- ## Based on standard 2-col Hide-Right derivation
- ## Defines "content" and "lhcolumn" fragments
- <%inherit file="/core/hide-right.mako"/>
- <%def name="header()">
- % if c.title is not UNDEFINED:
- <title>${c.title|n}</title>
- % else:
- <title>Bel-EPA :: Pages</title>
- % endif
- </%def>
- <%def name="content()">
- <h1>Pages</h1>
- <p>List of pages</p>
- % for page in c.pages:
- <h3>
- <a
- href="${h.url(controller='/page',action='view',id=page.slug)}"
- >${page.title|n}</a>
- </h3>
- <p>${h.markdown.markdown(page.content)|n}</p>
- % endfor
- </%def>
- <%def name="lhcolumn()">
- <%include file="../lhcolumn.mako" />
- </%def>