Initial commit
This commit is contained in:
commit
a82a9bf4c8
65 changed files with 18450 additions and 0 deletions
28
layouts/_default/baseof.html
Normal file
28
layouts/_default/baseof.html
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
{{ partial "head.html" . }}
|
||||
<body>
|
||||
{{ partial "nav.html" . }}
|
||||
<!-- Page Header -->
|
||||
{{ block "header" .}}
|
||||
<header class="intro-header" style="background-image: url('{{ .Site.Params.header_image | relURL }}'); background-size: auto;">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-xl-8 offset-xl-2 col-lg-10 offset-lg-1 ">
|
||||
<div class="site-heading">
|
||||
<h1 class="display-1">{{ .Site.Title}} </h1>
|
||||
<!--<hr class="small">-->
|
||||
<span class="h5">{{ .Site.Params.slogan }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
{{ end }}
|
||||
|
||||
{{ block "main" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
</body>
|
||||
</html>
|
||||
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 }}
|
||||
122
layouts/_default/single.html
Normal file
122
layouts/_default/single.html
Normal file
|
|
@ -0,0 +1,122 @@
|
|||
{{ define "header" }}
|
||||
<!-- Post Header -->
|
||||
<style type="text/css">
|
||||
header.intro-header {
|
||||
background-image: url('{{ if .Params.image }}{{ .Params.image | relURL }}{{ else }}{{ .Site.Params.header_image | relURL}}{{ end }}')
|
||||
}
|
||||
</style>
|
||||
<header class="intro-header">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-xl-8 offset-xl-2 col-lg-10 offset-lg-1">
|
||||
<div class="post-heading">
|
||||
<div class="tags">
|
||||
{{ range .Params.tags }}
|
||||
<a class="tag" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}" title="{{ . }}">
|
||||
{{ . }}
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
<h1 class="py-2">{{ .Title }}</h1>
|
||||
<h2 class="subheading py-2 h4">{{ .Params.subtitle }}</h2>
|
||||
<span class="meta">
|
||||
Par
|
||||
{{ if .Params.author }}
|
||||
{{ .Params.author }}
|
||||
{{ else }}
|
||||
{{ .Site.Title }}
|
||||
{{ end }}
|
||||
le
|
||||
{{ .Date.Format "2 Jan 2006" }}
|
||||
{{ if .Site.Params.page_view_conter }}
|
||||
{{ partial "page_view_counter.html" . }}
|
||||
{{ end }}
|
||||
<!-- Don't show "Last Modified on" if update happened on the same day. -->
|
||||
{{ if (and (not .Lastmod.IsZero) (not (eq (dateFormat "2006-01-02" .Lastmod) (dateFormat "2006-01-02" .Date)))) }}
|
||||
<br>Last Modified on {{ dateFormat "Monday, January 2, 2006" .Params.LastMod }}
|
||||
{{ end }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
{{ end }}
|
||||
|
||||
{{ 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">
|
||||
|
||||
{{ if not (eq (.Param "showtoc") false) }}
|
||||
<header>
|
||||
<h2>Sommaire</h2>
|
||||
</header>
|
||||
{{.TableOfContents}}
|
||||
{{ end }}
|
||||
{{ .Content }}
|
||||
|
||||
<hr>
|
||||
<div style="clear: both">
|
||||
{{ if .PrevInSection }}
|
||||
<a class="btn btn-outline-primary float-left" href="{{ .PrevInSection.URL }}" data-toggle="tooltip" data-placement="top" title="{{ .PrevInSection.Title }}">←
|
||||
Article précédent
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ if .NextInSection }}
|
||||
<a class="btn btn-outline-primary float-right" href="{{ .NextInSection.URL }}" data-toggle="tooltip" data-placement="top" title="{{ .NextInSection.Title}}">
|
||||
Article suivant →
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- Sidebar Container -->
|
||||
<div class="
|
||||
col-xl-11 offset-xl-1
|
||||
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/" class="text-sc">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