Skip to content

Commit

Permalink
Closes #14
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelo Stavrow committed Sep 21, 2018
1 parent a9cb556 commit 126a1e5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
10 changes: 4 additions & 6 deletions config.toml.example
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
6 changes: 5 additions & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
4 changes: 3 additions & 1 deletion layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@
</nav>
{{ end }}
{{ partial "social.html" . }}
{{ with .Site.Copyright }}
<p class="copyright">
&copy; {{ 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>
Expand Down

0 comments on commit 126a1e5

Please sign in to comment.