edryd.org

some of my neat stuff
git clone git://edryd.org/edryd.org
Log | Files | Refs | LICENSE

commit 82de9bb10c534660047ca323c13e2c48325464a4
parent 961ff6187c7f455223d7014f82203f5f4be0d662
Author: Ed van Bruggen <ed@edryd.org>
Date:   Mon, 17 Aug 2026 11:35:03 -0400

Center headings on projects page

Diffstat:
Mlayouts/projects/projects.html | 14++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/layouts/projects/projects.html b/layouts/projects/projects.html @@ -1,10 +1,16 @@ {{ define "main" }} + <style> + .heading:after { + margin-right: auto; + margin-left: auto; + } + </style> <section> <div class="container"> <div class="row"> <div class="col-lg-12"> {{- with .Title }} - <h1 class="heading">{{ . | upper }}</h1> + <h1 class="heading text-md-center">{{ . | upper }}</h1> {{- end }} <div class="row"> <!-- TODO remove code duplication from _default/list --> @@ -17,7 +23,7 @@ <div class="col-lg-8"><a href="{{ $link }}" class="italic-off text-primary">{{ .desc }}</a></div> </div> {{ end }} - <h2 class="heading pt-4">RESEARCH</h2> + <h2 class="heading pt-4 text-md-center">RESEARCH</h2> {{ range $.Site.Data.projects.research }} <div class="row text-inc"> {{ $link := or .link (path.Join "projects/" .name | relURL) }} @@ -25,7 +31,7 @@ <div class="col-lg-8"><a href="{{ $link }}" class="italic-off text-primary">{{ .desc }}</a></div> </div> {{ end }} - <h2 class="heading pt-4">WEBSITES</h2> + <h2 class="heading pt-4 text-md-center">WEBSITES</h2> <!-- TODO cards with photos --> {{ range $.Site.Data.projects.websites }} <div class="row text-inc"> @@ -33,7 +39,7 @@ <div class="col-lg-8"><a href="{{ .link }}" class="italic-off text-primary">{{ .desc }}</a></div> </div> {{ end }} - <h2 class="heading pt-4">SCRIPTS</h2> + <h2 class="heading pt-4 text-md-center">SCRIPTS</h2> {{ range $.Site.Data.projects.scripts }} {{ $link := path.Join "projects/" .name | relURL }} {{ $name := .name }}