Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | blogc: loader: minor improvement | Rafael G. Martins | 2019-07-24 | 1 | -1/+2 |
| | |||||
* | blogc: added FILTER_SORT, to sort posts by DATE | Rafael G. Martins | 2019-04-28 | 1 | -30/+90 |
| | |||||
* | blogc: added support for formatted variables in -p | Rafael G. Martins | 2019-04-13 | 1 | -5/+4 |
| | |||||
* | blogc: added `-e` cli option and `listing_entry` template block | Rafael G. Martins | 2019-04-02 | 4 | -10/+52 |
| | |||||
* | blogc: -p should return special code when variable not found | Rafael G. Martins | 2019-03-28 | 1 | -1/+7 |
| | |||||
* | blogc: exit 1 on error | Rafael G. Martins | 2019-03-28 | 1 | -10/+10 |
| | |||||
* | blogc: dump source file variables as well as global variables | Rafael G. Martins | 2019-03-27 | 1 | -5/+10 |
| | |||||
* | blogc: content: do not escape inline code | Rafael G. Martins | 2019-02-24 | 1 | -2/+2 |
| | | | | | | this is more compatible with markdown spec[1] [1] https://daringfireball.net/projects/markdown/syntax#code | ||||
* | blogc: sysinfo: simplified username impl. fixed tests | Rafael G. Martins | 2019-02-23 | 3 | -30/+2 |
| | |||||
* | blogc: rusage: added tests, fixed minor issue | Rafael G. Martins | 2019-02-10 | 2 | -2/+4 |
| | |||||
* | blogc: sysinfo: added tests | Rafael G. Martins | 2019-02-10 | 1 | -0/+2 |
| | |||||
* | blogc: funcvars: code simplified, added tests | Rafael G. Martins | 2019-02-10 | 3 | -10/+11 |
| | |||||
* | blogc: template: allow whitespaces in template tags, not just spaces | Rafael G. Martins | 2019-02-09 | 1 | -16/+15 |
| | |||||
* | blogc: sysinfo: fix memory leak | Rafael G. Martins | 2019-02-08 | 1 | -0/+1 |
| | |||||
* | blogc: added "inside docker" template variable | Rafael G. Martins | 2019-02-04 | 3 | -0/+43 |
| | |||||
* | blogc: added username template variable | Rafael G. Martins | 2019-02-03 | 3 | -0/+49 |
| | |||||
* | blogc: added datetime template variable | Rafael G. Martins | 2019-02-03 | 3 | -0/+46 |
| | |||||
* | blogc: unistd.h wont provide gethostname | Rafael G. Martins | 2019-02-03 | 1 | -0/+2 |
| | |||||
* | blogc: added hostmane template variable | Rafael G. Martins | 2019-02-03 | 3 | -0/+77 |
| | |||||
* | blogc: rusage: fix formatting | Rafael G. Martins | 2019-02-02 | 1 | -4/+4 |
| | |||||
* | blogc: optimized getrusage calls | Rafael G. Martins | 2019-02-02 | 4 | -43/+31 |
| | |||||
* | blogc: fix rusage macro | Rafael G. Martins | 2019-02-02 | 1 | -2/+6 |
| | |||||
* | blogc: do not add rusage vars if not supported | Rafael G. Martins | 2019-02-02 | 3 | -1/+22 |
| | |||||
* | blogc: added template variables for memory and cpu time resource usage | Rafael G. Martins | 2019-02-02 | 5 | -3/+183 |
| | | | | | | | this include infrastructure required to have variables evaluated as lazy function calls. missing tests, docs and improvements. | ||||
* | *: update copyright | Rafael G. Martins | 2019-01-15 | 15 | -15/+15 |
| | |||||
* | renderer: fix a (very) unlikely segfault detected by scan-build | Rafael G. Martins | 2018-12-20 | 1 | -2/+2 |
| | |||||
* | *: update copyright | Rafael G. Martins | 2018-10-14 | 15 | -15/+15 |
| | |||||
* | 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. |