Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | blogc: common: replace unsigned int with size_t | Rafael G. Martins | 2018-03-20 | 6 | -14/+14 |
| | |||||
* | blogc: loader: respect FILTER_PER_PAGE=0 | Rafael G. Martins | 2018-03-20 | 1 | -2/+2 |
| | |||||
* | Revert "blogc: make: mkdir may raise ENOENT" | Rafael G. Martins | 2018-02-25 | 1 | -1/+1 |
| | | | | | | This reverts commit 0bc74a99b362a7ef58655bf3d4b29d5699c38c90. That change made no sense :x | ||||
* | blogc: make: mkdir may raise ENOENT | Rafael G. Martins | 2018-02-24 | 1 | -1/+1 |
| | |||||
* | blogc: template: fixed comment | Rafael G. Martins | 2018-02-22 | 1 | -1/+3 |
| | |||||
* | blogc: template parser refactoring | Rafael G. Martins | 2018-02-21 | 6 | -161/+164 |
| | | | | mostly names and data structures. | ||||
* | Allow lines starting with * or ** | baylej | 2017-10-25 | 1 | -7/+24 |
| | | | | | | | These are emphasizing markups per the "Markdown standard". A line containing two '*' or '+' or '-' are not valid horizontal rules. See: https://daringfireball.net/projects/markdown/syntax#hr | ||||
* | loader: added FILTER_REVERSE | Rafael G. Martins | 2017-07-25 | 1 | -1/+14 |
| | |||||
* | allow source config keys without value | Rafael G. Martins | 2017-06-28 | 1 | -3/+4 |
| | |||||
* | Fix an issue when using imbricated if-else blocks | baylej | 2017-05-04 | 1 | -0/+3 |
| | | | | `valid_else` is not correctly set when `evaluate` is true | ||||
* | *: updated copyright | Rafael G. Martins | 2017-02-25 | 15 | -15/+15 |
| | |||||
* | content-parser: source-parser: rename TITLE to FIRST_HEADER | Rafael G. Martins | 2017-02-15 | 3 | -13/+13 |
| | |||||
* | content-parser: html-encode pre-defined title. updated man pages | Rafael G. Martins | 2017-02-15 | 1 | -1/+1 |
| | |||||
* | content-parser: source-parser: extract TITLE from content header | Rafael G. Martins | 2017-02-14 | 3 | -5/+21 |
| | | | | | | | | | | | this patch implements support to using the first header found in source file as the TITLE variable. please note that if the TITLE variable is defined on the source file's variable section it takes precedence. this patch changes the old behaviour and can break some users' websites. if you have some '{% ifdef TITLE %}' blocks in your template, they will evaluate to true if you don't defined TITLE manually, but have a header in your content. | ||||
* | make-embedded: removed symlink support from blogc binary | Rafael G. Martins | 2017-01-30 | 1 | -8/+3 |
| | | | | | embedded binary is supposed to be used on lambda, not to replace blogc-make binary on common setups | ||||
* | make: implemented a build tool for blogc | Rafael G. Martins | 2016-12-27 | 1 | -4/+42 |
| | | | | | | | | | | | | | | | | | so, this is basically what happens when you don't have anything better to do in the christmas weekend. most of this code was written in the last 2 or 3 days. i'd like to thank the chivas brothers, the weather and my psychological problems for this achievement. on a serious note, this tool still needs a man page, more tests, and the aws lambda function should be adapted to use it instead of (or together with) make/busybox. also, while talking about aws lambda, this tool can be nicely embedded into the blogc binary, to produce a single "small" static binary for usage in lambda ;) | ||||
* | *: binaries should always return 3 on errors, for consistency. | Rafael G. Martins | 2016-12-26 | 1 | -10/+10 |
| | | | | | | We used to return 1 or 2 in case of errors, with no special meaning, other than "something is wrong", but these codes are reserved. Now we always return 3. | ||||
* | blogc: common: git-receiver: improved error handling | Rafael G. Martins | 2016-12-23 | 1 | -0/+5 |
| | |||||
* | fixed includes | Rafael G. Martins | 2016-11-19 | 1 | -1/+0 |
| | |||||
* | blogc: added more parenthesis to make gcc happy. trying to fix travis | Rafael G. Martins | 2016-10-15 | 1 | -1/+1 |
| | |||||
* | blogc: we still need to strip newlines from end of line | Rafael G. Martins | 2016-10-15 | 1 | -1/+8 |
| | |||||
* | blogc: do not strip spaces, they are valid in file names | Rafael G. Martins | 2016-10-15 | 1 | -4/+3 |
| | |||||
* | blogc: add cli option to read list of source files from stdin | Rafael G. Martins | 2016-10-15 | 1 | -2/+27 |
| | | | | | | | | | | this patch adds `-i` option to command line. it will instruct blogc to read stdin and parse it as a file where each source file is a line and empty lines and lines starting with `#` are ignored. this patch makes it possible to use blogc to build big blogs with lots of pages, that would hit the operating system max command line length when calling blogc to build pages. | ||||
* | runserver: blogc/loader: improve strto*l handling | Rafael G. Martins | 2016-10-14 | 1 | -3/+15 |
| | |||||
* | renderer: fixed strtol error detection bug in freebsd | Rafael G. Martins | 2016-10-13 | 1 | -6/+5 |
| | | | | | it seems that error detection for strtol using errno is a glibc extension. | ||||
* | *: fixed includes | Rafael G. Martins | 2016-10-07 | 1 | -1/+0 |
| | |||||
* | runserver: reimplemented http server without libevent | Rafael G. Martins | 2016-09-25 | 1 | -2/+2 |
| | | | | | | | | | yeah, this patch implements a "complete" http server for static files. It is not the best code possible, and would be easily DDoS'able if used in production, as it spawns a thread for each request, without limiting. I'm sickish and this is the best code I can deliver now. At least it works! ;) | ||||
* | error: added prefix support to bc_error_print | Rafael G. Martins | 2016-09-16 | 2 | -3/+3 |
| | |||||
* | blogc: common: moved "file" to common | Rafael G. Martins | 2016-09-09 | 3 | -92/+3 |
| | |||||
* | file: do not call fprintf directly | Rafael G. Martins | 2016-09-09 | 3 | -19/+7 |
| | |||||
* | s/blogc_utf8_/bc_utf8_/g | Rafael G. Martins | 2016-09-09 | 2 | -3/+3 |
| | |||||
* | *: centralize error handling | Rafael G. Martins | 2016-09-09 | 14 | -79/+3 |
| | |||||
* | *: moved error handling to src/common/ | Rafael G. Martins | 2016-09-03 | 16 | -275/+178 |
| | |||||
* | *: s/sb_/bc_/g | Rafael G. Martins | 2016-09-03 | 15 | -328/+328 |
| | |||||
* | *: big code reorganization. | Rafael G. Martins | 2016-09-03 | 19 | -0/+4041 |
- source and tests are now splitted by target - utils lib is now called common still pending move error.c from blogc to common |