shayla

a simple yet fast static site builder
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/shayla

commit 9ee696abcfd19305fcaf906812aac448a809866a
parent 37aec51b0db38952f42ab0187551c3881ce18c31
Author: Louis Solofrizzo <lsolofrizzo@online.net>
Date:   Sat, 29 Sep 2018 14:58:10 +0200

Typos: Fix a bug in the RSS and some typos in the help

Signed-off-by: Louis Solofrizzo <lsolofrizzo@online.net>

Diffstat:
Mmain.c | 7+++++--
Mrss.c | 2+-
2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/main.c b/main.c @@ -138,7 +138,7 @@ static void help(void) usage(" title: Article title"); usage(" summary: Article summary"); usage(" ---"); - usage("Optionnal headers can be passed to:"); + usage("Optional headers can be passed to:"); usage("- 'route': Route of article (/argument-value.html)"); usage("- 'date': Date of the article, in YYYY-MM-DD format. If this option"); usage(" is not here, shayla will look for the last modified timestamp from"); @@ -158,6 +158,7 @@ static void help(void) usage("(at your option) any later version."); usage(""); usage("Sources are available at <https://git.ne02ptzero.me/shayla/>"); + usage("Found a bug? Please shoot me an email!"); usage("Louis Solofrizzo <louis at ne02ptzero dot me>"); } @@ -170,6 +171,7 @@ static void version(void) usage("There is NO WARRANTY, to the extent permitted by law."); usage(""); usage("Sources are available at <https://git.ne02ptzero.me/shayla/>"); + usage("Found a bug? Please shoot me an email!"); usage("Louis Solofrizzo <louis at ne02ptzero dot me>"); } #undef usage @@ -400,11 +402,12 @@ int main(int ac, const char **av) if (!generate_sitemap(&ctx)) goto end; + OK("All good, you can find your website in %s\n", ctx.dest); ret = 0; end: free_args(options, COUNT_OF(options)); pool_cleanup(); shayla_dtr(&ctx); - OK("All good, ret = %d\n", ret); + DEBUG("Quitting, ret = %d\n", ret); return ret; } diff --git a/rss.c b/rss.c @@ -46,7 +46,7 @@ bool generate_rss(const shayla_t *ctx) xml("<item>") { xml("<title>%s</title>", ptr->title); - xml("<link>%s%s%s.xml</link>", ctx->url, ctx->root, ptr->route); + xml("<link>%s%s%s.html</link>", ctx->url, ctx->root, ptr->route); xml("<description>%s</description>", ptr->summary); } xml("</item>"); }