From 5a020e6640b2723a57176e6596ea665442d53672 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Wed, 13 Aug 2008 23:11:19 +0200 Subject: Fix up meta tags, add support for author tag --- generators.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'generators.c') diff --git a/generators.c b/generators.c index 654e01a..0a07eb8 100644 --- a/generators.c +++ b/generators.c @@ -327,6 +327,13 @@ write_html_album (TGallerySetup *setup, str_replace (&b, "", s1, NULL); g_free (s1); } + if (strstr (b, "")) { + s1 = g_strdup_printf ("Cataract Gallery Generator v%s", APP_VERSION); + str_replace (&b, "", s1, NULL); + g_free (s1); + } + if (strstr (b, "") && setup->meta_author) + str_replace (&b, "", setup->meta_author, NULL); if (strstr (b, "")) { s1 = g_strdup_printf ("%d", items->items->len); str_replace (&b, "", s1, NULL); @@ -749,12 +756,19 @@ write_html_image (TGallerySetup *setup, str_replace (&b, "", "index.html", NULL); } - if (strstr (b, "")) { + if (strstr (b, "") && setup->footer) { s1 = g_strdup (setup->footer); fix_entities (&s1); str_replace (&b, "", s1, NULL); g_free (s1); } + if (strstr (b, "")) { + s1 = g_strdup_printf ("Cataract Gallery Generator v%s", APP_VERSION); + str_replace (&b, "", s1, NULL); + g_free (s1); + } + if (strstr (b, "") && setup->meta_author) + str_replace (&b, "", setup->meta_author, NULL); if (! fputs (b, fout)) { fprintf (stderr, "write_html_image: error writing to file \"%s\": %s\n", dst, strerror (errno)); -- cgit v1.2.3