From 2061f3a188217bff07846d90ed21f61bb4a24311 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Fri, 18 Aug 2017 07:21:09 +0100 Subject: [PATCH] Add single layout stylesheets for all content types Ensure that every content type has its own stylesheet even if it's blank otherwise you'll get 404 errors --- layouts/image/single.html | 1 - layouts/video/single.html | 1 - static/css/aside.css | 0 static/css/image.css | 8 ++++++++ static/css/post.css | 2 +- static/css/quote.css | 0 static/css/video.css | 4 ++++ 7 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 static/css/aside.css create mode 100644 static/css/image.css create mode 100644 static/css/quote.css create mode 100644 static/css/video.css diff --git a/layouts/image/single.html b/layouts/image/single.html index 06586d7..51dcad3 100644 --- a/layouts/image/single.html +++ b/layouts/image/single.html @@ -1,5 +1,4 @@ {{ partial "header" . }} - {{ partial "image" . }} {{ partial "postmeta" . }} {{ partial "footer" . }} diff --git a/layouts/video/single.html b/layouts/video/single.html index d2c38cd..2513fc2 100644 --- a/layouts/video/single.html +++ b/layouts/video/single.html @@ -1,5 +1,4 @@ {{ partial "header" . }} - {{ partial "video-embed" .Params.embed_url }} {{ .Content }} {{ partial "postmeta" . }} diff --git a/static/css/aside.css b/static/css/aside.css new file mode 100644 index 0000000..e69de29 diff --git a/static/css/image.css b/static/css/image.css new file mode 100644 index 0000000..e259150 --- /dev/null +++ b/static/css/image.css @@ -0,0 +1,8 @@ +body { + background-color: #fff; + color: black; +} + +h1#site-title a, h1#site-title a:visited, h1#site-title a:hover { + color: #eee; +} diff --git a/static/css/post.css b/static/css/post.css index 9733375..2ea9cd0 100644 --- a/static/css/post.css +++ b/static/css/post.css @@ -9,5 +9,5 @@ h1, h2, h3 { } h1#site-title a, h1#site-title a:visited, h1#site-title a:hover { - color: #777; + color: #ccc; } diff --git a/static/css/quote.css b/static/css/quote.css new file mode 100644 index 0000000..e69de29 diff --git a/static/css/video.css b/static/css/video.css new file mode 100644 index 0000000..1bee9c0 --- /dev/null +++ b/static/css/video.css @@ -0,0 +1,4 @@ +body { + background-color: black; + color: white; +}