diff --git a/assets/css/custom.css b/assets/css/custom.css index 569c3e4..0cec9fa 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -23,3 +23,13 @@ a:hover { background-color: var(--splash) !important; border-bottom: 1px dashed var(--primary); } +.full-width { + left: 50%; + margin-left: -50vw; + margin-right: -50vw; + max-width: 100vw; + position: relative; + right: 50%; + width: 100vw; + opacity: 0.5; +} diff --git a/layouts/home.html b/layouts/home.html new file mode 100644 index 0000000..2156627 --- /dev/null +++ b/layouts/home.html @@ -0,0 +1,88 @@ +{{/* +Copyright (C) 2019 Josh Habdas + +This file is part of After Dark. + +After Dark is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +After Dark is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . +*/}} +{{ define "title" -}} + {{ .Site.Title }} +{{- end }} +{{ define "header" }} + {{ partial "masthead.html" . }} +{{ end }} +{{ define "main" }} +
+

{{ .Title }}

+
+
+ +
+

+ Featured Post: "Fuck The World" +

+

Let me tell you a little secret I learned. There is one fundamental truth. One truth in this maelstrom. In universal entropy one thing remains…

+
+ +
+ {{ with .Site.Params.layout.home.section }} + {{ if ne $.Site.Params.hackcss.disabled true }} + {{ with resources.Get "css/conditional/layouts/partials/page-thumbs.css" | minify }} + + {{ end }} + {{ end }} + {{ range sort . "weight" "asc" }} +
+ {{ $index := site.GetPage "section" .type }} + {{ $pages := where site.RegularPages "Type" .type }} + {{ $page_count := (default 1 (len $pages)) }} + {{ if eq $page_count 1 }} + {{ partial "page-summary.html" $index }} + {{ else if gt $page_count 1 }} +
+

+ Recent {{ $index.Title }} +

+
{{ $index.Description }}
+
+ {{ partial "page-thumbs.html" (dict "thumbnail_options" .thumbs "page_count" $page_count "limit" .limit "pages" $pages) }} + {{ end }} + {{ if and (lt .limit $page_count) (ne 1 $page_count) }} + + {{ end }} +
+ {{ end }} + {{ end }} + {{ if not .Site.Params.layout.home.hide_blog }} +
+ {{ range (.Paginate (where .Site.RegularPages "Type" "in" (site.Params.layout.homepage.sections | default (slice "post")))).Pages }} + {{ partial "page-summary.html" . }} + {{ end }} +
+ {{ end }} +{{ end }} +{{ define "footer" }} + {{ if not .Site.Params.layout.home.hide_blog }} +

{{ partial "pagination.html" . }}

+ {{ end }} + + {{ partial "copyright-notice.html" . }} + +{{ end }} diff --git a/static/img/nikko-macaspac-6SNbWyFwuhk-unsplash.jpg b/static/img/nikko-macaspac-6SNbWyFwuhk-unsplash.jpg new file mode 100644 index 0000000..9c5a7e6 Binary files /dev/null and b/static/img/nikko-macaspac-6SNbWyFwuhk-unsplash.jpg differ