diff --git a/layouts/index.html b/layouts/index.html index 0ad0691..7dba902 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -9,7 +9,7 @@

{{ .Site.Params.FullTitle }}

-
+
{{ range .Site.Sections }} {{ if eq .Type "home" }} @@ -21,4 +21,20 @@

{{ .Site.Params.FullTitle }}

+
+
+

Latest Blogposts

+ +
+ +
+ {{ range ( where .Site.RegularPages "Type" "blog" ) | first 3 }} + {{ partial "blogcard.html" . }} + {{ end }} +
+
+ +
+
+ {{ end }} diff --git a/static/caseyhates.css b/static/caseyhates.css index a8e5edb..e862874 100644 --- a/static/caseyhates.css +++ b/static/caseyhates.css @@ -106,13 +106,14 @@ body { color: white; } -.sli-button { +.sli-button, .blog-button { background-color: var(--primary-color); } -.sli-button:hover { +.sli-button:hover, .blog-button:hover { background-color: var(--secondary-color); + color:white; } .discord-button { @@ -294,3 +295,25 @@ body { .blog-content-text { margin-top: 2rem; } + +.latest-blogposts-title { + padding: 2.5rem 0 1.5rem 0; +} + +.latest-blogposts { + background: #f0f0f0; +} + +.blog-button { + height: auto; + min-width: 10vw; + font-family: "Open Sans", sans-serif; + font-size: .85rem; + font-weight: 400; + padding: .65rem 2rem; + line-height: 1.6rem; + color: white; + text-transform: uppercase; + + margin: 1.5rem 0 2.5rem 0; +}