diff options
author | Benny Mei <meibenny@gmail.com> | 2022-07-26 01:43:31 +0300 |
---|---|---|
committer | Benny Mei <meibenny@gmail.com> | 2022-07-26 01:43:31 +0300 |
commit | 90ac11a69e043f7f78555338e26fd41fb79e5816 (patch) | |
tree | f868d445f02a5a5e57fc2c7a2cca629d72d73d3e | |
parent | 49f22c0acc1841c976c9548a8de3e6e9cdd39e05 (diff) |
add whitespace so blog posts look more comfortablev0.1.2
-rw-r--r-- | layouts/index.html | 28 | ||||
-rw-r--r-- | static/css/stylesheet.css | 6 |
2 files changed, 19 insertions, 15 deletions
diff --git a/layouts/index.html b/layouts/index.html index 8214e8c..406eac4 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,20 +1,18 @@ {{ partial "header.html" . }} -<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 id="content" class="page-content"> + <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> </section> {{ partial "footer.html" . }} diff --git a/static/css/stylesheet.css b/static/css/stylesheet.css index 3a73493..1e6088b 100644 --- a/static/css/stylesheet.css +++ b/static/css/stylesheet.css @@ -35,6 +35,7 @@ a { .blog-post { padding-left: 1em; + padding-right: 1em; } .post-container { @@ -43,6 +44,7 @@ a { .post-tags { padding-left: 1em; + padding-right: 1em; } .post-tag-list { @@ -59,3 +61,7 @@ a { .post-date-time { white-space: nowrap; } + +.page-content { + margin: 1em; +} |