mirror of
https://github.com/Aroy-Art/Rinkusu.git
synced 2024-12-27 22:14:22 +01:00
Add: site static partial
This commit is contained in:
parent
8edb21d178
commit
48a2f0f987
1 changed files with 39 additions and 0 deletions
39
layouts/partials/site_statics.html
Normal file
39
layouts/partials/site_statics.html
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
{{ $data := index site.Data.siteStatics.siteStatics }}
|
||||||
|
|
||||||
|
{{ if $data.enable }}
|
||||||
|
|
||||||
|
{{"<!-- Site Statics Section -->" | safeHTML}}
|
||||||
|
<section class="section bg-two">
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<div class="title text-center wow fadeInDown">
|
||||||
|
<h1 class="">{{ $data.title }}</h1>
|
||||||
|
<p>{{ $data }}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-12 text-center">
|
||||||
|
<table>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>Last build date:</td>
|
||||||
|
<td>{{ now.Format "2006-01-02"}}</td>
|
||||||
|
</tr>
|
||||||
|
{{ if data }}
|
||||||
|
|
||||||
|
{{ end }}
|
||||||
|
<tr>
|
||||||
|
<td>Number of pages:</td>
|
||||||
|
<td>{{ len .Site.RegularPages }}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
{{"<!-- /Site Statics Section -->" | safeHTML}}
|
||||||
|
|
||||||
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue