Fixing up the theme to be ready for publishing

This commit is contained in:
Bashy 2025-09-24 21:04:43 +03:00
parent fa71a1c61f
commit aa354ad732
3 changed files with 8 additions and 2 deletions

View file

@ -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>

View file

@ -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' %>">

View file

@ -283,6 +283,12 @@ img:hover {
font-style: italic;
}
iframe {
width: 100%;
height: auto;
aspect-ratio: 16 / 9;
}
/* Post - Top section */
.article {
font-size: 35px !important;