Override styles as remote url is broken

This commit is contained in:
Aadi Desai 2023-05-10 12:44:23 +01:00
parent 8771efa29e
commit 0def78fd0f
Signed by: supleed2
SSH key fingerprint: SHA256:CkbNRs0yVzXEiUp2zd0PSxsfRUMFF9bLlKXtE1xEbKM

View file

@ -0,0 +1,12 @@
<style>
{{ if .IsHome }}
{{- $default_style := resources.Get "sass/default.scss" | resources.ToCSS -}}
{{- $default_style.Content | safeCSS -}}
{{ else }}
{{- $activity_style := resources.Get "sass/activity.scss" | resources.ToCSS | minify -}}
{{- $activity_style.Content | safeCSS -}}
{{ end }}
{{ $terminal_style := resources.Get "sass/white.scss" }}
{{ $terminal_style = printf "body{background:#272822}body #terminal{color:#f8f8f2}body #user{color:#a6e22e}body #dir{color:#66d9ef}body .Typewriter__cursor{color:#f8f8f2}a{color:#f8f8f2}" }}
{{ $terminal_style | safeCSS }}
</style>