Collin J. Doering
001d4c05f0
Paginate URLs now working correctly. In posts and pages a link to a page can be given using either: - absolute url (eg. /pages/somepage.html) - virtual page path (eg. /#/somepage.html) This is achieved in js/default.js by treating a tags with the rel attribute as virtual. Specifically, the rel attribute should be of the form "address:/virtual/path.html" , though this isn't tested for. If a value val, is found in the rel attribute then it is used as the URL in loadPageContent where if it doesn't match certain regexps it is assumed to be a page and "pages" + val is loaded into the page-content div. See loadPageContent for more details. Placed first page, previous page, next page, and last page links at bottom of blog pages to switch between pages. Still incomplete: - pagination menu needs to be further styled with images, tool tips, etc. - check if rel conforms to the form /address:.*/ and if not don't treat is specially (as virtual) Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
28 lines
476 B
Plaintext
28 lines
476 B
Plaintext
%article.post.container
|
|
%header
|
|
%h1.title
|
|
%a(href="$url$") $title$
|
|
%p.info
|
|
Posted on
|
|
%span.date $date$
|
|
$if(author)$ by
|
|
%span.author $author$
|
|
$endif$
|
|
|
|
$if(teaser)$
|
|
$teaser$
|
|
$else$
|
|
$body$
|
|
$endif$
|
|
|
|
%footer
|
|
.container
|
|
.eight.columns.alpha
|
|
$if(teaser)$
|
|
%a.read-more(href="$url$") Read More
|
|
$else$
|
|
%span.no-teaser
|
|
$endif$
|
|
.eight.columns.omega
|
|
%p.tags $tags$
|