diff --git a/themes/exectos/layouts/index.html b/themes/exectos/layouts/index.html index bf71758..4b62e99 100644 --- a/themes/exectos/layouts/index.html +++ b/themes/exectos/layouts/index.html @@ -3,11 +3,11 @@ {{- partial "head.html" . -}} {{- partial "header.html" . -}} -
-
- {{ .Content }} -
-
- {{- partial "footer.html" . -}} +
+
+ {{ .Content }} +
+
+ {{- partial "footer.html" . -}} diff --git a/themes/exectos/layouts/news/list.html b/themes/exectos/layouts/news/list.html new file mode 100644 index 0000000..3481e25 --- /dev/null +++ b/themes/exectos/layouts/news/list.html @@ -0,0 +1,2 @@ +{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" (slice "news")) }} +{{ partial "list.html" (dict "context" . "paginator" $paginator) }} diff --git a/themes/exectos/layouts/partials/list.html b/themes/exectos/layouts/partials/list.html new file mode 100644 index 0000000..abfa17f --- /dev/null +++ b/themes/exectos/layouts/partials/list.html @@ -0,0 +1,39 @@ +{{ with .context }} + + + {{- partial "head.html" . -}} + + {{- partial "header.html" . -}} +
+
+

{{ .Title }}

+ {{ range $.paginator.Pages }} +
+

{{ .Title }}

+
+
{{ if isset .Params "author" }}by {{ .Params.author }}{{ end }}
+
{{ .Date.Format .Site.Params.dateFormat }}
+
+
{{ .Summary }}
+
+ {{ end }} + +
+
+ {{- partial "footer.html" . -}} + + +{{ end }} diff --git a/themes/exectos/static/css/style.css b/themes/exectos/static/css/style.css index b98a067..3f7e6b0 100644 --- a/themes/exectos/static/css/style.css +++ b/themes/exectos/static/css/style.css @@ -224,6 +224,48 @@ pre code { text-align : center; } +.news_author { + color : #999999; + float : left; +} + +.news_date { + color : #999999; + float : right; +} + +.news_info { + margin-top : -1em; + margin-bottom : 3em; +} + +.news_intro { + margin-bottom : 50px; + margin-left : -1em; + text-align : justify; +} + +.pagination { + margin : 0px; + padding : 0 0 0 0; + text-align : center; +} + +.pagination a { + text-decoration : none; +} + +.pagination li { + display : inline; + margin-left : 100px; +} + +.pagination ul { + margin : 0px; + padding : 0px; + text-align : center; +} + .wrapper_content { margin-bottom : 2.5em; padding : 6em 0 0 0;