PageRenderTime 51ms CodeModel.GetById 20ms RepoModel.GetById 2ms app.codeStats 0ms

/shabti/templates/microsite/+package+/templates/page/pageindex.mako

https://bitbucket.org/gawel/shabti
Mako | 27 lines | 24 code | 1 blank | 2 comment | 6 complexity | 82860c4fde838edf3141f36e66b9c55d MD5 | raw file
  1. # -*- coding: utf-8 -*-
  2. ## Based on standard 2-col Hide-Right derivation
  3. ## Defines "content" and "lhcolumn" fragments
  4. <%inherit file="/core/hide-right.mako"/>
  5. <%def name="header()">
  6. % if c.title is not UNDEFINED:
  7. <title>${c.title|n}</title>
  8. % else:
  9. <title>Bel-EPA :: Pages</title>
  10. % endif
  11. </%def>
  12. <%def name="content()">
  13. <h1>Pages</h1>
  14. <p>List of pages</p>
  15. % for page in c.pages:
  16. <h3>
  17. <a
  18. href="${h.url(controller='/page',action='view',id=page.slug)}"
  19. >${page.title|n}</a>
  20. </h3>
  21. <p>${h.markdown.markdown(page.content)|n}</p>
  22. % endfor
  23. </%def>
  24. <%def name="lhcolumn()">
  25. <%include file="../lhcolumn.mako" />
  26. </%def>