diff --git a/themes/hello-friend-ng/assets/scss/_homepage.scss b/themes/hello-friend-ng/assets/scss/_homepage.scss new file mode 100644 index 0000000..72ca902 --- /dev/null +++ b/themes/hello-friend-ng/assets/scss/_homepage.scss @@ -0,0 +1,33 @@ +main.homepage { + max-width: 500px; + text-align: left; + + .summary { + padding-top: 10px; + padding-bottom: 20px; + font-size: small; + line-height: 1.5em; + } + + li a, p a { + text-decoration: underline dotted 5%; + font-weight: bold; + text-underline-offset: 7%; + &:hover { + text-decoration: none; + } + } + + h2 { + text-align: left; + padding-top: 30px; + } + + div.intro { + text-align: center; + } + + a svg:hover { + stroke: #fe5186; + } +} \ No newline at end of file diff --git a/themes/hello-friend-ng/assets/scss/main.scss b/themes/hello-friend-ng/assets/scss/main.scss index 8bd2488..3a88e20 100644 --- a/themes/hello-friend-ng/assets/scss/main.scss +++ b/themes/hello-friend-ng/assets/scss/main.scss @@ -16,4 +16,5 @@ @import "footer"; @import "style"; @import "baguetteBox"; -@import "search"; \ No newline at end of file +@import "search"; +@import "homepage"; \ No newline at end of file diff --git a/themes/hello-friend-ng/layouts/index.html b/themes/hello-friend-ng/layouts/index.html index 54ece7c..94a3771 100644 --- a/themes/hello-friend-ng/layouts/index.html +++ b/themes/hello-friend-ng/layouts/index.html @@ -1,6 +1,6 @@ {{ define "main" }} -
-
+
+

{{ .Site.Title }}

{{- with .Site.Params.social }} @@ -14,7 +14,7 @@

General Tech Posts

{{- range where .Site.RegularPages "Params.techfeatured" true -}}
  • {{ .Title }} - +
    {{.Summary}}
  • {{- end -}} diff --git a/themes/hello-friend-ng/layouts/partials/head.html b/themes/hello-friend-ng/layouts/partials/head.html index de9d911..67f9368 100644 --- a/themes/hello-friend-ng/layouts/partials/head.html +++ b/themes/hello-friend-ng/layouts/partials/head.html @@ -45,11 +45,13 @@ {{ end }} {{ $style := resources.Get "scss/main.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }} -{{if .IsHome }} + + {{ range $val := $.Site.Params.customCSS }} {{ if gt (len $val) 0 }}