49 Commits (4dafe5422499018e4cdccd2eb7e110f33ba47348)

Author SHA1 Message Date
jem 78ff298b42 fix separation of new-io 5 years ago
jem 8ecdb8c3c6 create dirs from md works 5 years ago
jem 42de012fb4 now using resource type internaly 5 years ago
jem 23ca87a8cd introduce Resource for path-handling 5 years ago
jem edc93f6857 html/404 should reside in root 5 years ago
jem ef171bbd2c fix basepath problem 5 years ago
jem 1bdb53d4e3 add ! for side-effect-full functions 5 years ago
jem fe5b94c61c delete recursive works 5 years ago
jem bb53615ed5 wip 5 years ago
Jan Krebs 5ad40301bf "mob next [ci-skip]" 5 years ago
jem c7006a8477 wip 5 years ago
jem 025b5c16a7 Merge remote-tracking branch 'origin/mob-session' into mob-session2 5 years ago
Jan Krebs ea3f626283 "mob next [ci-skip]" 5 years ago
jem 549bf8275d wip 5 years ago
jem 4d467957ee wip 5 years ago
jem 9dc30ef71c wip 5 years ago
jem 34f723a55c "Mob Session DONE [ci-skip]" 5 years ago
Jan Krebs 1c7720bdbf "mob next [ci-skip]" 5 years ago
jem e29c246e3b "Mob Session DONE [ci-skip]" 5 years ago
Jan Krebs 6f2a28df22 "mob next [ci-skip]" 5 years ago
jem 8b0ac5e800 "Mob Session DONE [ci-skip]" 5 years ago
jem 0204170811 "Mob Session DONE [ci-skip]" 5 years ago
Jan Krebs 9cd41d54e7 "mob next [ci-skip]" 5 years ago
jem f949291312 "Mob Session DONE [ci-skip]" 5 years ago
jem 1f0871a881 "Mob Session DONE [ci-skip]" 5 years ago
jem 1c9c4f3e60 "Mob Session DONE [ci-skip]" 5 years ago
Jan Krebs 3182421a5e "mob next [ci-skip]" 5 years ago
jem c1594a035e "Mob Session DONE [ci-skip]" 5 years ago
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