mirror of
https://github.com/Aroy-Art/Rinkusu.git
synced 2024-12-27 22:54:22 +01:00
Added Blog Section
This commit is contained in:
parent
9f25cd76c9
commit
03724f98e1
1 changed files with 27 additions and 0 deletions
27
layouts/partials/blog.html
Normal file
27
layouts/partials/blog.html
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
{{ if gt site.RegularPages 0}}
|
||||||
|
{{"<!-- Blog Section -->" | safeHTML}}
|
||||||
|
<section id="blog" class="section">
|
||||||
|
<div class="container">
|
||||||
|
<div class="row justify-content-center">
|
||||||
|
<div class="col-lg-12">
|
||||||
|
{{"<!-- Start 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-BioTech"></div>
|
||||||
|
</div>
|
||||||
|
{{"<!-- End Section Title -->" | safeHTML}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{ range first 3 (where site.RegularPages "Section" "==" "blog")}}
|
||||||
|
{{ .Render "article"}}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<div class="all-post text-center col-lg-12">
|
||||||
|
<a class="btn btn-main" href="{{ `blog` | absLangURL }}">{{ "view All Post" }}</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
{{"<!-- /Blog Section -->" | safeHTML}}
|
||||||
|
{{ end }}
|
Loading…
Reference in a new issue