aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc
Commit message (Collapse)AuthorAgeFilesLines
* blogc: loader: minor improvementRafael G. Martins2019-07-241-1/+2
|
* blogc: added FILTER_SORT, to sort posts by DATERafael G. Martins2019-04-281-30/+90
|
* blogc: added support for formatted variables in -pRafael G. Martins2019-04-131-5/+4
|
* blogc: added `-e` cli option and `listing_entry` template blockRafael G. Martins2019-04-024-10/+52
|
* blogc: -p should return special code when variable not foundRafael G. Martins2019-03-281-1/+7
|
* blogc: exit 1 on errorRafael G. Martins2019-03-281-10/+10
|
* blogc: dump source file variables as well as global variablesRafael G. Martins2019-03-271-5/+10
|
* blogc: content: do not escape inline codeRafael G. Martins2019-02-241-2/+2
| | | | | | this is more compatible with markdown spec[1] [1] https://daringfireball.net/projects/markdown/syntax#code
* blogc: sysinfo: simplified username impl. fixed testsRafael G. Martins2019-02-233-30/+2
|
* blogc: rusage: added tests, fixed minor issueRafael G. Martins2019-02-102-2/+4
|
* blogc: sysinfo: added testsRafael G. Martins2019-02-101-0/+2
|
* blogc: funcvars: code simplified, added testsRafael G. Martins2019-02-103-10/+11
|
* blogc: template: allow whitespaces in template tags, not just spacesRafael G. Martins2019-02-091-16/+15
|
* blogc: sysinfo: fix memory leakRafael G. Martins2019-02-081-0/+1
|
* blogc: added "inside docker" template variableRafael G. Martins2019-02-043-0/+43
|
* blogc: added username template variableRafael G. Martins2019-02-033-0/+49
|
* blogc: added datetime template variableRafael G. Martins2019-02-033-0/+46
|
* blogc: unistd.h wont provide gethostnameRafael G. Martins2019-02-031-0/+2
|
* blogc: added hostmane template variableRafael G. Martins2019-02-033-0/+77
|
* blogc: rusage: fix formattingRafael G. Martins2019-02-021-4/+4
|
* blogc: optimized getrusage callsRafael G. Martins2019-02-024-43/+31
|
* blogc: fix rusage macroRafael G. Martins2019-02-021-2/+6
|
* blogc: do not add rusage vars if not supportedRafael G. Martins2019-02-023-1/+22
|
* blogc: added template variables for memory and cpu time resource usageRafael G. Martins2019-02-025-3/+183
| | | | | | | this include infrastructure required to have variables evaluated as lazy function calls. missing tests, docs and improvements.
* *: update copyrightRafael G. Martins2019-01-1515-15/+15
|
* renderer: fix a (very) unlikely segfault detected by scan-buildRafael G. Martins2018-12-201-2/+2
|
* *: update copyrightRafael G. Martins2018-10-1415-15/+15
|
* blogc: common: replace unsigned int with size_tRafael G. Martins2018-03-206-14/+14
|
* blogc: loader: respect FILTER_PER_PAGE=0Rafael G. Martins2018-03-201-2/+2
|
* Revert "blogc: make: mkdir may raise ENOENT"Rafael G. Martins2018-02-251-1/+1
| | | | | | This reverts commit 0bc74a99b362a7ef58655bf3d4b29d5699c38c90. That change made no sense :x
* blogc: make: mkdir may raise ENOENTRafael G. Martins2018-02-241-1/+1
|
* blogc: template: fixed commentRafael G. Martins2018-02-221-1/+3
|
* blogc: template parser refactoringRafael G. Martins2018-02-216-161/+164
| | | | mostly names and data structures.
* Allow lines starting with * or **baylej2017-10-251-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_REVERSERafael G. Martins2017-07-251-1/+14
|
* allow source config keys without valueRafael G. Martins2017-06-281-3/+4
|
* Fix an issue when using imbricated if-else blocksbaylej2017-05-041-0/+3
| | | | `valid_else` is not correctly set when `evaluate` is true
* *: updated copyrightRafael G. Martins2017-02-2515-15/+15
|
* content-parser: source-parser: rename TITLE to FIRST_HEADERRafael G. Martins2017-02-153-13/+13
|
* content-parser: html-encode pre-defined title. updated man pagesRafael G. Martins2017-02-151-1/+1
|
* content-parser: source-parser: extract TITLE from content headerRafael G. Martins2017-02-143-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 binaryRafael G. Martins2017-01-301-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 blogcRafael G. Martins2016-12-271-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. Martins2016-12-261-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 handlingRafael G. Martins2016-12-231-0/+5
|
* fixed includesRafael G. Martins2016-11-191-1/+0
|
* blogc: added more parenthesis to make gcc happy. trying to fix travisRafael G. Martins2016-10-151-1/+1
|
* blogc: we still need to strip newlines from end of lineRafael G. Martins2016-10-151-1/+8
|
* blogc: do not strip spaces, they are valid in file namesRafael G. Martins2016-10-151-4/+3
|
* blogc: add cli option to read list of source files from stdinRafael G. Martins2016-10-151-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.