21 Commits (c773ed3282ae1d6c27bca2e6d682da99a0cf0f37)

Author SHA1 Message Date
jem 965ceda614 test now is fine 5 years ago
jem 999b041925 test copy-from-classpath first 5 years ago
jem 88bd208d37 disable not working test 5 years ago
Michael Jerger 805e369bb8 fixed not recognized :page-root-uri configuration 7 years ago
Michael Jerger 4f9ac917ae added hierarchic sidbar-pages & refactored namesspace. 8 years ago
Michael Jerger 439ae6fba8 all things implemented - probably works 8 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
Aleksander Madland Stapnes 70c95b41d8 Look at the content as well as the config to infer clojure eval
Before only the config was looked at to determine whether to include
the js minified of not, now look at the html as well. This makes it
more convenient to set up all klipse stuff once in config.edn without
having to manually specify which js to include.
8 years ago
Aleksander Madland Stapnes ac52785b19 Automatic klipse integration 8 years ago
Aleksander Madland Stapnes 1cfb2b17df Remove crouton dep because enlive does the same thing
Almost the same thing; it doesn't insert missing html, head and body
tags, but in this case we only care about the stuff in the body.
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
Jeff Rabinowitz e34ea8c989 Fixed a regression under which the old style of using :toc true would throw an exception because the tag was not properly cast to a :ul or :ol tag. Added unit testing for all cases. 9 years ago
Jeff Rabinowitz 365df0e680 Reimplemented TOC logic using zippers to ensure state is always internally valid. Also added unit testing to provide a regression testing suite. This should fix issue #19. 9 years ago