Page Headings
The Walks sites have some customised titles that are rendered on the front end. This will:
- Add in the words (Divsion in Place) if the post is labeled as a diversion
- Ignore the title if this is for the List of Walks and Walks Map to prevent replication of the title on the page that is dependant upon the uri parameter
<b:if cond='data:post.title in {"List of Walks","Walks Map"}'>
<b:else/>
<h2 class='post-title entry-title' id='postHeading' itemprop='name'>
<b:if cond='data:post.link'>
<a expr:href='data:post.link'><data:post.title/> <b:if cond='data:post.labels any (label => label.name == "diversion")'>(Diversion in Place)</b:if></a>
<b:else/>
<b:if cond='data:post.url'>
<a expr:href='data:post.url'><data:post.title/> <b:if cond='data:post.labels any (label => label.name == "diversion")'>(Diversion in Place)</b:if></a>
<b:else/>
<data:post.title/>
</b:if>
</b:if>
</h2>
</b:if>
To see this in action, take a look at
0 comments:
Post a Comment