cld-ssg

The static site generator (to be) used for hellocld.com
git clone git://git.hellocld.com/cld-ssg
Log | Files | Refs

commit 888a046ddea5dd29b2aef96b1a4da93a5012c253
parent 8e2161018182ecf9922d03eff173cff9d7bfdcc2
Author: Christopher Ray Langford <chris@hellocld.com>
Date:   Tue,  1 Oct 2019 10:41:45 -0400

Fixed a bug with md_filter allowing ANYTHING with .md in the name through

This meant .md.swp files from Vim were getting in and breaking
everything. I should probably add some sort of contingency for posts
that don't have a H1 heading, since this is really what caused the last
crash.

Diffstat:
Massets/header.html | 3++-
Mmain.c | 2+-
Apostdir/2019-10-01-09-58-embed-testing.md | 5+++++
3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/assets/header.html b/assets/header.html @@ -12,7 +12,8 @@ <nav> <ul> <li><a href="/archive.html">Archive</a></li> -<li><a href="https://git.hellocld.com">Repos</a></li> +<li><a href="https://hellocld.itch.io" target="_blank">Games</a></li> +<li><a href="https://git.hellocld.com" target="_blank">Repos</a></li> <li><a href="mailto:chris@hellocld.com">Contact</a></li> </ul> </nav> diff --git a/main.c b/main.c @@ -89,7 +89,7 @@ int main() int md_filter(const struct dirent *d) { /* if d->d_name doesn't end with ".md" we don't want it */ - if(strstr(d->d_name, ".md") != NULL) + if(strcmp(d->d_name + (strlen(d->d_name) - 3), ".md") == 0) return 1; return 0; } diff --git a/postdir/2019-10-01-09-58-embed-testing.md b/postdir/2019-10-01-09-58-embed-testing.md @@ -0,0 +1,5 @@ +# Embed Testing + +Testing the iframe embeddability and stuff. + +<iframe src="https://itch.io/embed/68785" width="552" height="167" frameborder="0"></iframe>