Refactor styles: move styles to add.scss and link in custom-head.html

This commit is contained in:
Fundor333
2025-05-15 01:17:30 +02:00
parent 742ebd509c
commit 0294f6f247
4 changed files with 16 additions and 5 deletions

11
assets/sass/add.scss Normal file
View File

@@ -0,0 +1,11 @@
.author {
margin: 0;
}
.page-content {
a[target="_blank"] {
&::after {
content: none;
}
}
}

View File

@@ -6,8 +6,6 @@
<script src="https://kit.fontawesome.com/2f3b6e2e4c.js" crossorigin="anonymous"></script>
<style>
.page-content a[target=_blank]::after {
content: none;
}
</style>
{{- $style := resources.Get "sass/add.scss" | resources.ExecuteAsTemplate "add.scss" . | toCSS (dict "targetPath" "add.css") | minify | fingerprint }}
<link href="{{ $style.RelPermalink }}" rel="stylesheet">

View File

@@ -0,0 +1 @@
.author{margin:0}.page-content a[target=_blank]::after{content:none}

View File

@@ -0,0 +1 @@
{"Target":"add.min.a194250be980045d45b8e209328cfc4cf3607e41be96022d16bf4ba38b4f30e6.css","MediaType":"text/css","Data":{"Integrity":"sha256-oZQlC+mABF1FuOIJMoz8TPNgfkG+lgItFr9Lo4tPMOY="}}