Skip to content

Commit c4fe014

Browse files
committed
Improve section and post styling
1 parent 8e3ee74 commit c4fe014

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

static/css/main.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,17 @@ h1 code, h2 code, h3 code, h4 code, h5 code, h6 code {
2525
font-size: 95%;
2626
background-color: inherit;
2727
}
28+
29+
.post-summary p:last-of-type{
30+
display: inline;
31+
}
32+
33+
.read-more {
34+
margin-left: 5px;
35+
}
36+
37+
.showcase-post-intro {
38+
color: gray;
39+
font-style: italic;
40+
margin-left: 1rem;
41+
}

templates/section.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
<h1>{{ section.title }}</h1>
88

99
{% block introduction %}
10-
<p>{{ section.description }}</p>
10+
<p>{{ section.content | safe }}</p>
1111
{% endblock introduction %}
1212

1313
<div class="posts">
1414
{% for page in section.pages %}
15-
<h2 class="post-title"><a href="{{ page.path | safe }}">{{ page.title }}</a></h2>
15+
<h2 class="post-title"><a href="{{ page.path | safe }}">{{ page.title | safe}}</a></h2>
1616
<div class="post-summary">
1717
{{ page.summary | safe }}
1818
<a class="read-more" href="{{ page.path | safe }}"><em>read&nbsp;more&nbsp;»</em></a>

0 commit comments

Comments
 (0)