[site] Extract styling for the landing page
Makes it easier to add different styles to future pages.
Signed-off-by: James Wainwright <james.wainwright@lowrisc.org>
diff --git a/site/landing/assets/scss/style.scss b/site/landing/assets/scss/landing.scss
similarity index 100%
rename from site/landing/assets/scss/style.scss
rename to site/landing/assets/scss/landing.scss
diff --git a/site/landing/layouts/index.html b/site/landing/layouts/index.html
index 4031289..8c68bc3 100644
--- a/site/landing/layouts/index.html
+++ b/site/landing/layouts/index.html
@@ -1,7 +1,13 @@
<!DOCTYPE html>
<html lang="en" class="no-js">
-{{ partial "head.html" . }}
+<head>
+ {{ partial "head.html" . }}
+
+ {{ $options := (dict "targetPath" "css/landing.css" "outputStyle" "compressed" "enableSourceMap" true) }}
+ {{ $style := resources.Get "scss/landing.scss" | resources.ToCSS $options }}
+ <link rel="stylesheet" href="{{ $style.Permalink }}">
+</head>
<body>
<svg style="width: 0; height: 0; position: absolute; opacity: 0;">
diff --git a/site/landing/layouts/partials/head.html b/site/landing/layouts/partials/head.html
index 48c99e0..f2e0ee1 100644
--- a/site/landing/layouts/partials/head.html
+++ b/site/landing/layouts/partials/head.html
@@ -14,7 +14,6 @@
<meta property="twitter:description" content="{{ .Site.Params.description }}">
<meta name="twitter:card" content="summary_large_image">
-
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
@@ -22,13 +21,8 @@
<meta name="msapplication-TileColor" content="#c27bcf">
<meta name="theme-color" content="#ffffff">
-
<link href="https://fonts.googleapis.com/css?family=Livvic:300|Ubuntu:400,700&display=swap" rel="stylesheet">
- {{ $options := (dict "targetPath" "css/style.css" "outputStyle" "compressed" "enableSourceMap" true) }}
- {{ $style := resources.Get "scss/style.scss" | resources.ToCSS $options }}
- <link rel="stylesheet" href="{{ $style.Permalink }}">
-
{{ with .Params.ExtraStyles }}
{{ range $css_url := . }}
<link rel="stylesheet" href="{{ $css_url }}">