{"id":90398,"date":"2008-04-29T22:51:00","date_gmt":"2008-04-29T21:51:00","guid":{"rendered":"http:\/\/pw201.livejournal.com\/90398.html"},"modified":"2008-04-29T22:51:00","modified_gmt":"2008-04-29T21:51:00","slug":"dear-lazyweb","status":"publish","type":"post","link":"https:\/\/www.noctua.org.uk\/blog\/2008\/04\/29\/dear-lazyweb\/","title":{"rendered":"Dear Lazyweb"},"content":{"rendered":"<p>Some of <a href=\"http:\/\/www.livejournal.com\/users\/pw201\/friends\/\">you<\/a> customise your journal&#8217;s appearance using LiveJournal&#8217;s <a href=\"http:\/\/www.livejournal.com\/doc\/s2\/\">S2<\/a> system. The whole thing looks a bit <a href=\"http:\/\/www.jargondb.org\/glossary\/baroque\">baroque<\/a>, with much mentioning of &#8220;layers&#8221;, so I thought I&#8217;d just ask questions of people who might know how to do what I want.<BR><BR>I have a thingy which generates an <a href=\"http:\/\/en.wikipedia.org\/wiki\/Atom_(standard)\">Atom feed<\/a> from the comments on each of public postings (by &#8220;thingy&#8221; I mean a couple of Python scripts, one of which is a heavily modified version of <a href=\"http:\/\/hewgill.com\/ljdump\/\">ljdump<\/a> and the other of which is a script which generates the feeds using the dumped information. I might publish them if anyone&#8217;s interested). Proper blogs have these feeds, so I thought mine should too.<BR><BR>I would like to <a href=\"http:\/\/diveintomark.org\/archives\/2003\/12\/19\/atom-autodiscovery\">make people&#8217;s browsers aware of the feed<\/a> when viewing an entry, which means sticking some extra <code>&lt;link&gt;<\/code> elements into the <code>&lt;head&gt;<\/code> element of the entry view. I&#8217;d also like to link to the feed somewhere on the entry page, probably in the little list of stuff you can do with the entry (you know, permalink, write a comment, add to memories, <a href=\"\/blog\/?p=83644\">denounce<\/a>, and so on). The link would reference <code>http:\/\/www.noctua.org.uk\/paul\/lj\/feeds\/<i>nnnn<\/i>.xml<\/code>, where <i>nnnn<\/i> is the unique number which LJ puts in the permalink to the entry itself (for example, <a href=\"\/blog\/?p=83644\">this entry<\/a>&#8216;s number is 83644).<BR><BR>At some stage the script is also going to produce a single feed of all comments on my public postings (and maybe all my comments on your public postings, if you don&#8217;t object). So I&#8217;d also like to know how to stick stuff in the &lt;head&gt; of the entire journal view (which already links to the Atom feed of my postings which LJ generates itself).<BR><BR>Any help you can give in telling me where to start with this stuff would be much appreciated.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Some of you customise your journal&#8217;s appearance using LiveJournal&#8217;s S2 system. The whole thing looks a bit baroque, with much mentioning of &#8220;layers&#8221;, so I thought I&#8217;d just ask questions of people who might know how to do what I want.I have a thingy which generates an Atom feed from the comments on each of&hellip;<\/p>\n <a href=\"https:\/\/www.noctua.org.uk\/blog\/2008\/04\/29\/dear-lazyweb\/\" title=\"Dear Lazyweb\" class=\"entry-more-link\"><span>Read More<\/span> <span class=\"screen-reader-text\">Dear Lazyweb<\/span><\/a>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"Layout":"","footnotes":"","_links_to":"","_links_to_target":""},"categories":[19],"tags":[10,98,116,146],"class_list":["entry","author-paul","post-90398","post","type-post","status-publish","format-standard","category-blog","tag-atom","tag-internet","tag-livejournal","tag-programming"],"_links":{"self":[{"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/posts\/90398","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/comments?post=90398"}],"version-history":[{"count":0,"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/posts\/90398\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/media?parent=90398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/categories?post=90398"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/tags?post=90398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}