diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2013-04-07 15:18:46 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2013-04-07 15:18:46 +0200 |
| commit | ac3567733e9d52ac1a5b8bad7fbce7c495af9d8e (patch) | |
| tree | e7e7cdacf92745aa4b63bd9efda934959022a870 | |
| parent | 3f65e3042b2dac350f05dbb49665f535d3e18d71 (diff) | |
| download | cataract-ac3567733e9d52ac1a5b8bad7fbce7c495af9d8e.tar.xz | |
Use rel="home" for links pointing to gallery root
Hopefully some browsers would understand that.
http://microformats.org/wiki/existing-rel-values
| -rw-r--r-- | src/generators.c | 4 |
1 files 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 ("<a href=\"%s%s%s\">%s</a> > %s", s3, get_index_filename (parent, theme, NULL, NULL), s5, s4, s1); + s2 = g_strdup_printf ("<a href=\"%s%s%s\"%s>%s</a> > %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 ("<a href=\"%s%s%s\">%s</a> > %s", s3, get_index_filename (parent, theme, NULL, NULL), s5, s4, s1); + s2 = g_strdup_printf ("<a href=\"%s%s%s\"%s>%s</a> > %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); |
