[===]
| |
| |
/ \
| |
|-------| __/__
| CIDER | / \
|-------| | |
| | \ /
|_______| \_,,,_/
CIDER is a markdown-based blogging engine using BASH.
cider.sh [-c|--config] [-l|--localization] [-i|--inputDir] [-o|--outputDir] [-t|--theme] [-p|--pageSize] [-H|--homepage] [-h|--help]
-c|--config Path to the configuration file.
The default one is loaded from `core/config.sh`
-l|--localization Path to localization file.
The default one is loaded from `core/localization.sh`
-i|--inputDir Path to the directory where posts are placed with the following structure:
/YYYY/MM/DD/postName/index.md
YYYY - year - 4 numbers
MM - month - 2 numbers
DD - day - 2 numbers
-o|--outputDir Path to the directory where posts are exported.
-t|--theme The theme to use.
Themes are located in the `themes` directory.
-p|--pageSize The amount of posts per page.
-H|--homepage Homepage address.
E.g.: http://example.com
-h|--help Show this help and exit.
Configuration parameters affect the build process and resulting blog structure:
CIDER_inputDir— directory where posts will be looked upCIDER_outputDir— directory where built pages will be putCIDER_themeDir— directory where theme should be loaded from (completely overrides-t|--themeoption)CIDER_pageSize— amount of posts per pageCIDER_homepage— homepage addressCIDER_blogLanguage— language (used in RSS and specifies HTML lang attribute)CIDER_disqusId— Disqus comment widget ID
Default configuration parameter values are loaded from core/config.sh.
Parameters that are supplied via configuration file (see -c|--config option) or passed as environment variables will override default values:
$ CIDER_inputDir='/opt/cider.example.com/posts' \
CIDER_outputDir='/var/www/cider.example.com' \
CIDER_homepage='https://cider.example.com' \
cider.shLocalization messages are used in theme templates to display predefined texts and HTML snippets:
CIDER_mainTitle— HTML title shown for the homepageCIDER_mainTitlePaged— HTML title shown for the list of posts for pages 2, 3 and so onCIDER_pageLinkPrevText— symbol that will be used to display navigation link to a previous pageCIDER_pageLinkNextText— symbol that will be used to display navigation link to a next pageCIDER_pageLinkCurrText— HTML snippet that will render current page numberCIDER_blogName— blog nameCIDER_blogDescription— blog description (used in RSS, shown in default themes)CIDER_commentsTitle— title shown before Disqus comments widgetCIDER_meta— any additional meta information assigned to a blog
Default localization messages are loaded from core/localization.sh.
Parameters that are supplied via localization file (see -l|--localization option) or passed as environment variables will override default values:
$ CIDER_blogName='CIDER 101' \
CIDER_blogDescription='Tips and trick on using CIDER' \
cider.shWIP.