Skip to content

Commit 38145a8

Browse files
authored
Merge pull request #352 from jtemporal:implement-subtitle-logic
Add subtitles to titles and adjust styles
2 parents 653d179 + b560e30 commit 38145a8

6 files changed

Lines changed: 16 additions & 5 deletions

File tree

_includes/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<link rel="icon" type="image/x-icon" href="{{site.favicon}}">
1515
<link rel="apple-touch-icon" href="{{site.applefavicon}}">
1616

17-
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ site.url }}{{site.baseurl}}/feed.xml">
17+
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}{% if site.subtitle %}: {{ site.subtitle }}{% endif %}" href="{{ site.url }}{{site.baseurl}}/feed.xml">
1818
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
1919
<script data-ad-client="ca-pub-5603674881688232" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
2020

_includes/post-card.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="panel-body">
2-
<h3 class="panel-title pull-left">{{ post.title }}</h3><br><span class="post-meta pull-left"><small>{{ post.date | date: "%b %-d, %Y" }}</small></span>
2+
<h3 class="panel-title pull-left">{{ post.title }}{% if post.subtitle %}: {{ post.subtitle }}{% endif %}</h3><br><span class="post-meta pull-left"><small>{{ post.date | date: "%b %-d, %Y" }}</small></span>
33
</div>
44

55
<div class="panel-body">

_layouts/page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<article class="post">
77

88
<header class="post-header">
9-
<h1 class="post-title">{{ page.title }}</h1>
9+
<h1 class="post-title">{{ page.title }}{% if page.subtitle %}: {{ page.subtitle }}{% endif %}</h1>
1010
</header>
1111

1212
<div class="post-content">

_layouts/post.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
<header class="post-header">
1010
<h1 class="post-title" itemprop="name headline">{{ page.title }}</h1>
11+
{% if page.subtitle %}
12+
<h2 class="post-subtitle">{{ page.subtitle }}</h2>
13+
{% endif %}
1114
<p class="post-meta">
1215
{% if page.last_modified_at %}<time datetime="{{ page.last_modified_at | date_to_xmlschema }}" itemprop="datePublished">Updated on: {{ page.last_modified_at | date: "%b %-d, %Y" }}</time>{% else %}<time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%b %-d, %Y" }}</time>{% endif %}
1316
{% if page.author %} • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>{% endif %}

_sass/_bootstrap-readable.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1273,7 +1273,7 @@ h1,
12731273
}
12741274
h2,
12751275
.h2 {
1276-
font-size: 34px;
1276+
font-size: 30px;
12771277
}
12781278
h3,
12791279
.h3 {

_sass/_layout.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ img {
5151
}
5252
.post-meta {
5353
color: $grey-color;
54+
font-size: 12px;
5455
}
5556

5657
.panel {
@@ -147,7 +148,14 @@ footer {
147148
}
148149

149150
.post-title {
150-
line-height: 2;
151+
line-height: 1;
152+
}
153+
154+
.post-subtitle {
155+
line-height: 1;
156+
color: $grey-color;
157+
margin: 0 0 15px 0;
158+
font-size: 25px;
151159
}
152160

153161
.index-anchor {

0 commit comments

Comments
 (0)