From 74929ff17a61a64f28c4c46e3048aaf36941d069 Mon Sep 17 00:00:00 2001 From: Vrifox Date: Sun, 22 Nov 2020 19:06:31 +0100 Subject: [PATCH] the website is now more lightweight --- assets/projects/list.scss | 67 -------------------------------------- layouts/_default/list.html | 7 ++++ layouts/index.html | 2 +- layouts/projects/list.html | 25 -------------- 4 files changed, 8 insertions(+), 93 deletions(-) delete mode 100644 assets/projects/list.scss delete mode 100644 layouts/projects/list.html diff --git a/assets/projects/list.scss b/assets/projects/list.scss deleted file mode 100644 index 80fef28..0000000 --- a/assets/projects/list.scss +++ /dev/null @@ -1,67 +0,0 @@ -@import '../import/colors.scss'; -@import '../import/main.scss'; -@import '../import/nav.scss'; -@import '../import/footer.scss'; -@import '../import/include.scss'; - -main { - margin: 60px 0 0 0; -} - -.section-articles { - display: grid; - grid-gap: 1rem; - grid-template-columns: repeat(2, 1fr); - margin: 20px 0; - a { - color: $white-light; - text-decoration: none; - } - article { - background: $bg60; - border: 1px solid $bg60; - border-radius: 5px; - color: $white-light; - display: flex; - flex-flow: column; - height: max-content; - max-width: 562px; - padding: 20px; - transition: background .2s; - &:hover { - background: $bg70; - } - img { - background: $bg80; - border-radius: 5px 5px 0px 0px; - margin: -20px -20px 15px -20px; - max-height: 250px; - max-width: calc(100% + 40px); - object-fit: cover; - order: -1; - } - h1 { - font-size: 18px; - font-weight: 400; - margin: 0 0 10px 0; - } - .meta { - font-size: 14px; - margin: 0; - } - .status { - color: $white-dark; - font-style: italic; - } - } -} -@media (max-width: 900px) { - .section-articles { - grid-template-columns: repeat(2, 1fr); - } -} -@media (max-width: 600px) { - .section-articles { - grid-template-columns: repeat(1, 1fr); - } -} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 1d60811..013c02a 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -14,9 +14,16 @@

{{ .Title }}

{{ with .Description }}

{{ . }}

{{ end }} + {{- if eq .Params.type "post" }}

{{ .Date.Format "2 January 2006" }} {{- with .Params.author }}by {{ . }}{{ end }} + {{ end }} + {{- if eq .Params.type "project" }} +

+ {{ with .Params.activetime }}{{ . }}
{{ end }} + {{ with .Params.status }}{{ . }}{{ end }} + {{- end }}

diff --git a/layouts/index.html b/layouts/index.html index 2eef76a..a341ca5 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -41,7 +41,7 @@

{{ .Title }}

- {{ with .Params.activetime }}{{ . }}{{ end }}
+ {{ with .Params.activetime }}{{ . }}
{{ end }} {{ with .Params.status }}{{ . }}{{ end }}

diff --git a/layouts/projects/list.html b/layouts/projects/list.html deleted file mode 100644 index 69ecbbb..0000000 --- a/layouts/projects/list.html +++ /dev/null @@ -1,25 +0,0 @@ -{{ define "stylesheet" }}{{ $scss := resources.Get "projects/list.scss" }}{{ $style := $scss | resources.ToCSS }} - -{{ end }} - -{{ define "main" }} -
- -
-{{ end }}