first commit
This commit is contained in:
13
themes/meghna-hugo/layouts/_default/article.html
Normal file
13
themes/meghna-hugo/layouts/_default/article.html
Normal file
@ -0,0 +1,13 @@
|
||||
<article class="col-lg-4 col-md-6 col-12 clearfix wow fadeInUp mb-4" data-wow-duration="500ms">
|
||||
<div class="post-block">
|
||||
<div class="media-wrapper">
|
||||
<img class="img-fluid lozad" data-src="{{ .Params.Image_webp | absURL }}" onerror="this.onerror=null;this.src='{{ .Params.image | absURL }}'">
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
|
||||
<p>{{ .Summary }}</p>
|
||||
<a class="btn btn-transparent" href="{{ .Permalink }}">{{ i18n "readMore" }}</a>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
13
themes/meghna-hugo/layouts/_default/baseof.html
Normal file
13
themes/meghna-hugo/layouts/_default/baseof.html
Normal file
@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ with site.LanguageCode }}{{ . }}{{ else }}en-us{{ end }}">
|
||||
{{ partial "head.html" . }}
|
||||
|
||||
<body id="body" data-spy="scroll" data-target=".navbar" data-offset="55">
|
||||
<div id="content">
|
||||
{{ partial "preloader.html" . }}
|
||||
{{- block "main" . }}{{- end }}
|
||||
</div>
|
||||
{{- partial "footer.html" . -}}
|
||||
</body>
|
||||
|
||||
</html>
|
30
themes/meghna-hugo/layouts/_default/list.html
Normal file
30
themes/meghna-hugo/layouts/_default/list.html
Normal file
@ -0,0 +1,30 @@
|
||||
{{ define "main" }}
|
||||
|
||||
{{ partial "navigation.html" . }}
|
||||
|
||||
{{"<!-- Start Blog Section -->" | safeHTML}}
|
||||
<section id="blog" class="section">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
{{"<!-- section title -->" | safeHTML}}
|
||||
<div class="title text-center wow fadeInDown">
|
||||
<h2>{{ with i18n "blogTitle" }} {{ index (split . " ") 0 | safeHTML }} {{ end }}<span class="color">
|
||||
{{ with i18n "blogTitle" }} {{ index (split . " ") 1 | safeHTML }} {{ end }}</span></h2>
|
||||
<div class="border-meghna"></div>
|
||||
</div>
|
||||
</div>
|
||||
{{"<!-- /section title -->" | safeHTML}}
|
||||
{{ $paginator := .Paginate .Data.Pages }}
|
||||
{{ range $paginator.Pages }}
|
||||
{{ .Render "article" }}
|
||||
{{ end }}
|
||||
<div class="col-12">
|
||||
{{ template "_internal/pagination.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{"<!-- /blog -->" | safeHTML}}
|
||||
|
||||
{{ end }}
|
32
themes/meghna-hugo/layouts/_default/single.html
Normal file
32
themes/meghna-hugo/layouts/_default/single.html
Normal file
@ -0,0 +1,32 @@
|
||||
{{ define "main" }}
|
||||
|
||||
{{ partial "navigation.html" . }}
|
||||
|
||||
<section class="section">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-8 offset-lg-2 text-center">
|
||||
<h1>{{ .Title }}</h1>
|
||||
<ul class="list-inline mb-50">
|
||||
<li class="list-inline-item"><a href="{{ `author/` | relLangURL }}{{ .Params.Author | urlize }}/">{{ .Params.Author }}</a></li>
|
||||
<li class="list-inline-item">{{ dateFormat "Monday, Jan 2, 2006" .Date }}</li>
|
||||
</ul>
|
||||
<img class="img-fluid mb-50 lozad" data-src="{{ .Params.Image | absURL }}" alt="blog-image">
|
||||
</div>
|
||||
<div class="col-lg-8 offset-lg-2">
|
||||
<div class="post-single-content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
{{ if site.Params.post_share }}
|
||||
{{ partial "post-share.html" . }}
|
||||
{{ end }}
|
||||
<!-- comments -->
|
||||
<div class="mt-5">
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{ end }}
|
Reference in New Issue
Block a user