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

github.com/10mohi6/hugo-theme-simple-blog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r--layouts/_default/single.html75
1 files changed, 45 insertions, 30 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 6555d51..f1e56cb 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,31 +1,46 @@
{{ partial "header.html" . }}
-<header class="text-center bg-dark pt-5 pb-5 col-12">
- {{ range .Params.categories }}
- <a href="{{ $.Site.BaseURL }}categories/{{ . | urlize }}/" class="text-success">{{ . }}</a>
- {{ end }}
- <h1 class="text-white pt-4 pb-3">{{ .Title }}</h1>
- <p class="text-secondary">{{.Date.Format "January 2, 2006"}}</p>
- {{ range .Params.tags }}
- <a href="{{ $.Site.BaseURL }}tags/{{ . | urlize }}/" class="text-info">#{{ . }}</a>
- {{ end }}
-</header>
-<div class="container">
- <div class="row pt-5">
- <div class="col-12">
- {{ .Content }}
- </div>
- </div>
- <div class="row pt-5 pb-5">
- <div class="col-6 text-left">
- {{ with .PrevInSection }}
- <a class="text-reset" href="{{ .Permalink }}">< {{ .Title }}</a>
- {{ end }}
- </div>
- <div class="col-6 text-right">
- {{ with .NextInSection }}
- <a class="text-reset" href="{{ .Permalink }}">{{ .Title }} ></a>
- {{ end }}
- </div>
- </div>
-</div>
-{{ partial "footer.html" . }} \ No newline at end of file
+ <main id="main">
+ <div class="container">
+ <div class="row justify-content-center text-center my-5">
+ <div class="col-lg-10">
+ {{ range .Params.categories }}
+ <a href="{{ $.Site.BaseURL }}categories/{{ . | urlize }}/" class="d-inline-block link-cta mb-4 text-uppercase">{{ . }}</a>
+ {{ end }}
+ <h1 class="mb-4 text-center">{{ .Title }}</h1>
+ <p class="small mb-5 text-center"><span class="text-uppercase">{{.Date.Format "January 2, 2006"}}</span></p>
+ </div>
+ </div>
+ </div>
+ <div class="bg-skew bg-skew-light">
+ <div class="container">
+ <div class="row justify-content-center">
+ <div class="col-lg-8">
+ <article class="pb-2">
+ {{ .Content }}
+ <p class="mt-5 text-center">
+ {{ with .Params.tags }}
+ <span class="text-secondary">Tagged: </span>
+ {{ end }}
+ {{ range .Params.tags }}
+ <a href="{{ $.Site.BaseURL }}tags/{{ . | urlize }}/" class="link-tag text-dark">#{{ . }}</a>
+ {{ end }}
+ </p>
+ </article>
+ <div class="row pt-5 pb-5">
+ <div class="col-6 text-left">
+ {{ with .PrevInSection }}
+ <a class="text-reset" href="{{ .Permalink }}">&larr; {{ .Title }}</a>
+ {{ end }}
+ </div>
+ <div class="col-6 text-right">
+ {{ with .NextInSection }}
+ <a class="text-reset" href="{{ .Permalink }}">{{ .Title }} &rarr;</a>
+ {{ end }}
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </main>
+{{ partial "footer.html" . }}