11 Commits (1f0871a88141e0ca1ccd1d399ac6b3ff1ecd72ec)

Author SHA1 Message Date
Carmen La dec80185e5 A big ol' cleanup 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 792833facb rewrite-hrefs bug fix (when :blog-prefix is blank)
When :blog-prefix in `config.edn` is set nil or "",
rewrite-hrefs should return `text` itself.
9 years ago
Carmen La 1abc4c6137 Fix bug with rewrite-href function 9 years ago
Sergiy BONDARYEV eea999e1d7 add Blog/Page/Post/Tag uri customisation
add :tag-root-uri :page-root-uri :post-root-uri parsing

replace {entity}-root with {entity}-root-uri parameters to set uri

fix root-path call

fix root-path function params order
(worked erlier because of keyword<->map transposition)

fix keyword :{entity}-root-uri to :{entity}-root transformation

misprint: congig -> config

add function to compose file path

add create-file function

add function to compose a path

handle empty blog-path using path function

fix filename for preview
9 years ago
Yogthos 96502bd517 updated to use parser modules 10 years ago
Adam Tankanow eda815a5ae remove asciidoc options/attributes and add rewrite-href post processing 10 years ago
Adam Tankanow 1cff8eadf2 refactor rewrite-hrefs into 2 functions
- (1) can be reused by the asciidoc processing, it simply does the text
  replace
- (2) is a transformer using (1) for use in markdown.core
10 years ago
Adam Tankanow 21d825d0cd fix spacing in markdown method 10 years ago
Adam Tankanow b68779fcbe Abstract Markup language details and add Asciidoc support:
1. create markup namespace to hold Markup protocol and its Markdown and
Asciidoc implementations.
2. Update compiler ns to iterate through available Markups and pass
Markup to fns that need Markup info.
3. Refactor compiler ns parse fns to be more granular.
10 years ago
Adam Tankanow 68b82be959 add markup ns to abstract markdown vs asciidoc 10 years ago