-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpage.html
41 lines (26 loc) · 1.22 KB
/
page.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!--
* Content is enclosed in <div id="app-content-wrapper"><div id="app-screen"></div></div>
* Subhead: is added by add-custom-data.php in the theme's php folder / It expects that the post has a subhead custom field
* Thumbnail caption: is added by add-custom-data.php in the theme's php folder
* Custom post date: getCustomDate() added in functions.js as a template's parameter
* Handler for image loading error: displayDefaultImage() added in functions.js as a template's parameter
-->
<div id="content" class="content single-template">
<div class="post-title">
<% if ( post.subhead ) { %>
<div class="subhead"><%= post.subhead %></div>
<% } %>
<h1>
<%= post.title %>
</h1>
</div>
<% if( post.thumbnail && post.thumbnail.src && post.thumbnail.src.length ){ %>
<img class="post-thumbnail" src="<%= post.thumbnail.src %>" onerror="displayDefaultImage(this);" />
<% if (post.thumbnail.caption) { %>
<div class="post-thumbnail-caption"><%= post.thumbnail.caption %></div>
<% } %>
<% } %>
<div id="single-content" class="single-content">
<%= post.content %>
</div>
</div>