aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2022-06-25 20:13:51 +0100
committerYann Herklotz <git@yannherklotz.com>2022-06-25 20:13:51 +0100
commit40e21fb3cb28016dd2dcd89961d1c29323fedde9 (patch)
tree2d8056ad3e683f00f09cee662c834f5c89b9ba6b
parent69dc4fa5bb64ae42649cb142dc0be5b1a040dcc7 (diff)
downloadyannherklotz.com-40e21fb3cb28016dd2dcd89961d1c29323fedde9.tar.gz
yannherklotz.com-40e21fb3cb28016dd2dcd89961d1c29323fedde9.zip
Fix some styling
-rw-r--r--content.org6
-rw-r--r--themes/ymherklotz/layouts/partials/news.html1
-rw-r--r--themes/ymherklotz/layouts/partials/news_all.html9
-rw-r--r--themes/ymherklotz/static/css/default.css9
4 files changed, 16 insertions, 9 deletions
diff --git a/content.org b/content.org
index f99374f..a5232e5 100644
--- a/content.org
+++ b/content.org
@@ -1489,3 +1489,9 @@ continuous sinusoidal wave. This wave is passed to a speaker so that the tone is
:EXPORT_FILE_NAME: _index
:EXPORT_HUGO_SECTION: photos
:END:
+
+* News
+:PROPERTIES:
+:EXPORT_FILE_NAME: _index
+:EXPORT_HUGO_SECTION: news
+:END:
diff --git a/themes/ymherklotz/layouts/partials/news.html b/themes/ymherklotz/layouts/partials/news.html
index 3326367..727d674 100644
--- a/themes/ymherklotz/layouts/partials/news.html
+++ b/themes/ymherklotz/layouts/partials/news.html
@@ -3,5 +3,6 @@
{{ range first 10 $.Site.Data.news.news }}
<tr><td class="news-date">{{ .date }}</td><td>{{ safeHTML .event }}</td></tr>
{{ end }}
+ <tr><td><a href="{{ .Site.BaseURL }}/news">more...</a></td><td></td></tr>
</tbody>
</table>
diff --git a/themes/ymherklotz/layouts/partials/news_all.html b/themes/ymherklotz/layouts/partials/news_all.html
deleted file mode 100644
index 92d255e..0000000
--- a/themes/ymherklotz/layouts/partials/news_all.html
+++ /dev/null
@@ -1,9 +0,0 @@
-<table class="news">
- <tbody>
- {{ range $.Site.Data.news }}
- {{ range . }}
- <tr><td class="news-date">{{ .date.Format "2006-01-02" }}</td><td>{{ safeHTML .event }}</td></tr>
- {{ end }}
- {{ end }}
- </tbody>
-</table>
diff --git a/themes/ymherklotz/static/css/default.css b/themes/ymherklotz/static/css/default.css
index 9333500..601a56e 100644
--- a/themes/ymherklotz/static/css/default.css
+++ b/themes/ymherklotz/static/css/default.css
@@ -255,6 +255,7 @@ table {
width: 100%;
border-bottom: 0.15rem solid #171d30;
border-top: 0.15rem solid #171d30;
+ margin: 30px 0;
}
th, td {
@@ -262,6 +263,14 @@ th, td {
text-align: left;
}
+dd {
+ margin-bottom: 15px;
+}
+
+dl {
+ margin: 30px 0;
+}
+
#navbar a, .logo a {
font-family: 'Iosevka Web', monospace;
font-size: 1.3rem;