summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/generators.c4
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> &gt; %s", s3, get_index_filename (parent, theme, NULL, NULL), s5, s4, s1);
+ s2 = g_strdup_printf ("<a href=\"%s%s%s\"%s>%s</a> &gt; %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> &gt; %s", s3, get_index_filename (parent, theme, NULL, NULL), s5, s4, s1);
+ s2 = g_strdup_printf ("<a href=\"%s%s%s\"%s>%s</a> &gt; %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);