Skip to content

Commit b940bd4

Browse files
author
Angelo Stavrow
committed
1 parent 126a1e5 commit b940bd4

File tree

3 files changed

+53
-12
lines changed

3 files changed

+53
-12
lines changed

layouts/partials/footer.html

+14-7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22
</div>
33

44
<!-- Footer content -->
5+
{{ if .Site.Params.ShowBio }}
6+
<div class="h-card">
7+
<img class="u-photo" src="{{ .Site.BaseURL }}{{ .Site.Params.Avatar }}" />
8+
<div class="card-content">
9+
<h2 class="card-name"><a class="p-name u-url" href="{{ .Site.BaseURL }}" rel="me">{{ .Site.Params.Author }}</a></h2>
10+
<p class="card-subhead">
11+
<span class="p-locality">{{ .Site.Params.IndieWeb.City }}</span>,
12+
<span class="p-country-name">{{ .Site.Params.IndieWeb.Country }}</span><br />
13+
<a class="u-email" href="mailto:{{ .Site.Params.IndieWeb.EmailAddress }}">Email me</a>
14+
</p>
15+
</div>
16+
<p class="p-note">{{ .Site.Params.Biography }}</p>
17+
</div>
18+
{{ end }}
519
<div id="footer">
620
{{ if or (.Prev) (.Next) }}
721
<nav id="article-skip">
@@ -30,13 +44,6 @@
3044
{{ . }}
3145
</p>
3246
{{ end }}
33-
<p class="h-card">
34-
<img class="u-photo" src="{{ .Site.BaseURL }}{{ .Site.Params.Avatar }}" />
35-
<a class="p-name u-url" href="{{ .Site.BaseURL }}" rel="me">{{ .Site.Params.AuthorName }}</a>
36-
<a class="u-email" href="mailto:{{ .Site.Params.IndieWeb.EmailAddress }}">{{ .Site.Params.IndieWeb.EmailAddress }}</a>,
37-
<span class="p-locality">{{ .Site.Params.IndieWeb.City }}</span>
38-
<span class="p-country-name">{{ .Site.Params.IndieWeb.Country }}</span>
39-
</p>
4047
</div>
4148

4249
<!-- Close the body/html document -->

static/css/style.css

+36-2
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ body {
9292
border-top: 2px solid #00416a;
9393
padding-top: 2px;
9494
}
95+
96+
.card-content {
97+
margin-left: 25px;
98+
}
9599
}
96100

97101
/* High-DPI mobile styles */
@@ -108,6 +112,10 @@ body {
108112
blockquote {
109113
font-size: x-large;
110114
}
115+
116+
.card-content {
117+
margin-left: 25px;
118+
}
111119
}
112120

113121
/* Low-DPI mobile styles */
@@ -124,6 +132,10 @@ body {
124132
blockquote {
125133
font-size: x-large;
126134
}
135+
136+
.card-content {
137+
margin-left: 0;
138+
}
127139
}
128140

129141
#sitelogo {
@@ -221,8 +233,30 @@ p.list-post-date {
221233
text-align: center;
222234
}
223235

224-
p.h-card {
225-
display: none;
236+
div.h-card {
237+
box-shadow: 0 5px 5px #ccc;
238+
margin: 1em auto;
239+
min-height: 150px;
240+
padding: 25px;
241+
width: 90%
242+
}
243+
244+
img.u-photo {
245+
width: 100px;
246+
}
247+
248+
.card-content {
249+
display: inline-block;
250+
}
251+
252+
.card-name {
253+
margin: 0;
254+
}
255+
256+
.card-subhead {
257+
font-family: 'Fira Sans';
258+
font-size: smaller;
259+
text-transform: uppercase;
226260
}
227261

228262
blockquote {

theme.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
name = "Indigo"
55
license = "MIT"
66
licenselink = "https://github.com/AngeloStavrow/indigo/blob/master/LICENSE.md"
7-
description = "An IndieWeb-enabled, lightweight theme for Hugo."
7+
description = "An IndieWeb-enabled, lightweight blogging theme for Hugo."
88
homepage = "https://github.com/AngeloStavrow/indigo"
99
tags = ["blog", "responsive", "minimal"]
1010
features = ["indieweb", "blog"]
11-
min_version = "0.38"
11+
min_version = "0.48"
1212

1313
[author]
1414
name = "Angelo Stavrow"
15-
homepage = "http://angelostavrow.com/"
15+
homepage = "https://angelostavrow.com/"
1616

1717
# If porting an existing theme
1818
[original]

0 commit comments

Comments
 (0)