Commit graph

48 commits

Author SHA1 Message Date
jem
8ecdb8c3c6 create dirs from md works 2019-12-20 15:55:53 +01:00
jem
42de012fb4 now using resource type internaly 2019-12-17 18:51:29 +01:00
jem
23ca87a8cd introduce Resource for path-handling 2019-12-17 16:58:11 +01:00
jem
edc93f6857 html/404 should reside in root 2019-12-16 15:00:25 +01:00
jem
ef171bbd2c fix basepath problem 2019-12-16 13:51:41 +01:00
jem
1bdb53d4e3 add ! for side-effect-full functions 2019-12-16 12:32:50 +01:00
jem
fe5b94c61c delete recursive works 2019-12-16 11:06:36 +01:00
jem
bb53615ed5 wip 2019-12-13 16:53:24 +01:00
Jan Krebs
5ad40301bf "mob next [ci-skip]" 2019-12-13 15:25:52 +01:00
jem
c7006a8477 wip 2019-12-13 15:01:07 +01:00
jem
025b5c16a7 Merge remote-tracking branch 'origin/mob-session' into mob-session2 2019-12-13 14:20:18 +01:00
Jan Krebs
ea3f626283 "mob next [ci-skip]" 2019-12-13 14:18:53 +01:00
jem
549bf8275d wip 2019-12-13 13:48:58 +01:00
jem
4d467957ee wip 2019-12-13 11:34:48 +01:00
jem
9dc30ef71c wip 2019-12-13 10:53:13 +01:00
jem
34f723a55c "Mob Session DONE [ci-skip]" 2019-12-11 17:53:34 +01:00
Jan Krebs
1c7720bdbf "mob next [ci-skip]" 2019-12-06 16:59:44 +01:00
jem
e29c246e3b "Mob Session DONE [ci-skip]" 2019-12-06 16:37:24 +01:00
Jan Krebs
6f2a28df22 "mob next [ci-skip]" 2019-12-06 16:00:05 +01:00
jem
8b0ac5e800 "Mob Session DONE [ci-skip]" 2019-12-06 15:34:41 +01:00
jem
0204170811 "Mob Session DONE [ci-skip]" 2019-12-06 14:51:06 +01:00
Jan Krebs
9cd41d54e7 "mob next [ci-skip]" 2019-12-06 14:35:14 +01:00
jem
f949291312 "Mob Session DONE [ci-skip]" 2019-12-06 14:16:16 +01:00
jem
1f0871a881 "Mob Session DONE [ci-skip]" 2019-12-06 12:44:54 +01:00
jem
1c9c4f3e60 "Mob Session DONE [ci-skip]" 2019-12-06 10:00:08 +01:00
Jan Krebs
3182421a5e "mob next [ci-skip]" 2019-12-03 18:11:30 +01:00
jem
c1594a035e "Mob Session DONE [ci-skip]" 2019-12-03 17:51:21 +01:00
jem
965ceda614 test now is fine 2019-11-29 16:44:29 +01:00
jem
999b041925 test copy-from-classpath first 2019-11-29 16:29:58 +01:00
jem
88bd208d37 disable not working test 2019-11-29 15:52:44 +01:00
805e369bb8 fixed not recognized :page-root-uri configuration 2017-03-22 08:05:36 +01:00
4f9ac917ae added hierarchic sidbar-pages & refactored namesspace. 2017-02-09 08:52:42 +01:00
439ae6fba8 all things implemented - probably works 2017-02-08 20:09:01 +01:00
e9d1c1e194 refactored navbar-model out of compiler & introduced new :navbar-model
parameter to config
2017-02-08 19:22:15 +01:00
d36acf2316 Merge branch 'master' into master 2017-02-08 09:13:45 +01:00
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.
2017-01-27 02:57:33 -03:00
Aleksander Madland Stapnes
ac52785b19 Automatic klipse integration 2017-01-20 02:57:38 -03:00
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.
2017-01-16 18:16:11 -03:00
Carmen La
dec80185e5 A big ol' cleanup 2017-01-16 02:37:19 -05:00
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.
2017-01-15 05:30:25 -03:00
1ea38c5b84 respect :page-index order for navmap 2017-01-05 17:10:07 +01:00
b6b8ebfa22 undo project renaming 2017-01-04 09:41:18 +01:00
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).
2017-01-04 09:36:50 +01:00
Arsene Rei
272d688010 Add test for no directories 2016-05-27 11:53:14 -04:00
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.
2016-05-27 11:52:41 -04:00
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>
------------------------------
2016-01-11 21:30:21 +09:00
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. 2015-11-08 20:35:04 -05:00
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. 2015-11-01 19:34:06 -05:00