diff options
Diffstat (limited to 'layouts/partials')
| -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 |
3 files changed, 3 insertions, 6 deletions
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> |
