diff --git a/layouts/partials/summary.html b/layouts/partials/summary.html
index eb67861..cb3e8c4 100644
--- a/layouts/partials/summary.html
+++ b/layouts/partials/summary.html
@@ -1,2 +1,16 @@
-{{ .Summary | plainify | chomp }}{{ if .Truncated }}…{{ end }}
+{{ if eq .Section "posts" }}
+ {{ .Summary | plainify | chomp }}{{ if .Truncated }}…{{ end }}
+{{ else if .Params.subtitle }}
+ {{ .Params.subtitle | markdownify }}
+{{ else if .Params.repo }}
+ {{ if eq .Params.force_summary false }}
+ {{ (getJSON "https://api.github.com/repos/" .Params.repo).description }}
+ {{ end }}
+{{ else if .Params.gist }}
+ {{ if eq .Params.force_summary false }}
+ {{ (getJSON "https://api.github.com/gists/" .Params.gist).description }}
+ {{ end }}
+{{ else }}
+ {{ .Summary | plainify | chomp }}{{ if .Truncated }}…{{ end }}
+{{ end }}