Remove inline styling where possible

This commit is contained in:
2021-11-10 20:02:52 +01:00
parent a8c9b46f6a
commit ea4c2dc200
4 changed files with 9 additions and 14 deletions
-6
View File
@@ -99,12 +99,6 @@ googleAnalytics = "UA-136337666-1"
[params.logo]
logoText = "$ cd /home/"
logoHomeLink = "/"
# Set true to remove the logo cursor entirely.
# logoCursorDisabled = false
# Set to a valid CSS color to change the cursor in the logo.
# logoCursorColor = "#67a2c9"
# Set to a valid CSS time value to change the animation duration, "0s" to disable.
# logoCursorAnimate = "2s"
# Uncomment this if you want a portrait on your start page
[params.portrait]
@@ -27,6 +27,10 @@
margin: 0 auto;
width: 760px;
max-width: 100%;
a {
text-decoration: none;
}
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
{{ define "main" }}
<main role="main" style="">
<main role="main">
<div>
{{- if .Site.Params.Portrait.Path }}
{{- partial "image.html" (dict "path" .Site.Params.Portrait.Path "alt" .Site.Params.Portrait.Alt "class" "circle" "style" (printf "max-width:%s" .Site.Params.Portrait.Size ))}}
+3 -6
View File
@@ -1,5 +1,5 @@
<a href="{{ if .Site.Params.Logo.LogoHomeLink }}{{ .Site.Params.Logo.LogoHomeLink }}{{else}}{{ .Site.BaseURL }}{{ end }}"
style="text-decoration: none;">
<a
href="{{ if .Site.Params.Logo.LogoHomeLink }}{{ .Site.Params.Logo.LogoHomeLink }}{{else}}{{ .Site.BaseURL }}{{ end }}">
<div class="logo">
{{- if .Site.Params.Logo.path }}
{{- partial "image.html" (dict "path" .Site.Params.Logo.path "alt" .Site.Params.Logo.alt) }}
@@ -7,10 +7,7 @@
<span class="logo__mark">></span>
<span class="logo__text">{{- with .Site.Params.Logo.logoText }}{{ . }}{{ else }}$ cd /home/{{ end }}<span
id="nav-terminal"></span></span>
<span class="logo__cursor" style="{{- with.Site.Params.Logo.logoCursorDisabled }}visibility:hidden;{{ end -}}
{{- with.Site.Params.Logo.logoCursorColor }}background-color:{{ . }};{{ end -}}
{{- with.Site.Params.Logo.logoCursorAnimate }}animation-duration:{{ . }};{{ end -}}">
</span>
<span class="logo__cursor"></span>
{{- end }}
</div>
</a>