removed unused layout templates. Cleanup on breadcrumbs.
authordanix <danix@danix.xyz>
Mon, 6 Feb 2023 09:49:18 +0000 (10:49 +0100)
committerdanix <danix@danix.xyz>
Mon, 6 Feb 2023 09:49:18 +0000 (10:49 +0100)
layouts/partials/breadcrumbs.html
layouts/partials/home-social-links.html
layouts/post/single-baseof.html [deleted file]
layouts/post/single.html [deleted file]

index fd8cc6b..995f7c0 100644 (file)
@@ -1,28 +1,31 @@
-<ol class="crumbs" itemscope itemtype="https://schema.org/BreadcrumbList">
-    {{- /* declare a 'variable' to store the each link position */}}
-    {{- $data := newScratch }}
+<div id="breadcrumbs">
+    <p>You're in: </p>
+    <ol class="crumbs" itemscope itemtype="https://schema.org/BreadcrumbList">
+        {{- /* declare a 'variable' to store the each link position */}}
+        {{- $data := newScratch }}
 
-    {{- range $index, $value := .Ancestors.Reverse }}
-        <li class="crumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
-            {{- /* read the index from loop and add 'one', because it starts counting from zero */}}
-            {{- $data.Set "counter" $index }}
-            {{- $data.Add "counter" 1 }}
-            <a itemprop="item" href="{{.Permalink}}">
-                {{ if .IsHome }}
-                <span itemprop="name">home</span>
-                {{ else }}
+        {{- range $index, $value := .Ancestors.Reverse }}
+            <li class="crumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
+                {{- /* read the index from loop and add 'one', because it starts counting from zero */}}
+                {{- $data.Set "counter" $index }}
+                {{- $data.Add "counter" 1 }}
+                <a itemprop="item" href="{{.Permalink}}">
+                    {{ if .IsHome }}
+                    <span itemprop="name">home</span>
+                    {{ else }}
+                    <span itemprop="name">{{.Title}}</span>
+                    {{ end }}
+                </a>
+                {{- /* pass the counter value into schema attribute */}}
+                <meta itemprop="position" content='{{ $data.Get "counter"}}' />
+            </li>         
+        {{- end }}
+            <li class="crumb-item active" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
+                {{- /* add 'one' one more time for the last link position */}}
+                {{- $data.Add "counter" 1 }}
                 <span itemprop="name">{{.Title}}</span>
-                {{ end }}
-            </a>
-            {{- /* pass the counter value into schema attribute */}}
-            <meta itemprop="position" content='{{ $data.Get "counter"}}' />
-        </li>         
-    {{- end }}
-        <li class="crumb-item active" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
-            {{- /* add 'one' one more time for the last link position */}}
-            {{- $data.Add "counter" 1 }}
-            <span itemprop="name">{{.Title}}</span>
-            {{- /* pass the counter value into schema attribute */}}
-            <meta itemprop="position" content='{{ $data.Get "counter"}}' />
-        </li>
-</ol>
\ No newline at end of file
+                {{- /* pass the counter value into schema attribute */}}
+                <meta itemprop="position" content='{{ $data.Get "counter"}}' />
+            </li>
+    </ol>
+</div>
\ No newline at end of file
index cb921a0..187053c 100644 (file)
@@ -1,13 +1,10 @@
 <div id="home-social-links">
        <h3 class="screen-reader-text social-links-title">my socials</h3>
        <ul class="social-links-list">
-               {{ range site.Data.socials.sites }}
+               {{ range site.Data.socials.sites | shuffle }}
                        <li>
                                <a href="{{ .url }}/{{ .user }}"><i class="fa-brands fa-square-{{ .name }}"></i><span class="screen-reader-text">{{ .name }}</span></a>
                        </li>
                {{ end }}
-                       <li>
-                               <a href=""><i class="fa-solid fa-angles-up"></i><span class="screen-reader-text">suca</span></a>
-                       </li>
        </ul>
 </div>
diff --git a/layouts/post/single-baseof.html b/layouts/post/single-baseof.html
deleted file mode 100644 (file)
index 1253cd5..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-<!DOCTYPE html>
-<html lang="{{ $.Site.LanguageCode | default "en" }}">
-       {{- partial "head.html" . -}}
-       <body class="single-post blog">
-               <div id="page" class="blog-post">
-                       <a id="top" class="skip-link screen-reader-text" href="#primary">skip to content</a>
-                       {{- partial "header.html" . -}}
-                       {{- partial "breadcrumbs.html" . -}}
-                       <div id="content" class="site-content">
-                               <div id="primary" class="content-area">
-                                       <main id="main" class="site-main">
-                                               {{- block "post-main" . }}{{- end }}
-                                       </main>
-                               </div>
-                               <div id="secondary" class="related-content">
-                                       {{- partial "funcs/tags.html" . -}}
-                                       {{- partial "funcs/categories.html" . -}}
-                               </div>
-                       </div>
-                       {{- partial "footer.html" . -}}
-               </div>
-       </body>
-</html>
diff --git a/layouts/post/single.html b/layouts/post/single.html
deleted file mode 100644 (file)
index 87a61c5..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-{{ define "post-main" }}
-<article class="post">
-               {{ .Content }}
-</article>
-{{ end }}