The code, templates and content for my Hakyll powered blog at blog.rekahsoft.ca
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> |
||
---|---|---|
files | ||
fonts | ||
images | ||
images-src | ||
js | ||
lib | ||
pages | ||
posts | ||
sass | ||
src | ||
templates | ||
.gitignore | ||
.gitmodules | ||
blog-rekahsoft-ca.cabal | ||
LICENSE | ||
post-offline.haml | ||
Setup.hs | ||
tags-offline.haml |