More Site Updates
After some hard work (cough) I’ve updated the following:
- Valid Atom feeds, even for comments
- Feed to get the 20 most recent comments
- Comments form without tables
- and better hints
- Highlighted the comment posted notification
- Ensured no XHTML escapes the system. HTML rocks
- Fixed Last-Modified on comment feeds
- Full content feeds (with summary)
TextPattern rocks.




(Making sure the new comment stuff actually works…)
Mark Wubben | 14 October 2005, 23:23 | link
(Yup!)
Mark Wubben | 14 October 2005, 23:24 | link
Just curious: how did you move to html 4.01 ?
Philippe | 15 October 2005, 04:13 | link
Well aside from modifying the templates, you need to put this code in
publish.php:(Basically you add the
$htmlstuff beforeheader())This makes sure no
/>is left in the code. I tried doing it with one RegExp, but it’d match the whitespace and keep it, so I’m using two.The only thing which could cause problems now is TextPattern spewing out namespaced attributes, since this RegExp isn’t looking for those.
Mark Wubben | 15 October 2005, 21:07 | link
Thanks, Mark. That is more or less the same route I was considering. Hadn’t worked on it yet, though.
Philippe | 16 October 2005, 06:59 | link
Why did you move from XHTML to HTML 4.01, Mark?
Lief Stryder van der Baan | 16 October 2005, 18:12 | link
I never moved, the previous version also was HTML :)
But for compatibility, XHTML needs to be sent as HTML. Which means browsers see it as invalid HTML, no matter how valid the XHTML is. Furthermore, you can write just as clean code in HTML as in XHTML, so I don’t see a reason to use XHTML. And it’s a point of pride in this day and age that I use HTML ;-)
Mark Wubben | 16 October 2005, 18:57 | link