Commit graph

51 commits

Author SHA1 Message Date
dfd3a78b79 Require separate RSS and Open Graph cards flags instead of an implicit '--site-url' triggering cards 2020-03-23 21:34:05 +01:00
77fc715294 Restrict imports in Lucid + use '<.>' to delimit filename and extension 2020-03-23 09:40:41 +01:00
5163d13ce8 Extract Collections out of HTML to make them available to RSS generator too 2020-03-22 23:16:39 +01:00
00c9b882b5 Add argument switch to enable RSS generation 2020-03-22 23:16:00 +01:00
36651ddc38 Fix Open Graph cards by adding a new option to provide the site's URL 2019-12-21 12:50:38 +01:00
94e323d715 Simplify Blog.Wording module and change conditional template blocks syntax a tiny bit 2019-08-27 13:23:17 +02:00
0d9b331ccb Print warnings about malformed Markdown articles instead of ignoring them silently 2019-04-28 17:27:55 +02:00
593780cbbd Release v1.0.0 2019-04-20 09:54:21 +02:00
2c6be28d76 Implement metadata for articles and comments 2019-03-02 23:44:09 +01:00
e9dad0fc3d Fix bug causing articles/ path to not be found when hablo is not run from the target directory 2019-03-02 23:40:34 +01:00
91bef62fbb Remove rests of .navigation class to hijack links rendered obsolete by 2c29b33 2019-03-02 22:45:26 +01:00
f9a82cb088 Harden wording files parsing against partial read due to unexpected token and add support for comments 2019-03-01 23:09:12 +01:00
413a409447 Explicitely import (<>) for older versions of base 2019-02-26 14:46:05 +01:00
4368f30531 Refactor code to get rid of fake *Export types 2019-02-22 23:29:35 +01:00
cfa501e3c4 Add an option to pass a custom config to remarkableJS 2019-02-22 22:02:07 +01:00
d7dcdb2880 Allow customizing the name of the comments section 2019-02-19 21:57:50 +01:00
04fe7b8f31 Refactor to put more work (checking files existance, making path absolutes) into the Files module and simplify Arguments a bit 2019-02-19 21:48:55 +01:00
c0b7285b2f Put a little responsability back into Main to avoid Arguments having control on main flow 2019-02-19 19:23:09 +01:00
602e345977 Make cardImage optional and detect it just like favicons 2019-02-19 18:40:32 +01:00
dd1dc6b3b1 Detect and use custom summary and featured image for articles 2019-02-19 17:36:16 +01:00
11a1ab0f7b Compatibility with old containers lib 2019-02-18 16:37:08 +01:00
339a1e0d20 Implement customizable texts 2019-02-17 19:55:11 +01:00
76607879df Remove unused exports, commented-out operator, fix bug in metadata parser failing when followed by ':' and redefine the offset as the number of lines to skip not the line at which body starts 2019-02-16 09:08:58 +01:00
6c3f31ea6c Implement comments activated by the presence of a 'comments:' field in the article's metadata 2019-02-16 08:13:14 +01:00
9d2411ef61 Remove unnecessary <p> around the links to switch between all and latest articles 2019-02-16 08:11:58 +01:00
85b71262be Get rid of source which is easily deducible from the articles key and articlesPath 2019-02-15 18:07:59 +01:00
ad5c8a0130 Use INPUT_DIR has the root of the blog now and add an option for a path where to look for articles and static pages 2019-02-15 15:11:47 +01:00
3130f5ee84 Use articles file names as hash keys and set date as a metadata 2019-02-15 14:16:21 +01:00
d1d874d597 Implement JS navigation 2019-02-15 14:13:43 +01:00
515fb14914 Take a part of Blog's configuration into a separate Skin module, add syntactic sugar and use the result in generation modules 2019-02-07 17:51:06 +01:00
7beb159a24 Add options to choose a favicon and a card image 2019-02-07 17:48:34 +01:00
bbef924104 Add alias to create <a/> with a "navigation" class and help the JS code distinguish between hablo generated links which navigation should be hijacked and regular ones 2019-02-06 17:49:28 +01:00
dcf8d3d010 Delete redundant <div id="contents"> in pages listing articles 2019-02-06 17:47:06 +01:00
7e875efc57 Compile several JS files into a single one, including the JSON blog DB as well 2019-02-06 17:17:42 +01:00
f537cde283 Generate cards for pages 2019-02-06 12:57:57 +01:00
773689c4ff Handle articles dates and tags into the articles JSON 2019-02-05 17:31:11 +01:00
ce3a061a73 Add a JS script to be copied in the project and loaded in the interface 2019-02-05 17:29:55 +01:00
9d22da4c8b Add program version in help and a separate --version flag 2019-02-05 10:48:57 +01:00
844cc5a638 Fix signature that was too general in class + add the actual module that was supposedly added three commits ago (38846e) 2019-02-04 22:50:41 +01:00
f7442f5b37 First attempt at exporting to JSON 2019-02-04 18:30:23 +01:00
fb66c578fa Add a class type for «things that can be used as a page content» 2019-02-04 15:50:35 +01:00
38846e1add Add a module to handle pages with articles list and generate HTML pages for articles too 2019-02-03 22:56:21 +01:00
7e4cde152c Implement title detection for articles 2019-02-03 16:14:19 +01:00
c8a9a6c9eb Split Dom templating and HTML generation process, make a separate module for articles to start scanning their content a bit 2019-02-02 23:23:05 +01:00
f81776d3de Add two arguments to pass HTML files for the head and the banner of pages 2019-02-02 17:26:07 +01:00
a9f220f9d8 Make input directory absolute and check it exists 2019-02-02 15:22:59 +01:00
62055a6a54 Use previous to generate links for articles and rename variable urlPath to filePath since it's actually the path of the file that's gonna be generated 2019-02-01 13:56:33 +01:00
375ea0f7b0 Changing directory to keep paths relative and generate urls more easily 2019-02-01 13:56:21 +01:00
cf2876abb9 Add import for Data.Monoid for backward compatibility 2019-02-01 13:56:05 +01:00
a8fd44e7ac Remove the option to generate into a directory other than the parent directory of the one containing the articles to get rid of the hassle of copying the markdown sources and simplify working with relative URLs during the generation process 2019-01-29 23:08:38 +01:00