Compare commits

...

5 Commits

Author SHA1 Message Date
Kevin C. Coram ba844bf59a
Style the site footer
* Split the copyright and the "built with" text into separate configs
* Style footer with smaller text
* Add a thin border separating footer from rest of page
2019-12-09 22:58:54 -05:00
Kevin C. Coram c5891929fb
Add a decorative border around site header 2019-12-09 22:35:39 -05:00
Kevin C. Coram 96134a6bc3
Style the site header title and subtitle 2019-12-09 22:27:34 -05:00
Kevin C. Coram 831b32fcdb
Style the list and article paginators
* Remove the list item bullets
* Style the list items with "space between" so they will spread evenly
2019-12-09 21:43:18 -05:00
Kevin C. Coram 3a187409f4
Style the site-menu
* Remove the list item bullets
* Put some padding between the list items
* Style the navigation area to be a flex box, with item wrapping
* Add a decorative border to the navigation area
2019-12-09 21:42:02 -05:00
8 changed files with 69 additions and 6 deletions

View File

@ -1,7 +1,7 @@
baseURL = "http://example.org/"
languageCode = "en-us"
title = "Semantic IndieWeb Theme"
copyright = "Copyright © 2019, Copyright Owner Name | Built with [Hugo](https://gohugo.io/)"
copyright = "Copyright © 2019, Copyright Owner Name"
theme = "semantic-indieweb"
paginate = 5
@ -10,6 +10,7 @@ paginate = 5
[params]
subtitle = "A theme with no CSS and only basic layouts"
builtWith = "Built with [Hugo](https://gohugo.io/)"
homepageSectionTitle = "What's New"
mainSections = [ "posts" ]

View File

@ -23,7 +23,7 @@
<!-- Code that all your templates share, like a header -->
{{ partial "header.html" . }}
{{- end }}
<nav>
<nav class="site-menu">
{{ block "site-menu" . -}}
{{ partial "site-menu.html" . }}
{{- end }}

View File

@ -1,3 +1,6 @@
{{ with .Site.Copyright }}
<p class="copyright">{{ . | markdownify }}</p>
{{ end }}
{{ with .Site.Params.BuiltWith }}
<p class="built-with">{{ . | markdownify }}</p>
{{ end }}

View File

@ -1,6 +1,6 @@
<hgroup>
<hgroup class="site-header">
<h1>{{.Site.Title}}</h1>
{{- if .Site.Params.Subtitle }}
<h2 class="subtitle">{{.Site.Params.Subtitle}}</h2>
<h2>{{.Site.Params.Subtitle}}</h2>
{{- end }}
</hgroup>

View File

@ -1,4 +1,4 @@
<nav>
<nav class="paginator">
<ul>
<li>
{{if .HasPrev}}

View File

@ -1,5 +1,5 @@
{{ if not .Params.Menu }}
<nav>
<nav class="paginator">
<ul>
<li>
{{ if .NextInSection }}

View File

@ -7,3 +7,24 @@
div.author-card-content {
flex-grow: 1;
}
nav.site-menu ul {
display:flex;
flex-wrap: wrap;
justify-content: left;
list-style-type: none;
margin: 0;
padding: 0;
}
nav.site-menu ul li {
padding: 0.5em 0.5em 0.5em 0.5em;
}
nav.paginator ul {
display: flex;
justify-content: space-between;
list-style-type: none;
padding-inline-start: 1em;
padding-inline-end: 1em;
}

View File

@ -1,3 +1,22 @@
/* Styles for site header */
hgroup.site-header {
border-top: double;
border-bottom: thin solid;
margin-bottom: 0.5em;
}
hgroup.site-header h1 {
margin: 0;
}
hgroup.site-header h2 {
font-weight: normal;
font-size: 1em;
font-style: italic;
padding-left: 0.5em;
margin: 0;
}
img.u-photo {
max-width: 60px;
padding: 0.5em;
@ -5,4 +24,23 @@ img.u-photo {
.glyph {
font-size: 1.25em;
}
nav.site-menu {
border-top: thin solid;
border-bottom: double;
}
/* Styles for site footer */
p.copyright {
border-top: thin solid;
font-size: 0.8em;
text-align: center;
margin: 0;
}
p.built-with {
text-align: center;
font-size: 0.8em;
margin: 0;
}