Skip to content

Commit

Permalink
Merge pull request #9 from jazzominy/footer
Browse files Browse the repository at this point in the history
Footer & refinements
  • Loading branch information
jazzominy authored May 31, 2024
2 parents 6c7aa18 + 4435fe0 commit fc3854e
Show file tree
Hide file tree
Showing 9 changed files with 66 additions and 18 deletions.
5 changes: 5 additions & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<footer id="footer">
<p>
&copy; 2024 Jasmine Hirpara. This blog is powered by <a href="https://jekyllrb.com/" target="_blank">Jekyll</a>. i referred <a href="https://chirpy.cotes.page" target="_blank">Chirpy</a> and <a href="https://lea.verou.me" target="_blank">Lea Verou's blog</a> for the design and layout of this blog.
</p>
</footer>
3 changes: 2 additions & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
{% include sidebar.html %}
<main>
{{ content }}

{% include footer.html %}
</main>
</body>

</html>
18 changes: 18 additions & 0 deletions _sass/archive.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
section.posts {
padding: 0 2.5rem;

ul {
padding-left: 0;

li {
margin-bottom: 1rem;
display: flex;
gap: 2rem;
align-items: center;

.post-date {
font-size: 90%;
}
}
}
}
2 changes: 1 addition & 1 deletion _sass/home.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
section.home {
padding: 1rem 2rem 2rem 1rem;
padding-bottom: 2rem;

ul.post-list {
padding: 0;
Expand Down
25 changes: 19 additions & 6 deletions _sass/main.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
:root {
--font-family: 'Montserrat', sans-serif;
--bg: #263238;
--text: #b0bec5bd;
--link: #f5f5dca8;
--text: #b0bec5;
--link: #f5f5dc;
--link-hover-bg: #f5f5dc4d;
--link-hover-text: #f0ffff;
--link-active-bg: #f5f5dcd6;
Expand All @@ -14,7 +14,7 @@
--code-bg: #13130e;
--code-color: #ffffffb8;
--post-bg: #13232c;
--post-title: #f3f3f3ad;
--post-title: #f3f3f3d9;
}

* {
Expand All @@ -28,8 +28,7 @@ body {
letter-spacing: 0.0313rem;
}

h1,
h3 {
h1, h2, h3, h4, h5, h6 {
font-weight: 600;
}

Expand All @@ -51,7 +50,7 @@ body {
gap: var(--grid-gap);
grid:
"aside header" var(--header-height)
"aside main" / 16.5rem 1fr;
"aside main" / 16.5rem 1fr;
}

img {
Expand Down Expand Up @@ -161,6 +160,20 @@ main {
grid-area: main;
height: calc(100vh - var(--header-height) - var(--grid-gap));
overflow: auto;
display: flex;
flex-direction: column;

& > :first-child {
padding: 0 2rem;
flex: 1;
}
}

#footer {
padding: 0 1rem;
font-size: 80%;
font-weight: 500;
font-style: italic;
}

@keyframes wave {
Expand Down
2 changes: 1 addition & 1 deletion _sass/tags.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
article.tags {
padding: 0 2.5rem 2.5rem 2.5rem;
padding: 0 2.5rem;

.tag {
@include tag;
Expand Down
24 changes: 17 additions & 7 deletions archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,20 @@
permalink: /archive/
---

<h1>Posts</h1>

<ul>
{% for post in site.posts %}
<li><a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
<section class="posts">
<h1>Posts</h1>

<ul>
{% for post in site.posts %}
<li>
<a href="{{ post.url }}">{{ post.title }}</a>
<div class="post-date">
<i class="fa-solid fa-calendar-days"></i>
<time datetime="{{ post.date | date_to_string }}">
{{ post.date | date_to_string }}
</time>
</div>
</li>
{% endfor %}
</ul>
</section>
1 change: 1 addition & 0 deletions assets/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@import "mixins";
@import "main";
@import "home";
@import "archive";
@import "post";
@import "tags";
@import "code";
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<h2>Recent posts</h2>

<ul class="post-list">
{% for post in site.posts %}
{% for post in site.posts limit: 3 %}
<li data-date="{{ post.date | date_to_string }}">
<h3>{{ post.title }}</h3>
<p>{{ post.excerpt }}</p>
Expand All @@ -26,4 +26,4 @@ <h3>{{ post.title }}</h3>
</li>
{% endfor %}
</ul>
</section>
</section>

0 comments on commit fc3854e

Please sign in to comment.