diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 7183004..9db882f 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -35,23 +35,28 @@
- {{ if .Prev }} - - {{ end }} - {{ if .Next }} - + {{ $currentPage := . }} + {{ range .Site.RegularPages.ByDate }} + {{ if eq .RelPermalink $currentPage.RelPermalink }} + {{ if .Next }} + + {{ end }} + {{ if .Prev }} + + {{ end }} + {{ end }} {{ end }}

diff --git a/layouts/partials/cards/post.html b/layouts/partials/cards/post.html index aa3fc0a..33af61a 100644 --- a/layouts/partials/cards/post.html +++ b/layouts/partials/cards/post.html @@ -1,19 +1,21 @@
-
-
- -
-
-
{{ .Title }}
-

{{ .Summary }}

-
- +
diff --git a/layouts/partials/cards/recent-post.html b/layouts/partials/cards/recent-post.html index ed4a578..5408195 100644 --- a/layouts/partials/cards/recent-post.html +++ b/layouts/partials/cards/recent-post.html @@ -1,17 +1,19 @@
-
-
- Card image cap + + -
-
{{ .Title }}
-

{{ .Summary }}

-
- -
+
diff --git a/layouts/partials/posts.html b/layouts/partials/posts.html index f678bd5..e284d73 100644 --- a/layouts/partials/posts.html +++ b/layouts/partials/posts.html @@ -1,4 +1,4 @@ -{{ range .Pages }} +{{ range .Site.RegularPages.ByDate.Reverse }} {{ if .IsNode }} {{ partial "posts.html" . }} {{ else }} diff --git a/layouts/partials/recent-posts.html b/layouts/partials/recent-posts.html index 6d98217..8cb8f2c 100644 --- a/layouts/partials/recent-posts.html +++ b/layouts/partials/recent-posts.html @@ -2,7 +2,7 @@

Recent Posts

- {{ range first 3 (where .Site.RegularPages "Type" "!=" "section" )}} + {{ range first 3 (where .Site.RegularPages.ByDate.Reverse "Type" "!=" "section" )}} {{ partial "cards/recent-post.html" . }} {{ end }}
diff --git a/static/assets/css/list.css b/static/assets/css/list.css index 0ee8991..5d38cf5 100644 --- a/static/assets/css/list.css +++ b/static/assets/css/list.css @@ -205,6 +205,10 @@ a.focused { -webkit-box-orient: vertical; } +.post-cards .post-card-link{ + text-decoration: none; +} + .navbar-toggler { display: none; } diff --git a/static/assets/css/recent-posts.css b/static/assets/css/recent-posts.css index 7e54f9c..192c0f0 100644 --- a/static/assets/css/recent-posts.css +++ b/static/assets/css/recent-posts.css @@ -12,6 +12,10 @@ background: #fff; } +.recent-posts .post-card-link{ + text-decoration: none; +} + .post-summery { overflow: hidden; text-overflow: ellipsis;