summaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2025-04-24 21:37:32 +0800
committerSadeep Madurange <sadeep@asciimx.com>2025-04-24 23:20:46 +0800
commit1bb5594ba1fcbb32c98351b6986216c89fa9cfe7 (patch)
treea1632fe7b6da9d1659fbb17de07d854ea4549340 /layouts
parentd11e095ab8c61be8953e05e24b7b638e6927e2d5 (diff)
downloadgohugo-theme-ed-1bb5594ba1fcbb32c98351b6986216c89fa9cfe7.tar.gz
Latest posts to table.
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/mini-toc.html6
-rw-r--r--layouts/partials/post-toc-summary.html17
2 files changed, 13 insertions, 10 deletions
diff --git a/layouts/partials/mini-toc.html b/layouts/partials/mini-toc.html
index 0d52866..20a8fb2 100644
--- a/layouts/partials/mini-toc.html
+++ b/layouts/partials/mini-toc.html
@@ -13,12 +13,12 @@
<div class="toc" role="navigation">
<h2>{{ i18n "latest_publications" }}</h2>
- <ul class="texts">
+ <table class="texts posts-table">
{{/* Range through the first $maxPosts items of the $section */}}
{{ range (first $maxPosts $section) }}
- <li class="text-title">
+ <tr class="text-title posts-tr">
{{ partial "post-toc-summary" . }}
- </li>
+ </tr>
{{ end }}
</ul>
</div>
diff --git a/layouts/partials/post-toc-summary.html b/layouts/partials/post-toc-summary.html
index 371a6f1..a96cb29 100644
--- a/layouts/partials/post-toc-summary.html
+++ b/layouts/partials/post-toc-summary.html
@@ -1,7 +1,10 @@
-<span class="post-meta">
- <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
- {{- .Date | time.Format (site.Params.dateFormatToc | default "2006.01.02") }}
- </time>
-</span>
-
-<a href="{{ .Permalink }}">{{ .Title }} </a>
+<td class="posts-td-time">
+ <span class="post-meta">
+ <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
+ {{- .Date | time.Format (site.Params.dateFormatToc | default "2006.01.02") }}
+ </time>
+ </span>
+</td>
+<td class="posts-td-link">
+ <a href="{{ .Permalink }}">{{ .Title }} </a>
+</td>