~joshleeb/joshleeb.com

a196788ace484f404462e00f90689ea63f32b09e — Josh Leeb-du Toit 28 days ago fa3ac13
Move static/main.css to assets/main.scss and enable minification
2 files changed, 11 insertions(+), 3 deletions(-)

R static/{main.css => main.scss}
M layouts/partials/head.html
R static/main.css => assets/main.scss +9 -2
@@ 23,8 23,15 @@ pre {
    font-size: 16px;
}

a:visited { color: blue; }
a:hover { text-decoration: none; }
a {
  &:visited {
    color: blue;
  }

  &:hover {
    text-decoration: none;
  }
}

.content {
  max-width: 680px;

M layouts/partials/head.html => layouts/partials/head.html +2 -1
@@ 8,7 8,8 @@
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />

<link rel="stylesheet" href="/main.css" />
{{ $style := resources.Get "main.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}">

{{ range .Params.scripts }}
  <script src="{{ . }}"></script>