Init
This commit is contained in:
55
themes/agico-hugo/layouts/_default/single.html
Executable file
55
themes/agico-hugo/layouts/_default/single.html
Executable file
@@ -0,0 +1,55 @@
|
||||
{{ define "main" }}
|
||||
|
||||
|
||||
<!-- checking blog -->
|
||||
{{ if or (eq .Section "post") (eq .Section "posts") (eq .Section "blog") (eq .Section "blogs") (eq .Section "nieuws") (eq .Section "categories") (eq .Section "tags") }}
|
||||
<section class="section section-lg-bottom">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 rounded-sm pe-5">
|
||||
<!-- {{ partial "image.html" (dict "Src" .Params.Image "Alt" "post-thumb" "Class" "rounded-sm w-100 mb-2" "Size" "990x") }} -->
|
||||
<p class="text-color position-relative d-inline-block"><span
|
||||
class="text fw-bold">{{ .Params.Author }}</span> / <span
|
||||
class="text fw-bold">{{ .PublishDate.Format "Jan 02, 2006" }}</span></p>
|
||||
<div class="content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
<!--
|
||||
<div class="my-5">
|
||||
<h5 class="d-inline-block me-3">Deel bericht:</h5>
|
||||
<ul class="list-inline d-inline-block">
|
||||
{{ $url := printf "%s" .Permalink | absLangURL }}
|
||||
<li class="list-inline-item"><a href="https://facebook.com/sharer/sharer.php?u={{ $url }}" class="text-color lead"><i class="fab fa-facebook "></i></a></li>
|
||||
<li class="list-inline-item"><a href="https://twitter.com/intent/tweet/?text={{ .Title }}&url={{ $url }}" class="text-color lead"><i class="fab fa-twitter "></i></a></li>
|
||||
<li class="list-inline-item"><a href="https://reddit.com/submit/?url={{ $url }}&resubmit=true&title={{ .Title }}" class="text-color lead"><i class="fab fa-reddit "></i></a></li>
|
||||
<li class="list-inline-item"><a href="whatsapp://send?text={{ .Title }}%20{{ $url }}" class="text-color lead"><i class="fab fa-whatsapp "></i></a></li>
|
||||
<li class="list-inline-item"><a href="https://telegram.me/share/url?text={{ .Title }}&url={{ $url }}" class="text-color lead"><i class="fab fa-telegram "></i></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
-->
|
||||
<!-- comments -->
|
||||
<!-- {{ if site.Config.Services.Disqus.Shortname }}
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
{{ end }} -->
|
||||
</div>
|
||||
{{ partial "components/sidebar.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ else }}
|
||||
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="content">
|
||||
{{.Content }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user