Initial Release
This commit is contained in:
49
layouts/blog/list.html
Normal file
49
layouts/blog/list.html
Normal file
@@ -0,0 +1,49 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<section class="site-blog-header">
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-lg-8 text-center">
|
||||
<h1>{{ .Title }}</h1>
|
||||
<p>
|
||||
{{ .Params.description }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="site-blog">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
{{ range (.Paginator 4).Pages }}
|
||||
<div class="col-lg-6">
|
||||
<article class="site-blog-post">
|
||||
{{ with .Params.image }}
|
||||
<div class="site-blog-post-thumb">
|
||||
<img src="{{ . | absURL }}" alt="post-thumb">
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="site-blog-post-content">
|
||||
<span>{{ .PublishDate.Format "January 2, 2006" }}</span>
|
||||
<h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
|
||||
<p>
|
||||
{{ .Summary }} ...
|
||||
</p>
|
||||
<a href="{{ .Permalink }}" class="read-more">read more</a>
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="col-12">
|
||||
<div class="site-blog-pagination">
|
||||
{{ template "_internal/pagination.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{ partial "call-to-action.html" . }}
|
||||
|
||||
{{ end }}
|
||||
20
layouts/blog/single.html
Normal file
20
layouts/blog/single.html
Normal file
@@ -0,0 +1,20 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<section class="site-blog details">
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-lg-8">
|
||||
<article class="site-blog-details">
|
||||
<p><span>{{ .PublishDate.Format "January 2, 2006" }}</span> by <span>{{ .Params.author }}</span></p>
|
||||
<h2 class="blog-title">{{ .Title }}</h2>
|
||||
<img class="feature-image" src="{{ .Params.feature_image | absURL }}" alt="blog-feature-image">
|
||||
{{ .Content }}
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{ partial "call-to-action.html" . }}
|
||||
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user