Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/kskarthik/monopriv.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarthik <kskarthik@disroot.org>2020-02-11 10:36:02 +0300
committerKarthik <kskarthik@disroot.org>2020-02-11 10:36:02 +0300
commitee70d7ae3ff31e50597d0633418b33d3c4ad446b (patch)
treeb981582f0a10972c2cf6ac5c1e4ad29cfc06a192
parent39d86fd20e3d2951453f175f30593c879459b128 (diff)
update landing page
-rw-r--r--layouts/_default/single.html11
-rw-r--r--layouts/index.html9
-rw-r--r--layouts/partials/footer.html6
-rw-r--r--layouts/partials/hero.html10
-rw-r--r--layouts/partials/nav.html4
5 files changed, 25 insertions, 15 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 8bbd924..5713d65 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,5 +1,4 @@
{{define "main"}}
-
{{ if eq .Section "post"}}
<section class="container text-justified mt-3">
<h2 class="font-weight-bold">{{.Title}}</h2>
@@ -7,7 +6,12 @@
<div class="text-monospace mt-2">
{{ .Content }}
</div>
- <code>tags:
+ <div>
+ <a href='mailto:?subject={{.Title}}?body={{.Permalink}}'><button class='btn btn-sm'>:email:</button></a>
+ <a href=''><button class='btn btn-sm'>::</button></a>
+ <a href=''><button class='btn btn-sm'>::</button></a>
+ </div>
+ <code>Tags:
{{- range .Params.tags -}}
<span class='badge badge-dark'><a class='text-white' href='{{ "tags/" | absURL }}{{ . | lower }}'>{{ . }}</a></span>
{{ end }}
@@ -26,4 +30,7 @@
</div>
</section>
{{end}}
+{{ if .Site.Params.search.enabled}}
+ {{partial "search.html" .}}
+{{end}}
{{end}}
diff --git a/layouts/index.html b/layouts/index.html
index fab665d..3cc10dc 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,8 +1,10 @@
{{define "main"}}
{{- partial "hero.html" . -}}
<section id="posts" class="container mt-4">
- <h3 class="text-monospace text-center">Recent Posts</h3>
- <div class="card-columns">
+ {{ if .Site.Params.search.enabled }}
+ {{partial "search.html" .}}
+ {{end}}
+ <div class="card-columns mt-3">
{{range first 6 .Site.RegularPages }}
{{if eq .Section "post"}}
<div class="bg-light card">
@@ -22,8 +24,5 @@
<img class="img-responsive" src='{{ "img/no-facebook.png" | absURL }}' width="200px" alt="I'm Not On Faceboook">
</a>
</section>
- {{ if .Site.Params.search.enabled }}
- {{partial "search.html" .}}
- {{end}}
{{end}}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 7bcd627..757c739 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,8 +1,10 @@
<footer>
- <div class="container-fluid bg-dark text-white text-monospace text-center mt-4">
+ <div class="container-fluid bg-dark text-white text-monospace text-center mt-2">
<small>{{.Site.Copyright | safeHTML }} Theme: <a class='text-warning' href="https://themes.gohugo.io/monopriv">Monopriv</a> | Crafted with <a class='text-warning' href="https://gohugo.io">Hugo</a></small>
</div>
{{ if .Site.Params.analytics }}
{{ template "_internal/google_analytics.html" . }}
{{ end }}
-</footer> \ No newline at end of file
+</footer>
+<div>
+</div>
diff --git a/layouts/partials/hero.html b/layouts/partials/hero.html
index b6b63fc..5017df6 100644
--- a/layouts/partials/hero.html
+++ b/layouts/partials/hero.html
@@ -1,6 +1,8 @@
-<section class="container text-monospace mt-5">
- <div class="container text-center">
- <img class="rounded-circle" src='{{ .Site.Params.img | absURL }}' title="Icon by freepik rom www.flaticon.com" width="200px"/>
+<section class="container text-monospace">
+ <div class="container text-center">
+ {{if .Site.Params.hero.enabled }}
+ <img class="rounded-circle" src='{{ .Site.Params.img | absURL }}' title="Icon by freepik rom www.flaticon.com" width="200px"/>
+ {{end}}
<h3 class="mt-3">{{ .Site.Title }}</h3>
<span class='text-secondary'>{{ .Site.Params.about }}</span>
<br><br>
@@ -12,4 +14,4 @@
</div>
</div>
-</section> \ No newline at end of file
+</section>
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index 761c5be..e9c3924 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -1,6 +1,6 @@
-<nav class="navbar text-center sticky-top bg-white mt-2 mb-1">
+<nav class="navbar text-center sticky-top bg-white mt-2 mb-5">
<a href='{{ .Site.BaseURL }}'><span class="btn btn-sm btn-outline-primary">Home</span></a>
<a href='{{ "about" | absURL }}'><span class="btn btn-sm btn-outline-secondary">About</span></a>
<a href='{{ "post" | absURL }}'><span class="btn btn-sm btn-outline-success">Blog</span></a>
<a href='{{ "tags" | absURL }}'><span class="btn btn-sm btn-outline-warning">Tags</span></a>
-</nav> \ No newline at end of file
+</nav>