I think it would be great if to have rel="bookmark" for permalinks. This usage is documented as a microformat, though it also has its detractors.
HTML5, currently a draft, explicitly describes the use of rel="bookmark" to indicate a permalink.
It should be optional, like nofollow.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | permalink-434952-2.patch | 775 bytes | andrewmacpherson |
| #1 | permalink-434952.patch | 2.21 KB | andrewmacpherson |
| #1 | permalink-434952-screenshot.png | 8.21 KB | andrewmacpherson |
Comments
Comment #1
andrewmacpherson commentedHere's my patch for this. Please review it and let me know what you think.
It adds an option to the admin settings page to allow
rel="bookmark"with permalinks.If both nofollow and bookmark options are checked, permalinks will have the attribute
rel="nofollow bookmark".The option defaults to false, so as not to add the feature to someone's website automatically after a module update.
Comment #2
todd nienkerk commentedThanks! I have added this functionality -- with a few minor changes -- to the 6.x-1.x-dev branch.
Comment #3
todd nienkerk commentedComment #4
andrewmacpherson commentedHi Todd,
Thanks for including this feature, and improving my code.
However, when I tested the new code from cvs, it doesn't work - the
relattributes are not being added to the link.A wee error has been introduced; my old choice of variable name persists in one condition. Easily fixed, see patch.
Comment #5
todd nienkerk commentedandrewmacpherson: Sorry for the runaround there. I realized my mistake earlier this morning and fixed it. It's been committed to the dev branch (along with some handy implementations of template_preprocess functions).