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">
|
||||||
<div class="post-header">
|
<div class="post-header">
|
||||||
<h1 class="article"><%= page.title || "Untitled" %></h1>
|
<h1 class="article"><%= page.title || "Untitled" %></h1>
|
||||||
<% if(page.photos) { %>
|
<% if(page.photos && page.photos.length) { %>
|
||||||
<div class="cover">
|
<div class="cover">
|
||||||
<img class="gallery" src="<%- config.root %><%- page.photos[0] %>" alt="<%- page.title || "Untitled" %>">
|
<img class="gallery" src="<%- config.root %><%- page.photos[0] %>" alt="<%- page.title || "Untitled" %>">
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<!-- This is the template for the post. It is used to display the posts in the feeds. -->
|
<!-- This is the template for the post. It is used to display the posts in the feeds. -->
|
||||||
<div class="post post-feed">
|
<div class="post post-feed">
|
||||||
<% if(post.photos) { %>
|
<% if(post.photos && post.photos.length) { %>
|
||||||
<div class="cover">
|
<div class="cover">
|
||||||
<a href='<%= url_for(post.path) %>'>
|
<a href='<%= url_for(post.path) %>'>
|
||||||
<img class="gallery" src="<%- config.root %>thumbnails/<%- post.photos[0].replace(/^images\//, '') %>" alt="<%- post.title || 'Untitled' %>">
|
<img class="gallery" src="<%- config.root %>thumbnails/<%- post.photos[0].replace(/^images\//, '') %>" alt="<%- post.title || 'Untitled' %>">
|
||||||
|
|
|
||||||
|
|
@ -283,6 +283,12 @@ img:hover {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
iframe {
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
aspect-ratio: 16 / 9;
|
||||||
|
}
|
||||||
|
|
||||||
/* Post - Top section */
|
/* Post - Top section */
|
||||||
.article {
|
.article {
|
||||||
font-size: 35px !important;
|
font-size: 35px !important;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue