Initial commit
This commit is contained in:
commit
a82a9bf4c8
65 changed files with 18450 additions and 0 deletions
56
layouts/_default/section.html
Normal file
56
layouts/_default/section.html
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
{{ define "main" }}
|
||||
<!-- Post Content -->
|
||||
<article>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<!-- Post Container -->
|
||||
<div class="
|
||||
col-xl-8 offset-xl-2
|
||||
col-lg-10 offset-lg-1
|
||||
post-container">
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
</div>
|
||||
<!-- Sidebar Container -->
|
||||
<div class="
|
||||
col-xl-8 offset-xl-2
|
||||
col-lg-10 offset-lg-1
|
||||
sidebar-container">
|
||||
|
||||
<!-- Featured Tags -->
|
||||
{{ if .Site.Params.featured_tags }}
|
||||
<section>
|
||||
<hr class="hidden-sm hidden-xs">
|
||||
<h5><a href="/tags/">FEATURED TAGS</a></h5>
|
||||
<div class="tags">
|
||||
{{ $featured_condition_size := .Site.Params.featured_condition_size }}
|
||||
{{ range $name, $taxonomy := .Site.Taxonomies.tags }}
|
||||
{{ if gt (len $taxonomy.Pages) $featured_condition_size }}
|
||||
<a href="{{ "/tags/" | relLangURL }}{{ $name | urlize }}" title="{{ $name }}">
|
||||
{{ $name }}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
<!-- Friends Blog -->
|
||||
{{ if .Site.Params.friends }}
|
||||
<section>
|
||||
<hr>
|
||||
<h5>FRIENDS</h5>
|
||||
<ul class="list-inline">
|
||||
{{ range .Site.Params.friend_link }}
|
||||
<li><a target="_blank" href="{{.href}}">{{.title}}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</section>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue