Skip to content

Commit

Permalink
Update posts.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Ezees authored Nov 8, 2024
1 parent 4b639b8 commit a6ce88a
Showing 1 changed file with 105 additions and 4 deletions.
109 changes: 105 additions & 4 deletions _layout/posts.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,94 @@
---
layout: default
---
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ page.title }}</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f8f9fa;
}

.text-center {
text-align: center;
}

.mx-auto {
margin-left: auto;
margin-right: auto;
}

.mb-5 {
margin-bottom: 3rem;
}

.featured-image {
max-width: 100%;
height: auto;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mainheading {
text-align: center;
margin: 2rem 0;
}

.posttitle {
font-size: 2.5rem;
color: #333;
}

.article-post {
font-size: 1.1rem;
line-height: 1.6;
margin-bottom: 2rem;
padding: 0 1rem;
}

#comments {
margin-top: 2rem;
border-top: 1px solid #ddd;
padding-top: 1rem;
}
</style>
</head>
<body>
<!-- Post Featured Image -->
{% if page.image %}
<div class="text-center mx-auto mb-5">
<img class="featured-image text-center mx-auto rounded" src="{{ site.baseurl }}/{{ page.image }}" alt="{{ page.title }}">
</div>
{% endif %}
<!-- End Featured Image -->

<div class="col-lg-8 mx-auto">
<div class="mainheading">
<h1 class="posttitle">{{ page.title }}</h1>
</div>

<div class="article-post serif-font">
{{ content }}
</div>

{% if page.comments == true %}
<div id="comments">
{% include disqus.html %}
</div>
{% endif %}
</div>









<!-- Post Featured Image -->
{% if page.image %}
<div class="text-center mx-auto mb-5">
Expand All @@ -25,4 +113,17 @@ <h1 class="posttitle">{{ page.title }}</h1>
</div>
{% endif %}

</div>
</div>




<script>
document.addEventListener('DOMContentLoaded', function() {
const commentsSection = document.getElementById('comments');
// Additional JS functionality can be added here
console.log('Comments section loaded:', commentsSection);
});
</script>
</body>
</html>

0 comments on commit a6ce88a

Please sign in to comment.