Commit graph

68 commits

Author SHA1 Message Date
f7ec6d06c1 Erase the asymmetry between articles and pages; make both optional though check that at least one exists 2020-09-30 22:00:30 +02:00
371b9a8098 Fix missing '<li>' around pages by factorizing the 'li_' into navigationSection 2020-09-30 11:44:19 +02:00
e0161173ef Make both navigation sections optional and disable them when empty 2020-09-29 22:11:53 +02:00
5211379f00 Replace magic string for default Article description by a template variable and add another one for a default description for Pages 2020-06-21 22:16:14 +02:00
8382dc11f2 Reuse new mDLink function to simplify mDContent 2020-06-21 21:46:35 +02:00
47f5c70e21 Add links to static pages and handle dynamic navigation on the JS side 2020-06-20 22:59:39 +02:00
937a6858e0 Add a class type for Markdown and implement HTML rendering for Pages 2020-06-20 16:23:33 +02:00
19b3694d06 Directly store each Markdown content's path in the data structure to save having to re-build the same concatenation again and again for all the various outputs where the path matters ; also handles elegantly the «issue» of pagesPath being a Maybe FilePath because pages are optional 2020-06-09 17:52:16 +02:00
fc0ef57b53 Remove dead code 2020-06-08 12:36:36 +02:00
1a2ece9dd9 Finish adapting everything to the new Markdown data type 2020-06-08 10:34:30 +02:00
1df95d5091 Start adding a Markdown data type common to Articles and Pages, refactor here and there, will need some more renaming / refactoring in DOM module 2020-06-07 23:16:40 +02:00
baa1d0ce09 Simplify inelegant code 2020-05-30 12:57:52 +02:00
fc8e26a983 Merge branch 'main' into implement-static-pages 2020-05-30 12:35:28 +02:00
1ac53e90d7 Merge branch 'main' into goSJW 2020-05-09 21:02:50 +02:00
f19331bf11 Generate links to RSS feeds generated, generalize conditional blocks for static templating thus simplifying some variables and clarify some data structures for Collections and ArticleLists 2020-05-08 15:51:25 +02:00
4f93b92cc4 Merge branch 'main' into goSJW 2020-03-25 19:48:46 +01:00
4e402174b1 Implement RSS feeds generation 2020-03-25 19:47:28 +01:00
fd714e93ff Require SJW, generate blog config as a standalone file because it's always nice to have (if you want to expose its content as a read-only API) and handle hablo.js compilation with SJW 2020-01-10 18:58:42 +01:00
add68897ad Adapt hablo's JS to SJW and stop requiring unitJS separately (since it's gonna get pulled in by sjw at compile time) 2020-01-10 18:56:59 +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
46daaa2b7a Draft a data structure for pages and make it part of the Blog datastructure 2019-08-27 16:49:47 +02:00
b080c32d4c Handle pages parameter : use custom value provided with the usual checks or default it to «pages/» iif the directory exists, otherwise pages are deactivated 2019-08-27 16:47:45 +02: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