Updating theme layout

This commit is contained in:
2020-06-02 04:24:31 +01:00
parent 304770ed50
commit a122c9821b
8 changed files with 31 additions and 23 deletions

View File

@@ -1,7 +1,7 @@
{{ define "main" }}
{{ .Scratch.Set "IsSingle" true }}
<!-- <main class="homepage container py-6" id="front-background"> -->
<img src="/images/front-wallpaper.svg" class="front-background" style="opacity: 5% !important;">
<img src="/images/front-wallpaper.svg" class="front-background">
<main class="homepage container py-6">
<div>
<!-- Hero -->

View File

@@ -1,3 +1,3 @@
<!-- Adding AOS -->
{{/* <!-- Adding AOS -->
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<!-- End AOS -->
<!-- End AOS --> */}}

View File

@@ -5,8 +5,3 @@
{{ end }}
{{ end }}
{{ end }}
{{ range .Site.Params.customJS -}}
<script src="{{ "js/" | relURL }}{{ . }}"></script>
{{ end }}

View File

@@ -149,10 +149,6 @@
{{ end }}
{{ end }}
{{ range .Site.Params.customCSS -}}
<link rel="stylesheet" href="{{ "css/" | relURL }}{{ . }}">
{{ end }}
<!-- <link rel="canonical" href="{{ .Permalink }}"> -->
{{- with .OutputFormats.Get "RSS" }}
<link href="{{ .Permalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}">

View File

@@ -1,4 +1,4 @@
<!-- Adding AOS -->
{{/* <!-- Adding AOS -->
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script>
AOS.init({
@@ -6,4 +6,4 @@
once: false,
});
</script>
<!-- Finish AOS -->
<!-- Finish AOS --> */}}

View File

@@ -8,8 +8,8 @@
<div class="col-lg-8">
<div class="meta text-muted mb-3">
<p class="created text-muted text-uppercase font-weight-bold mb-1">{{ $page.Date.Format "January 2, 2006" }}</p>
<span class="mr-2"><i class="fas fa-book-open mr-2"></i>{{ T "wordCount" $page.WordCount }}</span>
<span><i class="fas fa-clock mr-2"></i>{{ T "readingTime" $page.ReadingTime }}</span>
<span class="mr-2"><i class="fas fa-book-open mr-2"></i>{{ $page.WordCount }} words</span>
<span><i class="fas fa-clock mr-2"></i>{{ $page.ReadingTime }} min read</span>
</div>
<h1>{{ $page.Title }}</h1>

View File

@@ -1,5 +1,5 @@
{{ $img := $.Page.Resources.GetMatch (.Get 0)}}
<figure>
<img src="{{ $img.RelPermalink }}" alt="(.Get 1)" />
<img data-src="{{ $img.RelPermalink }}" alt="(.Get 1)" />
<figcaption>{{.Get 1}}</figcaption>
</figure>