I'm starting to shape the theme files
authordanix <danix@danix.xyz>
Mon, 23 Jan 2023 17:48:55 +0000 (18:48 +0100)
committerdanix <danix@danix.xyz>
Mon, 23 Jan 2023 17:48:55 +0000 (18:48 +0100)
layouts/index-baseof.html [new file with mode: 0644]
layouts/index.html
layouts/partials/footer.html
layouts/partials/head.html
layouts/partials/header.html

diff --git a/layouts/index-baseof.html b/layouts/index-baseof.html
new file mode 100644 (file)
index 0000000..3f38b14
--- /dev/null
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html lang="{{ $.Site.LanguageCode | default "en" }}">
+       {{- partial "head.html" . -}}
+       <body class="homepage home">
+               <div id="page">
+                       <a id="top" class="skip-link screen-reader-text" href="#primary">skip to content</a>
+                       {{- partial "header.html" . -}}
+                       <div id="content" class="site-content">
+                               <div id="primary" class="content-area">
+                                       <main id="main" class="site-main">
+                                               {{- block "home-main" . }}{{- end }}
+                                       </main>
+                               </div>
+                               <div id="secondary" class="related-content">
+                                       {{- partial "home-latest-posts.html" . -}}
+                                       {{- partial "tag-cloud.html" . -}}
+                               </div>
+                       </div>
+                       {{- partial "footer.html" . -}}
+               </div>
+       </body>
+</html>
index e69de29..3ea6fd5 100644 (file)
@@ -0,0 +1,7 @@
+{{ define "home-main" }}
+<article class="post">
+       <div id="home-content">
+               {{ .Content }}
+       </div>
+</article>
+{{ end }}
index e69de29..6961a97 100644 (file)
@@ -0,0 +1,8 @@
+<footer id="colophon" class="site-footer">
+       <div id="footer-content">
+               <p>Copyright &copy; {{ partial "funcs/year.html" }} <a href="{{- $.Site.Params.author_url -}}" target="_blank">{{- $.Site.Params.author_name -}}</a></p>
+               <p><a href="{{.Site.BaseURL}}sitemap.xml" target="_blank">sitemap</a></p>
+       </div>
+       {{- partial "footer-addition.html" . -}}
+       {{- partial "funcs/social-menu.html" . -}}
+</footer>
index e69de29..1444f5d 100644 (file)
@@ -0,0 +1,24 @@
+<head>
+    <meta charset="utf-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1">
+       <link rel="profile" href="https://gmpg.org/xfn/11">
+       <link rel="stylesheet" href="{{ "assets/css/dagreynix_fonts.css" | absURL }}">
+       <link rel="stylesheet" href="{{ "assets/css/dagreynix.css" | absURL }}">
+       {{ partial "funcs/favicon.html" . }}
+       <link rel="canonical" href="{{ .Permalink }}">
+
+       {{ with .OutputFormats.Get "rss" -}}
+           {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
+       {{ end -}}
+
+    {{ $title := print .Site.Title " ⋇ " .Title }}
+    {{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
+    <title>{{ $title }}</title>
+
+       {{ template "_internal/opengraph.html" . }}
+       {{ template "_internal/schema.html" . }}
+       {{ template "_internal/twitter_cards.html" . }}
+
+       {{- partial "head-addition.html" . -}}
+
+</head>
index e69de29..12ad245 100644 (file)
@@ -0,0 +1,11 @@
+<header id="masthead" class="site-header">
+       <div class="site-branding">
+               <h1 class="site-title">
+                       <a href="{{ .Site.BaseURL }}" rel="home">{{ .Site.Title }}</a>
+               </h1>
+               <p class="site-description">{{ .Site.Params.Description }}</p>
+       </div>
+       {{ if isset .Site.Menus "main" }}
+       {{- partial "main-menu.html" . -}}
+       {{ end }}
+</header>