Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/meibenny/elephants.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Mei <meibenny@gmail.com>2022-07-26 01:35:31 +0300
committerBenny Mei <meibenny@gmail.com>2022-07-26 01:35:31 +0300
commit49f22c0acc1841c976c9548a8de3e6e9cdd39e05 (patch)
treefa7b17522ede2ec6490a8b994870b36cfaae77d7
parent4eac8f4d637f09d41ab523208568917e5444202c (diff)
use tables to show post dates and post
-rw-r--r--layouts/_default/list.html24
-rw-r--r--layouts/_default/taxonomy.html22
-rw-r--r--layouts/index.html32
-rw-r--r--static/css/stylesheet.css8
4 files changed, 45 insertions, 41 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index c2004b4..8214e8c 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -2,17 +2,19 @@
<section id="content">
<ul>
- <div id="posts">
- {{ range .Pages.ByPublishDate.Reverse }}
- <div class="post-container">
- <div class="date-time-title date-time-font">
- <time>{{ .Date.Format (.Site.Params.datefrom | default "Jan 02 2006") }}</time>
- </div>
- <div class="date-time-title post">
- <a href="{{ .Permalink }}">{{ .Title }}</a>
- </div>
- </div>
+ <table>
+ {{ range .Site.RegularPages.ByPublishDate.Reverse }}
+ <tr>
+ <td class="post-date-time date-time-font">
+ <time>{{ .Date.Format (.Site.Params.dateform | default "Jan 02 2006") }}</time>
+ </td>
+ <td class="post">
+ <a href="{{ .Permalink }}">{{ .Title }}</a>
+ </td>
+ </tr>
{{ end }}
- </div>
+ </table>
</ul>
</section>
+
+{{ partial "footer.html" . }}
diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html
index c2004b4..e61517e 100644
--- a/layouts/_default/taxonomy.html
+++ b/layouts/_default/taxonomy.html
@@ -2,17 +2,19 @@
<section id="content">
<ul>
- <div id="posts">
+ <table>
{{ range .Pages.ByPublishDate.Reverse }}
- <div class="post-container">
- <div class="date-time-title date-time-font">
- <time>{{ .Date.Format (.Site.Params.datefrom | default "Jan 02 2006") }}</time>
- </div>
- <div class="date-time-title post">
- <a href="{{ .Permalink }}">{{ .Title }}</a>
- </div>
- </div>
+ <tr>
+ <td class="post-date-time date-time-font">
+ <time>{{ .Date.Format (.Site.Params.datefrom | default "Jan 02 2006") }}</time>
+ </td>
+ <td class="post">
+ <a href="{{ .Permalink }}">{{ .Title }}</a>
+ </td>
+ </tr>
{{ end }}
- </div>
+ </table>
</ul>
</section>
+
+{{ partial "footer.html" . }}
diff --git a/layouts/index.html b/layouts/index.html
index 235530f..8214e8c 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,20 +1,20 @@
{{ partial "header.html" . }}
-<section id=content>
- <ul class=posts_listing>
- <div id="posts">
- {{ range .Site.RegularPages.ByPublishDate.Reverse }}
- <div class="post-conatiner">
- <div class="date-time-title date-time-font">
- <time>{{ .Date.Format (.Site.Params.dateform | default "Jan 02 2006") }}</time>
- </div>
- <div class="date-time-title post">
- <a href="{{ .Permalink }}">{{ .Title }}</a>
- </div>
- </div>
- {{ end }}
- </div>
- </ul>
- </section>
+<section id="content">
+ <ul>
+ <table>
+ {{ range .Site.RegularPages.ByPublishDate.Reverse }}
+ <tr>
+ <td class="post-date-time date-time-font">
+ <time>{{ .Date.Format (.Site.Params.dateform | default "Jan 02 2006") }}</time>
+ </td>
+ <td class="post">
+ <a href="{{ .Permalink }}">{{ .Title }}</a>
+ </td>
+ </tr>
+ {{ end }}
+ </table>
+ </ul>
+</section>
{{ partial "footer.html" . }}
diff --git a/static/css/stylesheet.css b/static/css/stylesheet.css
index ad5966e..3a73493 100644
--- a/static/css/stylesheet.css
+++ b/static/css/stylesheet.css
@@ -21,10 +21,6 @@ a {
text-decoration: underline;
}
-.date-time-title {
- display: inline-block;
-}
-
.date-time-font {
font-family: 'Ubuntu Mono';
}
@@ -59,3 +55,7 @@ a {
white-space: nowrap;
display: inline-block;
}
+
+.post-date-time {
+ white-space: nowrap;
+}