From 36503c4f9dabcb4aad8a5bd25f17af8341eec7a2 Mon Sep 17 00:00:00 2001
From: Patrick Kollitsch <patrick@davids-neighbour.com>
Date: Sat, 29 Mar 2025 01:51:01 +0000
Subject: [PATCH] refactor: sort css classes
---
layouts/_default/single.html | 2 +-
layouts/_default/summary-with-image.html | 4 ++--
layouts/partials/site-scripts.html | 2 +-
layouts/_default/taxonomy.html | 4 ++--
layouts/_default/summary.html | 4 ++--
layouts/partials/summary.html | 4 ++--
layouts/partials/func/style/GetResource.html | 2 +-
layouts/partials/new-window-icon.html | 2 +-
layouts/partials/tags.html | 2 +-
layouts/partials/site-footer.html | 2 +-
layouts/partials/summary-with-image.html | 4 ++--
layouts/partials/site-navigation.html | 6 +++---
layouts/partials/i18nlist.html | 2 +-
13 files changed, 20 insertions(+), 20 deletions(-)
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index cea0ed7..b89aea6 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -6,7 +6,7 @@
{{ define "main" }}
{{ $page := .}}
{{ $section := .Site.GetPage "section" .Section }}
- <article class="flex-wrap justify-between flex-l mw8 center ph3">
+ <article class="flex-l mw8 center ph3 flex-wrap justify-between">
<header class="mt4 w-100">
<aside class="instapaper_ignoref b helvetica tracked ttu">
{{/*
diff --git a/layouts/_default/summary-with-image.html b/layouts/_default/summary-with-image.html
index 266feb1..3f3a1a8 100644
--- a/layouts/_default/summary-with-image.html
+++ b/layouts/_default/summary-with-image.html
@@ -1,7 +1,7 @@
{{ $featured_image := partials.Include "func/GetFeaturedImage.html" . }}
<article class="bb b--black-10">
- <div class="no-underline db pv4 ph3 ph0-l dark-gray">
- <div class="flex flex-column flex-row-ns">
+ <div class="db pv4 ph3 ph0-l dark-gray no-underline">
+ <div class="flex-column flex-row-ns flex">
{{ if $featured_image }}
{{/* Trimming the slash and adding absURL make sure the image works no matter collections.Where our site lives */}}
<div class="{{ compare.Conditional (compare.Eq $.Site.Language.LanguageDirection "rtl") "pl3-ns" "pr3-ns" }} mb4 mb0-ns w-100 w-40-ns">
diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html
index c8a904f..a2d5d30 100644
--- a/layouts/_default/summary.html
+++ b/layouts/_default/summary.html
@@ -1,5 +1,5 @@
-<div class="relative w-100 mb4 bg-white nested-copy-line-height">
- <div class="bg-white mb3 pa4 gray overflow-hidden">
+<div class="w-100 mb4 nested-copy-line-height relative bg-white">
+ <div class="mb3 pa4 gray overflow-hidden bg-white">
{{with .CurrentSection.Title }}<span class="f6 db">{{ . }}</span>{{end}}
<h1 class="f3 near-black">
<a href="{{ .RelPermalink }}" class="link black dim">
diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html
index 0186d57..3f5a6ec 100644
--- a/layouts/_default/taxonomy.html
+++ b/layouts/_default/taxonomy.html
@@ -5,9 +5,9 @@
</div>
</article>
<div class="mw8 center">
- <section class="flex-ns flex-wrap justify-around mt5">
+ <section class="flex-ns mt5 flex-wrap justify-around">
{{ range .Pages }}
- <div class="relative w-100 mb4 bg-white">
+ <div class="w-100 mb4 relative bg-white">
{{ .Render "summary" }}
</div>
{{ end }}
diff --git a/layouts/partials/func/style/GetResource.html b/layouts/partials/func/style/GetResource.html
index 098fc0e..353ee5f 100644
--- a/layouts/partials/func/style/GetResource.html
+++ b/layouts/partials/func/style/GetResource.html
@@ -16,4 +16,4 @@
{{ $resource = . }}
{{ end }}
-{{ return $resource }}
\ No newline at end of file
+{{ return $resource }}
diff --git a/layouts/partials/i18nlist.html b/layouts/partials/i18nlist.html
index 2ff7aa3..c524a33 100644
--- a/layouts/partials/i18nlist.html
+++ b/layouts/partials/i18nlist.html
@@ -3,7 +3,7 @@
<ul class="{{ compare.Conditional (compare.Eq $.Site.Language.LanguageDirection "rtl") "pr0 ml3" "pl0 mr3" }}">
{{ range .Translations }}
<li class="list f5 f4-ns fw4 dib {{ compare.Conditional (compare.Eq $.Site.Language.LanguageDirection "rtl") "pl3" "pr3" }}">
- <a class="hover-white no-underline white-90" href="{{ .RelPermalink }}">{{ .Lang }}</a>
+ <a class="hover-white white-90 no-underline" href="{{ .RelPermalink }}">{{ .Lang }}</a>
</li>
{{ end}}
</ul>
diff --git a/layouts/partials/new-window-icon.html b/layouts/partials/new-window-icon.html
index 1af94b6..fbe21f0 100644
--- a/layouts/partials/new-window-icon.html
+++ b/layouts/partials/new-window-icon.html
@@ -1,2 +1,2 @@
{{ $new_window_icon_size := "8px" }}
-<span class="new-window">{{ partials.Include "svg/new-window.svg" (dict "size" $new_window_icon_size) }}</span>
\ No newline at end of file
+<span class="new-window">{{ partials.Include "svg/new-window.svg" (dict "size" $new_window_icon_size) }}</span>
diff --git a/layouts/partials/site-footer.html b/layouts/partials/site-footer.html
index 2ab0b8d..043755c 100644
--- a/layouts/partials/site-footer.html
+++ b/layouts/partials/site-footer.html
@@ -1,6 +1,6 @@
<footer class="{{ .Site.Params.background_color_class | compare.Default "bg-black" }} bottom-0 w-100 pa3" role="contentinfo">
<div class="flex justify-between">
- <a class="f4 fw4 hover-white no-underline white-70 dn dib-ns pv2 ph3" href="{{ .Site.Home.Permalink }}" >
+ <a class="f4 fw4 hover-white white-70 dn dib-ns pv2 ph3 no-underline" href="{{ .Site.Home.Permalink }}" >
© {{ with .Site.Copyright | compare.Default .Site.Title }} {{ . | safe.HTML }} {{ now.Format "2006"}} {{ end }}
</a>
<div>{{ partials.IncludeCached "social/follow.html" . }}</div>
diff --git a/layouts/partials/site-navigation.html b/layouts/partials/site-navigation.html
index 6040bbb..d4d8b03 100644
--- a/layouts/partials/site-navigation.html
+++ b/layouts/partials/site-navigation.html
@@ -1,6 +1,6 @@
<nav class="pv3 ph3 ph4-ns" role="navigation">
- <div class="flex-l justify-between items-center center">
- <a href="{{ .Site.Home.RelPermalink }}" class="f3 fw2 hover-white no-underline white-90 dib">
+ <div class="flex-l center items-center justify-between">
+ <a href="{{ .Site.Home.RelPermalink }}" class="f3 fw2 hover-white white-90 dib no-underline">
{{ with .Site.Params.site_logo }}
<img src="{{ urls.RelURL . }}" class="w100 mw5-ns" alt="{{ $.Site.Title }}" />
{{ else }}
@@ -13,7 +13,7 @@
<ul class="{{ compare.Conditional (compare.Eq $.Site.Language.LanguageDirection "rtl") "pr0 ml3" "pl0 mr3" }}">
{{ range .Site.Menus.main }}
<li class="list f5 f4-ns fw4 dib {{ compare.Conditional (compare.Eq $.Site.Language.LanguageDirection "rtl") "pl3" "pr3" }}">
- <a class="hover-white no-underline white-90" href="{{ .URL }}" title="{{ lang.Translate "pageTitle" . }}">
+ <a class="hover-white white-90 no-underline" href="{{ .URL }}" title="{{ lang.Translate "pageTitle" . }}">
{{ .Name }}
</a>
</li>
diff --git a/layouts/partials/site-scripts.html b/layouts/partials/site-scripts.html
index d00c0e6..e6462a9 100644
--- a/layouts/partials/site-scripts.html
+++ b/layouts/partials/site-scripts.html
@@ -1 +1 @@
-{{/* For Users's overwrite */}}
\ No newline at end of file
+{{/* For Users's overwrite */}}
diff --git a/layouts/partials/summary-with-image.html b/layouts/partials/summary-with-image.html
index 0fcf591..056c1c7 100644
--- a/layouts/partials/summary-with-image.html
+++ b/layouts/partials/summary-with-image.html
@@ -3,8 +3,8 @@
More info here: https://github.com/theNewDynamic/gohugo-theme-ananke/releases/tag/v2.8.1` }}
{{ $featured_image := partials.Include "func/GetFeaturedImage.html" . }}
<article class="bb b--black-10">
- <div class="no-underline db pv4 ph3 ph0-l dark-gray">
- <div class="flex flex-column flex-row-ns">
+ <div class="db pv4 ph3 ph0-l dark-gray no-underline">
+ <div class="flex-column flex-row-ns flex">
{{ if $featured_image }}
{{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}}
<div class="{{ compare.Conditional (compare.Eq $.Site.Language.LanguageDirection "rtl") "pl3-ns" "pr3-ns" }} mb4 mb0-ns w-100 w-40-ns">
diff --git a/layouts/partials/summary.html b/layouts/partials/summary.html
index 195e9d3..e6811e5 100644
--- a/layouts/partials/summary.html
+++ b/layouts/partials/summary.html
@@ -1,8 +1,8 @@
{{ partials.Include "func/warn.html" `You are currently using 'partial "summary"' in your project templates.
You should replace it with '.Render "summary"' as the use of this partial will be deprecated in future releases.
More info here: https://github.com/theNewDynamic/gohugo-theme-ananke/releases/tag/v2.8.1` }}
-<div class="relative bg-white w-100 mb4 nested-copy-line-height">
- <div class="overflow-hidden bg-white mb3 pa4 gray">
+<div class="w-100 mb4 nested-copy-line-height relative bg-white">
+ <div class="mb3 pa4 gray overflow-hidden bg-white">
<span class="f6 db">{{ inflect.Humanize .Section }}</span>
<h1 class="f3 near-black">
<a href="{{ .RelPermalink }}" class="link black dim">
diff --git a/layouts/partials/tags.html b/layouts/partials/tags.html
index fe1a94a..1469878 100644
--- a/layouts/partials/tags.html
+++ b/layouts/partials/tags.html
@@ -1,7 +1,7 @@
<ul class="pa0">
{{ range .GetTerms "tags" }}
<li class="list di">
- <a href="{{ .RelPermalink }}" class="link f5 grow no-underline br-pill ba ph3 pv2 mb2 dib black sans-serif">
+ <a href="{{ .RelPermalink }}" class="link f5 grow br-pill ba ph3 pv2 mb2 dib black sans-serif no-underline">
{{- .LinkTitle -}}
</a>
</li>
--
Gitblit v1.10.0