Commit graph

14 commits

Author SHA1 Message Date
jem
8ecdb8c3c6 create dirs from md works 2019-12-20 15:55:53 +01:00
Tom L
c18c3d60f2 Implement clean URLs feature (Issue #89)
When `clean-urls?` is set in config, emit pages as subdirectories
`prefix/root/page-name/index.html` instead of
`prefix/root/page-name.html`. Links in emitted HTML then point to
`prefix/root/page-name/`. When `clean-urls?` not set, behaves as
before.

Refactor most URI generation into a new `page-uri` function.
`page-uri` replaces most calls* to `path`, all calls to `post-uri`
and all calls to the old `page-uri`.

Introduce function `create-file-recursive`. Function creates
file parent if not exists.

Introduce function `write-html`. When `clean-urls?` is set, spits
emitted HTML into subdirectories as described above; otherwise
behaves like `create-file`. Replaces most* calls to `create-file`
Calls `create-file` or `create-file-recursive`.

* Exceptions made for sitemap XML and RSS feed XML pages
2016-02-11 20:04:56 -06:00
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
2016-01-08 22:59:10 +01:00
Marko Kocic
8e5b3a9fee Fix type hint cast 2015-09-15 18:24:51 +02:00
Marko Kocic
f4888b26d9 Clear reflection warnings 2015-09-14 12:06:35 +02:00
lacarmen
4511536cc9 Cleanup + fixes for config based themes 2015-06-14 11:16:35 -04:00
Albert Lai
bc62c8a790 fix issue #24 image handling in Post is generally broken 2015-06-14 13:47:18 +08:00
Adam Tankanow
8ff3f19362 find-assets handles get-resource returning nilern
- this can/will happen if a user doesn't have a resource root directory,
  e.g. if the resources/templates/asc/posts directory doesn't exist.
2015-01-11 14:20:10 -05:00
J Irving
072c093342 Copy each file rather than the whole directory 2015-01-07 23:54:58 -05:00
J Irving
6f7cb79a65 Sass compilation respects :ignored-files config
This is an oversight from lacarmen/cryogen-core#4.

Also some slight refactoring.
2015-01-01 03:49:03 -05:00
J Irving
efbe831261 Support :ignored-file config key
Prevent the compiler attempting to process files defined by a list of
regexps. By default ignore emacs and vi backup files.
2014-12-27 02:47:55 -05:00
lacarmen
f83497b152 Cleanup 2014-12-14 13:37:59 -05:00
Martin Kremers
d9fe01d8f6 Make images from md folders available, so a post or page can be one unit in a folder 2014-12-07 17:50:24 +01:00
lacarmen
9ee0968a0f Renamed to cryogen-core 2014-12-05 10:56:40 -05:00
Renamed from src/cryogen/io.clj (Browse further)