123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- {{ define "header"}}
- {{- partial "_shared/navbar.html" . -}}
- {{ end }}
- {{ define "main" }}
- {{- partial "_shared/title.html" . -}}
- <div class="main-content">
- <!-- Begin Article
- ================================================== -->
- <div class="container">
- <div class="row">
- <!-- Post Share -->
- <div class="col-md-2 pl-0">
- {{- partial "single-partials/share.html" . -}}
- </div>
- <!-- Post -->
- <div class="col-md-9 flex-first flex-md-unordered">
- <div class="mainheading">
- <!-- Author Box -->
- {{if isset .Site.Params.author "name"}}
- {{if isset .Site.Params.author "thumbnail"}}
- {{if isset .Site.Params.author "description"}}
- <div class="row post-top-meta">
- <div class="col-xs-12 col-md-3 col-lg-2 text-center text-md-left mb-4 mb-md-0 md-nopad-right">
- <img class="author-thumb" src="{{ .Site.Params.author.thumbnail | urlize | relURL}}" alt="{{ .Site.Params.author.name }}">
- </div>
- <div class="col-xs-12 col-md-9 col-lg-10 text-center text-md-left md-nopad-left">
- <a target="_blank" class="link-dark">{{ .Site.Params.author.name }}</a><br>
- <span class="author-description">
- {{ .Site.Params.author.description }}<br>
- <i class="far fa-star"></i>
- {{ dateFormat "Jan 2, 2006" .PublishDate }}
- <i class="far fa-clock clock"></i>
- {{ .ReadingTime }} min read
- </span>
- </div>
- </div>
- {{end}}
- {{end}}
- {{end}}
- <!-- Post Title -->
- <h1 class="posttitle">{{ .Title }}</h1>
- </div>
- <!-- Post Featured Image -->
- {{$images := .Resources.ByType "image"}}
- {{with $images.GetMatch "*cover*" }}
- <img class="featured-image img-fluid" src="{{ .Permalink }}" alt="thumbnail for this post">
- {{end}}
- <!-- End Featured Image -->
- <!-- Post Content -->
- <div class="article-post">
- {{ .Content}}
- </div>
-
- <!-- Post Categories -->
- <div class="after-post-tags">
- <ul class="tags">
- {{ range .Params.tags }}
- <li>
- <a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{.}}</a>
- </li>
- {{ end }}
- </ul>
- </div>
- <!-- End Categories -->
-
- <!-- Next and PrevPage inside current section -->
- <div class="row PageNavigation d-flex justify-content-between font-weight-bold">
- {{with .NextInSection}}
- <a class="d-block col-md-6" href="{{.Permalink}}"> « {{.Title}}</a>
- {{end}}
- {{with .PrevInSection}}
- <a class="d-block col-md-6 text-lg-right" href="{{.Permalink}}">{{.Title}} »</a>
- {{end}}
- <div class="clearfix"></div>
- </div>
- <!-- End Next and PrevPage -->
- </div>
- <!-- End Post -->
- </div>
- </div>
- <!-- End Article
- ================================================== -->
- {{ if .Params.comments }}
- {{- partial "single-partials/comments.html" . -}}
- {{ end }}
- </div>
- {{- partial "_shared/alertbar.html" . -}}
- {{ end }}
- {{ define "footer"}}
- {{- partial "_shared/jumbotron.html" . -}}
- {{- partial "_shared/footer.html" . -}}
- {{ end }}
|