diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-01-28 22:15:35 +0100 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-01-28 22:15:35 +0100 |
| commit | 806b0c4c393cc535996a73fa7304d16b08410cd8 (patch) | |
| tree | 1eea61c3ecf547580087ece1900b0653948a106c /layouts | |
| parent | a6f50848c05a80e81518fddfd52f72545d8e8c9a (diff) | |
Simplified style (no tailwind)
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_default/baseof.html | 2 | ||||
| -rw-r--r-- | layouts/partials/head/styles.html | 5 | ||||
| -rw-r--r-- | layouts/partials/header/avatar.html | 2 | ||||
| -rw-r--r-- | layouts/partials/list/categories.html | 2 | ||||
| -rw-r--r-- | layouts/shortcodes/alert.html | 2 |
5 files changed, 5 insertions, 8 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index b29ae66..7ba1af9 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -4,7 +4,7 @@ {{- partial "head/index" . -}} </head> - <body class="max-w-screen-md mx-auto px-2.5"> + <body class="container"> {{ partial "header/index" . }} <main id="content"> diff --git a/layouts/partials/head/styles.html b/layouts/partials/head/styles.html index e5432ad..03f336b 100644 --- a/layouts/partials/head/styles.html +++ b/layouts/partials/head/styles.html @@ -1,5 +1,5 @@ {{/* Resources */}} -{{- $tailwind := resources.Get "css/tailwind.css" | postCSS (dict "config" "./config/postcss.config.js") -}} +{{- $styles := resources.Get "css/main.css" -}} {{/* MathJax */}} <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML" defer></script> @@ -9,9 +9,6 @@ document.addEventListener('DOMContentLoaded', function () { }); </script> -{{/* Processor */}} -{{- $styles := slice $tailwind | resources.Concat "css/app.css" -}} - {{/* Output */}} {{- if eq hugo.Environment "development" -}} <link rel="stylesheet" href="{{ $styles.Permalink | absURL }}" /> diff --git a/layouts/partials/header/avatar.html b/layouts/partials/header/avatar.html index be3eb12..5afe23b 100644 --- a/layouts/partials/header/avatar.html +++ b/layouts/partials/header/avatar.html @@ -1,7 +1,7 @@ {{ $avatar := resources.GetMatch .Site.Params.avatar }} {{ $tiny := ($avatar.Fill "400x400 q90") }} -<div class="flex-none w-20 h-20 rounded-full overflow-hidden"> +<div class="avatar"> <a href="{{ .Site.BaseURL }}"> <img srcset="{{- with $tiny.RelPermalink -}}{{.}} 80w{{- end -}}" diff --git a/layouts/partials/list/categories.html b/layouts/partials/list/categories.html index db527c6..dae5905 100644 --- a/layouts/partials/list/categories.html +++ b/layouts/partials/list/categories.html @@ -1,3 +1,3 @@ <li> - <a class="bg-gray-100 hover:bg-gray-200 transition-all duration-500 py-2 px-3 rounded-lg" href=" {{ .Permalink }} ">{{ .Title }} ({{ len .Pages }})</a> + <a class="category-link" href=" {{ .Permalink }} ">{{ .Title }} ({{ len .Pages }})</a> </li> diff --git a/layouts/shortcodes/alert.html b/layouts/shortcodes/alert.html index 3a55964..b980b41 100644 --- a/layouts/shortcodes/alert.html +++ b/layouts/shortcodes/alert.html @@ -5,7 +5,7 @@ {{ if $title }} <h3 class="alert-title">{{ $title }}</h3> {{ end }} - <p class="flex flex-row items-center gap-2"> + <p> {{ if eq $severity "info" }} <svg xmlns="http://www.w3.org/2000/svg" |
