11 Commits (78ff298b42c6b89d1c85653599b91f4ee1091221)

Author SHA1 Message Date
jem 8ecdb8c3c6 create dirs from md works 5 years ago
Michael Jerger e9d1c1e194 refactored navbar-model out of compiler & introduced new :navbar-model
parameter to config
8 years ago
M.Jerger d36acf2316 Merge branch 'master' into master 8 years ago
Carmen La dec80185e5 A big ol' cleanup 8 years ago
Aleksander Madland Stapnes dbd5caaf1f Replace tagsoup dependency with enlive
Tagsoup depends on an old version of clojure.data.xml, which doesn't
compile with clojure 1.9.0-alpha12. Enlive seems more actively
maintained and used.
8 years ago
Michael Jerger 1ea38c5b84 respect :page-index order for navmap 8 years ago
Michael Jerger b6b8ebfa22 undo project renaming 8 years ago
Michael Jerger 3c415f48e0 Added navmap feature.
Navmap will allow nested navigation for pages. To 
* add a page to navmap, you've to add `{:navmap? true}` to pages meta.
* define navigation hierarchy you can use directory-structure (first
level will be in /pages/nav1.md, second level will be in
/pages/nav1/nav11.md)
* use navmap, you can 
  * access navmap-pages (sequence of pages) in your template, same as
you've used navbar-pages and
  * access navigation childs as :navmap-children in specific pages (eg.
nav1 will contain a sequence of one page representing nav11).
8 years ago
Arsene Rei 272d688010 Add test for no directories 8 years ago
Arsene Rei f383661e5e Fallback to resources/templates/{pages,posts}
By default, when using markdown files, Cryogen will look for
`resources/templates/md/pages/*.md`. This commits allows Cryogen to fall back to
`resources/templates/pages/*.md` in the case that it can't find any files in the
former directory. It works similarly for posts and Asciidoc files.

Since we're looking specifically for `*.md` for Markdown files and `*.asc` for
Ascii files, this is an opportunity to eliminate redundancy.
8 years ago
ponkore 556fe84ef8 content-with-more-marker returns with correct tags
`content-with-more-marker` returns a HTML string when the `content`
conteins more marker ("<!--more-->").

In many case, HTML tags in `content` is balanced.
ex.
------------------------------
<div id='post'>
  <div class='post-content'>
    this post has more marker
<!--more-->
and more content.
  </div>
</div>
------------------------------

But original code breaks the balance.
------------------------------
<div id='post'>
  <div class='post-content'>
    this post has more marker
------------------------------

Afer this patch applied, `tagsoup` read above text and `hiccup`
re-render to HTML text with correct balanced tags.
------------------------------
<div id='post'>
  <div class='post-content'>
    this post has more marker
</div></div>
------------------------------
9 years ago