diff options
-rw-r--r-- | config.toml.example | 10 | ||||
-rw-r--r-- | layouts/_default/single.html | 6 | ||||
-rw-r--r-- | layouts/partials/footer.html | 4 |
3 files changed, 12 insertions, 8 deletions
diff --git a/config.toml.example b/config.toml.example index 0074d9b..183bd99 100644 --- a/config.toml.example +++ b/config.toml.example @@ -1,18 +1,16 @@ -languageCode = "en-US" -theme = "indigo" baseURL = "https://example.com/" title = "Site Title" +copyright = "Copyright © 2018, Copyright Owner Name" +languageCode = "en-US" +theme = "indigo" [params] - AuthorName = "Author Name" + Author = "Site Author Name" Description = "Description of website for head meta tag" Subtitle = "A subtitle for your site" Avatar = "path/to/avatar.jpg" PermalinkText = "🔗" - # Copyright owner for display in the footer: - CopyrightOwner = "Copyright owner name" - # Contact/social-network identifiers for social icons EmailAddress = "email.address@example.com" FacebookUser = "FacebookUserName" diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 258e068..9e022e3 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,12 +1,16 @@ {{ partial "header.html" . }} {{ $baseurl := .Site.BaseURL | sanitizeurl }} +{{ $author := .Site.Params.Author }} +{{ if .Params.Author }} + {{ $author = .Params.Author }} +{{ end }} <article class="h-entry"> <header> <h1 class="post-title p-name">{{ .Title }}</h1> <p class="post-date">Posted on <time class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}"> {{ .PublishDate.Format "2 January, 2006 at 15:04 MST" }} - </time> {{ if .Params.Author }} by <a href="{{ .Site.BaseURL }}" class="p-author h-card" rel="author">{{ . }}</a>{{ end }} + </time> {{ if $author }} by <a href="{{ .Site.BaseURL }}" class="p-author h-card" rel="author">{{ $author }}</a>{{ end }} </p> {{ if .Params.categories }} <p class="post-tag">Category: diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 64caab0..ff1233a 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -25,9 +25,11 @@ </nav> {{ end }} {{ partial "social.html" . }} + {{ with .Site.Copyright }} <p class="copyright"> - © {{ dateFormat "2006" now }} {{ .Site.Params.CopyrightOwner }} + {{ . }} </p> + {{ end }} <p class="h-card"> <img class="u-photo" src="{{ .Site.BaseURL }}{{ .Site.Params.Avatar }}" /> <a class="p-name u-url" href="{{ .Site.BaseURL }}" rel="me">{{ .Site.Params.AuthorName }}</a> |