git: 3ce678e275 - main - layouts: Change year/month headers to h2
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 08 Dec 2021 18:25:15 UTC
The branch main has been updated by ygy: URL: https://cgit.FreeBSD.org/doc/commit/?id=3ce678e2756309c9d1d39f759984bee0070ccbf5 commit 3ce678e2756309c9d1d39f759984bee0070ccbf5 Author: Guangyuan Yang <ygy@FreeBSD.org> AuthorDate: 2021-12-08 18:22:48 +0000 Commit: Guangyuan Yang <ygy@FreeBSD.org> CommitDate: 2021-12-08 18:22:48 +0000 layouts: Change year/month headers to h2 The h1 header in the current beastie theme does not have proper top margin settiings. Also, these year/month headers usually appear in a list under the real h1 header. Change them to h2. Reviewed by: carlavilla Differential Revision: https://reviews.freebsd.org/D33329 --- website/themes/beastie/layouts/events/list.html | 6 +++--- website/themes/beastie/layouts/events/single.html | 6 +++--- website/themes/beastie/layouts/news/list.html | 3 +-- website/themes/beastie/layouts/news/single.html | 3 +-- website/themes/beastie/layouts/press/list.html | 3 +-- website/themes/beastie/layouts/press/single.html | 3 +-- 6 files changed, 10 insertions(+), 14 deletions(-) diff --git a/website/themes/beastie/layouts/events/list.html b/website/themes/beastie/layouts/events/list.html index 8384a25a97..5d5972eaf0 100644 --- a/website/themes/beastie/layouts/events/list.html +++ b/website/themes/beastie/layouts/events/list.html @@ -101,7 +101,7 @@ {{ range $month := seq 1 12 }} {{ $yearMonth := (printf "%d-%d" $year $month) }} {{ if in $yearsMonthsCP $yearMonth }} - <h1>{{ i18n $month }} {{ $year }}</h1> + <h2>{{ i18n $month }} {{ $year }}</h2> {{ with $eventsData }} <ul> {{ range first 3 (sort .events "year" "desc") }} @@ -131,7 +131,7 @@ {{ range $month := seq 12 1 }} {{ $yearMonth := (printf "%d-%d" $year $month) }} {{ if in $yearsMonthsPast $yearMonth }} - <h1>{{ i18n $month }} {{ $year }}</h1> + <h2>{{ i18n $month }} {{ $year }}</h2> {{ with $eventsData }} <ul> {{ range first 3 (sort .events "year" "desc") }} @@ -177,7 +177,7 @@ {{ range $month := seq 12 1 }} {{ $yearMonth := (printf "%d-%d" $year $month) }} {{ if in $yearsMonthsSelected $yearMonth }} - <h1>{{ i18n $month }} {{ $year }}</h1> + <h2>{{ i18n $month }} {{ $year }}</h2> {{ with $eventsSelectedYear }} <ul> {{ range (sort .events "startDate" "desc") }} diff --git a/website/themes/beastie/layouts/events/single.html b/website/themes/beastie/layouts/events/single.html index 8384a25a97..5d5972eaf0 100644 --- a/website/themes/beastie/layouts/events/single.html +++ b/website/themes/beastie/layouts/events/single.html @@ -101,7 +101,7 @@ {{ range $month := seq 1 12 }} {{ $yearMonth := (printf "%d-%d" $year $month) }} {{ if in $yearsMonthsCP $yearMonth }} - <h1>{{ i18n $month }} {{ $year }}</h1> + <h2>{{ i18n $month }} {{ $year }}</h2> {{ with $eventsData }} <ul> {{ range first 3 (sort .events "year" "desc") }} @@ -131,7 +131,7 @@ {{ range $month := seq 12 1 }} {{ $yearMonth := (printf "%d-%d" $year $month) }} {{ if in $yearsMonthsPast $yearMonth }} - <h1>{{ i18n $month }} {{ $year }}</h1> + <h2>{{ i18n $month }} {{ $year }}</h2> {{ with $eventsData }} <ul> {{ range first 3 (sort .events "year" "desc") }} @@ -177,7 +177,7 @@ {{ range $month := seq 12 1 }} {{ $yearMonth := (printf "%d-%d" $year $month) }} {{ if in $yearsMonthsSelected $yearMonth }} - <h1>{{ i18n $month }} {{ $year }}</h1> + <h2>{{ i18n $month }} {{ $year }}</h2> {{ with $eventsSelectedYear }} <ul> {{ range (sort .events "startDate" "desc") }} diff --git a/website/themes/beastie/layouts/news/list.html b/website/themes/beastie/layouts/news/list.html index 26409dfdfe..d9e3ac3e42 100644 --- a/website/themes/beastie/layouts/news/list.html +++ b/website/themes/beastie/layouts/news/list.html @@ -46,8 +46,7 @@ {{ range $month := seq 12 1 }} {{ $yearMonth := (printf "%d-%d" $year $month) }} {{ if in $yearsMonths $yearMonth }} - <h1>{{ i18n $month }} {{ $year }}</h1> - + <h2>{{ i18n $month }} {{ $year }}</h2> <ul> {{ with $newsData.news }} {{ range (sort .news "date" "desc") }} diff --git a/website/themes/beastie/layouts/news/single.html b/website/themes/beastie/layouts/news/single.html index 26409dfdfe..d9e3ac3e42 100644 --- a/website/themes/beastie/layouts/news/single.html +++ b/website/themes/beastie/layouts/news/single.html @@ -46,8 +46,7 @@ {{ range $month := seq 12 1 }} {{ $yearMonth := (printf "%d-%d" $year $month) }} {{ if in $yearsMonths $yearMonth }} - <h1>{{ i18n $month }} {{ $year }}</h1> - + <h2>{{ i18n $month }} {{ $year }}</h2> <ul> {{ with $newsData.news }} {{ range (sort .news "date" "desc") }} diff --git a/website/themes/beastie/layouts/press/list.html b/website/themes/beastie/layouts/press/list.html index 332c4de940..88c591492a 100644 --- a/website/themes/beastie/layouts/press/list.html +++ b/website/themes/beastie/layouts/press/list.html @@ -45,8 +45,7 @@ {{ range $month := seq 12 1 }} {{ $yearMonth := (printf "%d-%d" $year $month) }} {{ if in $yearsMonths $yearMonth }} - <h1>{{ i18n $month }} {{ $year }}</h1> - + <h2>{{ i18n $month }} {{ $year }}</h2> <ul> {{ with $pressData.press }} {{ range (sort .press "date" "desc") }} diff --git a/website/themes/beastie/layouts/press/single.html b/website/themes/beastie/layouts/press/single.html index 332c4de940..88c591492a 100644 --- a/website/themes/beastie/layouts/press/single.html +++ b/website/themes/beastie/layouts/press/single.html @@ -45,8 +45,7 @@ {{ range $month := seq 12 1 }} {{ $yearMonth := (printf "%d-%d" $year $month) }} {{ if in $yearsMonths $yearMonth }} - <h1>{{ i18n $month }} {{ $year }}</h1> - + <h2>{{ i18n $month }} {{ $year }}</h2> <ul> {{ with $pressData.press }} {{ range (sort .press "date" "desc") }}