Skip to content

Fix added for issue #154 #156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions _layouts/blog-post.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<!DOCTYPE html>
<html lang="en">
<head>
{% include header.html %}
<style>
/* Blog header styles */
.blog-header {
background-color: #f8f9fa;
color: #333333;
text-align: center;
padding: 2.5rem 0;
}
.blog-header h2 {
font-size: 2.5rem;
font-weight: bold;
margin: 0;
}
.blog-header p {
font-size: 1rem;
margin-top: 0.5rem;
}
/* Blog card styles */
.blog-card {
background-color: rgb(255, 255, 255);
border: 2px solid #000000;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
padding: 1.5rem;
max-width: 800px;
margin: 2rem auto;
}
.blog-card img {
border-radius: 8px;
margin: 2rem auto;
max-height: 400px;
max-width: 100%;
object-fit: contain;
}
.blog-card p {
font-size: 1.1rem;
line-height: 1.8;
color: #4a4a4a;
}
</style>
</head>
<body>
{% include nav.html %}
<div class="blog-header">
<h2>{{ page.title }}</h2>
<p>Published on {{ page.date | date: "%B %d, %Y" }} · Reading Time: {{ page.reading_time }} minutes</p>
</div>
<div class="content container mx-auto py-8 px-4">
<div class="blog-card">
<div class="blog-image">
{% if page.image %}
<img src="{{ page.image | relative_url }}" alt="Blog Image">
{% endif %}
</div>
<div class="blog-content">
<p>{{ content }}</p>
</div>
</div>
</div>
{% include footer.html %}
<script src="{{ '/assets/js/main.js' | relative_url }}"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion _posts/2024-10-14-blog_2.markdown
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: default
layout: blog-post
title: "The Future of Remote Work Technology"
date: 2024-10-14
image: ../assets/images/blog/blog2.png
Expand Down
2 changes: 1 addition & 1 deletion _posts/2024-10-15-blog_3.markdown
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: default
layout: blog-post
title: "The Importance of Cybersecurity in the Digital Age"
date: 2024-10-15
image: ../assets/images/blog/blog1.png
Expand Down
2 changes: 1 addition & 1 deletion _posts/2024-10-16-blog_1.markdown
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: default
layout: blog-post
title: "The Rise of AI in Everyday Life"
date: 2024-10-16
image: ../assets/images/blog/blog3.png
Expand Down