Refactor styles: move styles to add.scss and link in custom-head.html
This commit is contained in:
11
assets/sass/add.scss
Normal file
11
assets/sass/add.scss
Normal file
@@ -0,0 +1,11 @@
|
||||
.author {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.page-content {
|
||||
a[target="_blank"] {
|
||||
&::after {
|
||||
content: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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">
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
.author{margin:0}.page-content a[target=_blank]::after{content:none}
|
||||
@@ -0,0 +1 @@
|
||||
{"Target":"add.min.a194250be980045d45b8e209328cfc4cf3607e41be96022d16bf4ba38b4f30e6.css","MediaType":"text/css","Data":{"Integrity":"sha256-oZQlC+mABF1FuOIJMoz8TPNgfkG+lgItFr9Lo4tPMOY="}}
|
||||
Reference in New Issue
Block a user