Skip to content
This repository has been archived by the owner on Jul 21, 2019. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:devopsdays/devopsdays-theme
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstratton committed Jan 31, 2017
2 parents 31dc299 + ac4d217 commit b595326
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
6 changes: 6 additions & 0 deletions archetypes/blog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
+++
Description = ""
title = ""
Author = ""

+++
3 changes: 2 additions & 1 deletion exampleSite/content/blog/2016-chicago.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
+++
Categories = []
Description = ""
Description = "[DevOpsDays Chicago](https://devopsdays.org/events/2016-chicago) took place on August 30th & 31st at Summit West in beautiful downtown Chicago. A sold-out, diverse crowd gathered for keynotes, presentations, lightning talks, and open spaces to learn, discuss, and promote all things DevOps."
Tags = []
date = "2016-12-12T16:31:00-06:00"
title = "Chicago 2016 in review"
Author = "Matt Stratton"

+++

Expand Down
8 changes: 7 additions & 1 deletion layouts/blog/summary.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
<header>
<h2><a href='{{ .Permalink }}'> {{ .Title }}</a> </h2>
</header>
{{ .Summary }}
{{ if isset .Params "description" }}
{{ if ne .Params.descripton "" }}
{{ .Params.description | markdownify }}
{{ end }}
{{ else }}
{{ .Summary }}
{{ end }}
<footer>
<a href='{{ .Permalink }}'><nobr>Read more →</nobr></a>
</footer>
6 changes: 6 additions & 0 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ <h2 class="footer-heading">by {{ .Params.author }} - {{ dateFormat "02 January,
<h2 class="footer-heading">{{ dateFormat "02 January, 2006" .Date }}</h2>
{{- end -}}
<p class="footer-content">
{{ if isset .Params "description" }}
{{ if ne .Params.descripton "" }}
{{ .Params.description | markdownify }}
{{ end }}
{{ else }}
{{ .Summary }}
{{ end }}
</p>
{{- end -}}

Expand Down

0 comments on commit b595326

Please sign in to comment.