Running in to some issues with Tumblr's Theme Parser -


I am working under a Tumbler topic and you will see that I {block: PostType} Syntax to declare the opening tag for each post, which is a & lt; Li & gt; element does not allow me to set the li square dynamically on the basis of the type of post, but instead of frequent me, I call stock as js, which is actually the page below Was slipping. This creates a new issue, though I believe there is a flaw in the tumbler's parser. Each order has been given in each order, in which one and

  • gt; is the element. I know that I will send each post to a & lt; Div & gt; but I really like the control and semantics to use a list. Tumblr master? suggestion?

    Code sample:

      {block: post} & lt; Ol class = "posts" & gt; {Block: text} & lt; Li class = "post type_text" id = "{PostID}" & gt; {Block: title} & lt; H2 & gt; & Lt; A href = "{permalink}" heading = "post" {title} '. " & Gt; {Title} & lt; / A & gt; & Lt; / H2 & gt; {/ Block: title} {body} {/ block: text} {block: photos} & lt; Li class = "post type_photo" id = "{PostID}" & gt; & Lt; Div class = "image" & gt; & Lt; A href = "{linkURL}" & gt; & Lt; Img src = "{photoURL-500}" alt = "{photo alt}" & gt; & Lt; / A & gt; & Lt; / Div & gt; {Block: caption} {caption} {/ block: caption} {/ block: photo} {block: photostat} & lt; Li class = "post type_photoSet" id = "{PostID}" & gt; {Photoset-500} {blocks: caption} {caption} {/ block: caption} {/ block: Photoset} {block: citation} & lt; Li class = "post type_quote" id = "{PostID}" & gt; & Lt; Blockquote & gt; & Lt; Div class = "quote_symbol" & gt; & Amp; Ldquo; & Lt; / Div & gt; {Citation} & lt; / Blockquote & gt; {Block: source} & lt; Div class = "quote_source" & gt; {Source} & lt; / Div & gt; {/ Block: source} {/ block: quotation} {block: link} & lt; Li class = "post type_link" id = "{PostID}" & gt; & Lt; H2 & gt; & Lt; A href = "{URL}" {target} title = "go to {name}" & gt; {Name} & lt; / A & gt; & Lt; / H2 & gt; {Block: description} {Description} {/ block: description} {/ block: link} {block: Chat} & lt; Li class = "post type_chat" id = "{PostID}" & gt; {Block: title} & lt; H2 & gt; & Lt; A href = "{Permalink}" heading = "{PostID} '' {title} '." & Gt; {Title} & lt; / A & gt; & Lt; / H2 & gt; {/ Block: title} & lt; Table class = "chat_log" & gt; {Block: lines} & lt; Tr class = "{alt} user_ {usernumber}" & gt; & Lt; Td class = "person" & gt; {Block: label} {label} {/ block: label} & lt; / Td> & Lt; Td class = "message" & gt; {Line} & lt; / Td> & Lt; / TR & gt; {/ Block: lines} & lt; / Table & gt; {/ Block: chat} {block: video} & lt; Li class = "post type_video" id = "{PostID}" & gt; {Video-500} {block: caption} {caption} {/ block: caption} {/ block: video} {block: audio} & lt; Li class = "post type_audio" id = "{PostID}" & gt; {AudioPlayerWhite} {block: caption} {caption} {/ block: caption} {block: external audio} & lt; P & gt; & Lt; A href = "{ExternalAudioURL}" title = "Download '{ExternalAudioURL}'" & gt; Download & lt; / A & gt; & Lt; / P & gt; {/ Block: ExternalAudio} {/ block: audio} & lt; Div class = "post_footer" & gt; & Lt; P class = "post_date" & gt; {Minority}} {DayOfMonth}, {year} {12hour} Posted on: {minute} {AmPm} & lt; / P & gt; & Lt; Ul & gt; & Lt; Li & gt; & Lt; One class = "comment_link" href = "{permalink} #disqus_thread" & gt; Comments & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; Script type = "text / javascript" src = "http://w.sharethis.com/button/sharethis.js#publisher=722e181d-1d8a-4363-9ebe-82d5263aea94&type=website" & gt; & Lt; / Script & gt; & Lt; / Li & gt; & Lt; / Ul & gt; {Block: permalinkPage} & lt; Div id = "disqus_thread" & gt; & Lt; / Div & gt; & Lt; Script type = "text / javascript" src = "http://disqus.com/forums/kyleetilley/embed.js" & gt; & Lt; / Script & gt; & Lt; Noscript & gt; & Lt; A href = "http://disqus.com/forums/kyleetilley/?url=ref" & gt; See discussion threads. & Lt; / A & gt; & Lt; / Noscript & gt; {/ Block: permalinkPage} & lt; / Div & gt; & Lt; / Li & gt; & Lt; / Ol & gt; {/ Block: post}  
  • Post block is executed once for each post , Thus the markup for the container should be out of this block.

    Just & lt; Ol & gt; Directly after first {block: post} and {/ block: posts}

    & Lt; / Ol & gt;

    Comments

    Popular posts from this blog

    asp.net - Javascript/DOM Why is does my form not support submit()? -

    sockets - Delphi: TTcpServer, connection reset when reading -

    javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -