summaryrefslogtreecommitdiffstats
path: root/org/madore
diff options
context:
space:
mode:
authorDavid A. Madore <david+git@madore.org>2011-09-10 23:28:19 +0200
committerDavid A. Madore <david+git@madore.org>2011-09-10 23:28:19 +0200
commit3f8930ef88bc648091a5be2bb3d2de606e06304c (patch)
tree7459160edd85c8a2f842b34faf1a460fa65a58b3 /org/madore
parent044bdf36516e89ad3e3d37441443f842c3f396bb (diff)
downloaddamlengine-3f8930ef88bc648091a5be2bb3d2de606e06304c.tar.gz
damlengine-3f8930ef88bc648091a5be2bb3d2de606e06304c.tar.bz2
damlengine-3f8930ef88bc648091a5be2bb3d2de606e06304c.zip
More link rel attribute goodness.
Set rel="bookmark" on blog entry permalinks, rel="alternate" on translation pages.
Diffstat (limited to 'org/madore')
-rw-r--r--org/madore/damlengine/TodoEntryElement.java1
-rw-r--r--org/madore/damlengine/TodoTranslations.java1
2 files changed, 2 insertions, 0 deletions
diff --git a/org/madore/damlengine/TodoEntryElement.java b/org/madore/damlengine/TodoEntryElement.java
index db78c06..4fed3c1 100644
--- a/org/madore/damlengine/TodoEntryElement.java
+++ b/org/madore/damlengine/TodoEntryElement.java
@@ -80,6 +80,7 @@ public final class TodoEntryElement extends TodoDefaultElement {
permalink.setAttributeNS(null, "href",
entryYearStr+"-"+entryMonthStr+".html"
+"#"+entryIdStr);
+ permalink.setAttributeNS(null, "rel", "bookmark");
permalink.appendChild(ctx.doc.createTextNode(entryDateStr));
headlink.appendChild(permalink);
if ( ! entryDowStr.equals("") )
diff --git a/org/madore/damlengine/TodoTranslations.java b/org/madore/damlengine/TodoTranslations.java
index cfd08af..53a9503 100644
--- a/org/madore/damlengine/TodoTranslations.java
+++ b/org/madore/damlengine/TodoTranslations.java
@@ -40,6 +40,7 @@ public final class TodoTranslations extends TodoElement {
p.appendChild(a);
a.setAttributeNS(null, "href", ctx.gc.fileName+"."+trlang);
a.setAttributeNS(null, "hreflang", trlang);
+ a.setAttributeNS(null, "rel", "alternate");
str = trlang;
if ( trlang.equals("en") )
str = "English version";