diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 1dc76dc..7b64fd3 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -15,7 +15,7 @@ theme = "hyde-hyde"
title = "Title"
# description = "..."
authorimage = "/img/hugo.png"
- dateformat = "Jan 1, 2006"
+ dateformat = "Jan 2, 2006"
highlightjs = true
# highlightjsstyle = "github"
diff --git a/layouts/index.html b/layouts/index.html
index c5f07b3..76485e9 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -7,7 +7,13 @@
{{ range where .Data.Pages "Type" "posts" }}
-
{{ .Date.Format "Mon, Jan 2, 2006" }}
+
+ {{- if isset .Site.Params "dateformat" -}}
+ {{ .Date.Format .Site.Params.dateformat }}
+ {{- else -}}
+ {{ .Date.Format "Jan 02 2006" }}
+ {{- end -}}
+
{{ .Summary }}
{{ if .Truncated }}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 86d19a2..eb71f89 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -19,7 +19,7 @@
-
+
{{ if .Site.Params.highlightjs -}}
{{ "" | safeHTML }}
diff --git a/layouts/partials/list_content.html b/layouts/partials/list_content.html
index ed45123..d9f216d 100644
--- a/layouts/partials/list_content.html
+++ b/layouts/partials/list_content.html
@@ -4,7 +4,15 @@
{{ .Title }}
-
+ {{ if not .Date.IsZero }}
+
+ {{end}}
{{- end }}
diff --git a/layouts/partials/post_content.html b/layouts/partials/post_content.html
index a4a1e90..c93b6c1 100644
--- a/layouts/partials/post_content.html
+++ b/layouts/partials/post_content.html
@@ -4,7 +4,14 @@
- {{ if not .Date.IsZero }} {{ .Date.Format .Site.Params.dateformat }} {{end}}
+ {{ if not .Date.IsZero }}
+
+ {{ if isset .Site.Params "dateformat" -}}
+ {{ .Date.Format .Site.Params.dateformat }}
+ {{- else -}}
+ {{ .Date.Format "Jan 02 2006" }}
+ {{- end -}}
+ {{ end }}
{{ if isset .Params "categories" }}
{{ $total := len .Params.categories }}
@@ -22,7 +29,7 @@
{{ $total := len .Params.tags }}
{{ if gt $total 0 }}
- {{ $subtotal := sub $total 1 }}
+ {{ $subtotal := sub $total 1 }}
{{ range $i, $tag := sort $.Params.tags }}
{{ $tag | lower }}{{ if lt $i $subtotal }} {{ end }}
{{ end }}
diff --git a/static/css/custom.css b/static/css/custom.css
index 0190c85..dad4d32 100644
--- a/static/css/custom.css
+++ b/static/css/custom.css
@@ -56,11 +56,11 @@ code
font-family: monospace;
border-radius: 4px;
width: 100%;
- font-size: .85em;
+ font-size: .9em;
}
code {
- padding:.15em .3em;
+ padding:.20em .2em .10em;
background: #272932!important;
color: #ececec!important;
box-sizing: border-box;
@@ -82,3 +82,7 @@ img.center
margin-right: auto;
margin-left: auto;
}
+/* Changing from font-awesome 4 to 5, the class pull-right was removed */
+.pull-right {
+ float: right;
+}
\ No newline at end of file