diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2011-01-01 22:19:46 +0100 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-01-14 14:31:45 -0400 |
commit | 9c7d1c053f929b292cdc8e61a1d419afc0462794 (patch) | |
tree | eb527f6b017f68faa9653e6220fe4c0fa6a81f96 | |
parent | cd3298ae35f61acc08f488f4fa658c0e880549e2 (diff) | |
download | ikiwiki-9c7d1c053f929b292cdc8e61a1d419afc0462794.tar ikiwiki-9c7d1c053f929b292cdc8e61a1d419afc0462794.tar.gz |
feedlink/blogpost templates: use class instead of id
There can be more than one feedlink group in a page, as well as (more
rarely) multiple blog forms, and using the same id for all of them
causes HTML validation errors. Replace the id with a class by the same
name and adjust in-repository CSS.
(cherry picked from commit 0c3b91e1f06fb357711cfa71d514f139cd8e04e3)
-rw-r--r-- | doc/css_market/kirkambar.css | 2 | ||||
-rw-r--r-- | doc/style.css | 4 | ||||
-rw-r--r-- | templates/blogpost.tmpl | 2 | ||||
-rw-r--r-- | templates/feedlink.tmpl | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/doc/css_market/kirkambar.css b/doc/css_market/kirkambar.css index 76d9ba771..e756a1260 100644 --- a/doc/css_market/kirkambar.css +++ b/doc/css_market/kirkambar.css @@ -40,7 +40,7 @@ pre, tt, code { monospace; } -pre, tt, code, tr.changeinfo, #blogform { +pre, tt, code, tr.changeinfo, .blogform { color: inherit; background-color: #f6f6f0; } diff --git a/doc/style.css b/doc/style.css index aa27d8866..577a48692 100644 --- a/doc/style.css +++ b/doc/style.css @@ -179,7 +179,7 @@ div.recentchanges { width: 60%; } -#blogform { +.blogform { padding: 10px 10px; border: 1px solid #aaa; background: #eee; @@ -274,7 +274,7 @@ div.progress-done { .tags { display: none; } .feedbutton { display: none; } #searchform { display: none; } - #blogform { display: none; } + .blogform { display: none; } #backlinks { display: none; } } diff --git a/templates/blogpost.tmpl b/templates/blogpost.tmpl index 754f24b4e..b9a3bc666 100644 --- a/templates/blogpost.tmpl +++ b/templates/blogpost.tmpl @@ -1,5 +1,5 @@ <form action="<TMPL_VAR CGIURL>" method="get"> -<div id="blogform"> +<div class="blogform"> <TMPL_IF RSSURL> <a class="feedbutton" type="application/rss+xml" rel="alternate" title="<TMPL_VAR RSSDESC>" href="<TMPL_VAR RSSURL>">RSS</a> </TMPL_IF> diff --git a/templates/feedlink.tmpl b/templates/feedlink.tmpl index fdad7f918..392871e03 100644 --- a/templates/feedlink.tmpl +++ b/templates/feedlink.tmpl @@ -1,4 +1,4 @@ -<div id="feedlink"> +<div class="feedlink"> <TMPL_IF RSSURL> <a class="feedbutton" type="application/rss+xml" rel="alternate" title="<TMPL_VAR RSSDESC>" href="<TMPL_VAR RSSURL>">RSS</a> </TMPL_IF> |