From ac3567733e9d52ac1a5b8bad7fbce7c495af9d8e Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sun, 7 Apr 2013 15:18:46 +0200 Subject: Use rel="home" for links pointing to gallery root Hopefully some browsers would understand that. http://microformats.org/wiki/existing-rel-values --- src/generators.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generators.c b/src/generators.c index 41ca616..52ec1ac 100644 --- a/src/generators.c +++ b/src/generators.c @@ -399,7 +399,7 @@ write_html_album (TGallerySetup *setup, s3 = make_string ("../", level); s4 = g_strdup (parent->ID); s5 = setup->use_inpage_links ? g_strdup_printf ("#i%d", old_parent_item_index) : g_strdup (""); - s2 = g_strdup_printf ("%s > %s", s3, get_index_filename (parent, theme, NULL, NULL), s5, s4, s1); + s2 = g_strdup_printf ("%s > %s", s3, get_index_filename (parent, theme, NULL, NULL), s5, (parent != NULL && parent->parent_index == NULL) ? " rel=\"home\"" : "", s4, s1); g_free (s3); g_free (s1); g_free (s4); @@ -885,7 +885,7 @@ write_html_image (TGallerySetup *setup, s3 = make_string ("../", level); s4 = g_strdup (parent->ID); s5 = setup->use_inpage_links ? g_strdup_printf ("#i%d", parent == parent_items ? item_index : old_parent_item_index) : g_strdup (""); - s2 = g_strdup_printf ("%s > %s", s3, get_index_filename (parent, theme, NULL, NULL), s5, s4, s1); + s2 = g_strdup_printf ("%s > %s", s3, get_index_filename (parent, theme, NULL, NULL), s5, (parent != NULL && parent->parent_index == NULL) ? " rel=\"home\"" : "", s4, s1); g_free (s3); g_free (s1); g_free (s4); -- cgit v1.2.3