Skip to content

Commit fe32647

Browse files
committed
attempting styling fix
1 parent 939cb20 commit fe32647

File tree

5 files changed

+35
-13
lines changed

5 files changed

+35
-13
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
.DS_Store
1+
public
2+
.DS_Store

content/blogs/testblog copy.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
+++
2+
title = "Test Blog"
3+
date = 2024-11-08
4+
description = "A simple test blog."
5+
[taxonomies]
6+
tags = ["test"]
7+
+++
8+
Hello! This is the blog body.

content/blogs/testblog.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
+++
2+
title = "Test Blog"
3+
date = 2024-11-08
4+
description = "A simple test blog."
5+
[taxonomies]
6+
tags = ["test"]
7+
+++
8+
Hello! This is the blog body.

static/css/styles.css

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@import url("https://fonts.googleapis.com/css2?family=Borel&display=swap");
22
@import url("https://fonts.googleapis.com/css2?family=Playwrite+DE+Grund:[email protected]&display=swap");
33

4+
/* Root modifiers (for Pico CSS especially) */
45
:root {
56
--pico-color: #c0bfc0;
67
--pico-primary: rgb(203, 198, 182);
@@ -12,16 +13,19 @@
1213
--pico-text-underline-offset: 0.5rem;
1314
--pico-typography-spacing-vertical: 1.5rem;
1415
--pico-form-element-spacing-vertical: 1rem;
16+
--pico-spacing: 1.5rem;
1517
--pico-form-element-spacing-horizontal: 1.25rem;
1618
--pico-box-shadow: 0 20px 2rem rgba(0, 0, 0, 0.331);
1719
}
1820

21+
/* Element styling */
1922
html {
2023
scroll-behavior: smooth;
2124
}
2225

2326
* {
2427
box-sizing: border-box;
28+
transition: 0.1s ease-in-out;
2529
}
2630

2731
body {
@@ -64,9 +68,9 @@ article {
6468
box-shadow: none;
6569
margin-top: 50px;
6670
padding: 100px 100px;
67-
transition: 0.1s ease-in-out;
6871
}
6972

73+
/* Utility classes */
7074
.visible-article {
7175
--pico-card-background-color: rgb(27, 21, 19);
7276
}
@@ -98,6 +102,7 @@ article {
98102
width: 100%;
99103
}
100104

105+
/* Media queries */
101106
@media (min-width: 1025px) {
102107
.container {
103108
width: 1024px;

templates/blogs.html

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
{% extends "base.html" %}
1+
{% extends "base.html" %} {% block content %}
22

3-
{% block content %}
4-
{% if paginator.pages|length == 0 %}
5-
<center>no blogs!</center>
6-
{%else%}
7-
{% for page in paginator.pages %}
8-
<a href="{{ page.permalink | safe }}">{{ page.title }}</a> on {{ page.date | date(format="%b %d, %Y") }} <br/>
9-
<!-- {# COMMENT: find all attributes from https://www.getzola.org/documentation/content/page/ #} -->
10-
{% endfor %}
11-
{% endif %}
12-
{% endblock content %}
3+
<center>
4+
<h1>Latest Blogs</h1>
5+
{% if paginator.pages|length == 0 %} no blogs! {%else%} {% for page in
6+
paginator.pages %}
7+
8+
<a href="{{ page.permalink | safe }}">{{ page.title }}</a> on {{ page.date |
9+
date(format="%b %d, %Y") }} <br />
10+
<!-- {# COMMENT: find all attributes from https://www.getzola.org/documentation/content/page/ #} -->
11+
{% endfor %} {% endif %} {% endblock content %}
12+
</center>

0 commit comments

Comments
 (0)