Fixing up the theme to be ready for publishing
This commit is contained in:
parent
fa71a1c61f
commit
aa354ad732
3 changed files with 8 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
|||
<div class="post">
|
||||
<div class="post-header">
|
||||
<h1 class="article"><%= page.title || "Untitled" %></h1>
|
||||
<% if(page.photos) { %>
|
||||
<% if(page.photos && page.photos.length) { %>
|
||||
<div class="cover">
|
||||
<img class="gallery" src="<%- config.root %><%- page.photos[0] %>" alt="<%- page.title || "Untitled" %>">
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<!-- This is the template for the post. It is used to display the posts in the feeds. -->
|
||||
<div class="post post-feed">
|
||||
<% if(post.photos) { %>
|
||||
<% if(post.photos && post.photos.length) { %>
|
||||
<div class="cover">
|
||||
<a href='<%= url_for(post.path) %>'>
|
||||
<img class="gallery" src="<%- config.root %>thumbnails/<%- post.photos[0].replace(/^images\//, '') %>" alt="<%- post.title || 'Untitled' %>">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue