mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-28 08:17:16 +00:00
52 lines
2.7 KiB
HTML
52 lines
2.7 KiB
HTML
<!-- Template Variables
|
||
|
||
title: The title of the article
|
||
preferred_link: The best link to associate with the article for linking out.
|
||
|
||
external_link_label: A localized label for the external link.
|
||
external_link_stripped: The external link minus the scheme. Useful for displaying the external link.
|
||
external_link: The external link of the article if there is one provided by the author.
|
||
|
||
feed_link_title: The name of the feed associated with this article.
|
||
feed_link: The URL of the feed associated with this article.
|
||
byline: HTML that combines all the authors and links to them if available.
|
||
avatar_src: The image source URL for the feed icon / avatar.
|
||
dateline_style: Either "articleDateline" or "articleDatelineTitle" depending on if the title was populated or not.
|
||
|
||
datetime_long: Long version of a combined publish date and time.
|
||
datetime_medium: Medium length version of a combined publish date and time.
|
||
datetime_short: Short version of a combined publish date and time.
|
||
|
||
date_long: Long version of the publish date.
|
||
date_medium: Medium version of the publish date.
|
||
date_short: Long version of the publish date.
|
||
|
||
time_long: Long version of the publish time.
|
||
time_medium: Medium version of the publish time.
|
||
time_short: Long version of the publish time.
|
||
|
||
text_size_class: The size class that the user has selected in Preferences for article text.
|
||
body: The body of the article.
|
||
primary_media: The article’s main media, from the feed (possibly via an enclosure or Media RSS): a video player (with the article image as its poster), else an audio player with the article image above it, else the article image. Adds a div wrapper (class: nnw-primary-media). Media already in the text of the article doesn’t appear. Media that appears here doesn’t then appear in the enclosures element.
|
||
enclosures: Audio and video players and images from the article’s enclosures. If a template doesn’t include this, they’re added to the end of the body.
|
||
|
||
-->
|
||
|
||
<header class="headerContainer">
|
||
<table cellpadding=0 cellspacing=0 border=0 class="headerTable">
|
||
<tr>
|
||
<td class="header leftAlign"><a class="feedlink" href="[[feed_link]]">[[feed_link_title]]</a><br />[[byline]]</td>
|
||
<td class="header rightAlign avatar"><img id="nnwImageIcon" class="nnw-nozoom" src="[[avatar_src]]" height=48 width=48 /></td>
|
||
</tr>
|
||
</table>
|
||
</header>
|
||
|
||
<article>
|
||
<div class="articleTitle"><h1><a href="[[preferred_link]]">[[title]]</a></h1></div>
|
||
<div class="[[dateline_style]]"><a href="[[preferred_link]]">[[datetime_medium]]</a></div>
|
||
<div class="externalLink">[[external_link_label]] <a href="[[external_link]]">[[external_link_stripped]]</a></div>
|
||
[[primary_media]]
|
||
<div id="bodyContainer" class="articleBody [[text_size_class]]">[[body]]</div>
|
||
[[enclosures]]
|
||
</article>
|