9ee696abcfd19305fcaf906812aac448a809866a — Louis Solofrizzo 1 year, 24 days ago 37aec51 master
Typos: Fix a bug in the RSS and some typos in the help

Signed-off-by: Louis Solofrizzo <lsolofrizzo@online.net>
2 files changed, 6 insertions(+), 3 deletions(-)

M main.c
M rss.c
M main.c => main.c +5 -2
@@ 138,7 138,7 @@ 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 @@ 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 @@ 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 @@ 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;
  }

M rss.c => rss.c +1 -1
@@ 46,7 46,7 @@                   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>");
              }