Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mattstratton/castanet.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/blog/summary.html')
-rw-r--r--layouts/blog/summary.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/layouts/blog/summary.html b/layouts/blog/summary.html
new file mode 100644
index 0000000..305d843
--- /dev/null
+++ b/layouts/blog/summary.html
@@ -0,0 +1,20 @@
+<header>
+ <h2><a href='{{ .Permalink }}'> {{ .Title }}</a> </h2>
+ {{- if isset .Params "author" -}}
+ <h2 class="footer-heading">by {{ .Params.author }} - {{ dateFormat "02 January, 2006" .Date }}</h2>
+ {{- else -}}
+ <h2 class="footer-heading">{{ dateFormat "02 January, 2006" .Date }}</h2>
+ {{- end -}}
+
+</header>
+{{ 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>
+<br>