1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

First pass at new site template

This commit is contained in:
Chris Cummer
2018-08-03 05:03:26 -07:00
committed by Chris Cummer
parent 215c7e571f
commit d872a28cf7
392 changed files with 41395 additions and 222 deletions

View File

@@ -0,0 +1,39 @@
<!DOCTYPE html>
<html>
<head>
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
{{if .Site.Params.themeStyle}}
{{ partial (printf "%s/head.html" .Site.Params.themeStyle) . }}
{{else}}
{{ partial "flex/head.html" . }}
{{end}}
</head>
<body data-url="{{ .RelPermalink }}">
{{if .Site.Params.themeStyle}}
{{ partial (printf "%s/body-beforecontent.html" .Site.Params.themeStyle) . }}
{{else}}
{{ partial "flex/body-beforecontent.html" . }}
{{end}}
<h1>{{T "title-404"}}</h1>
<p>
</p>
<p>{{T "message-404"}}</p>
<p></p>
<p><a href="{{.Site.BaseURL}}">{{T "Go-to-homepage"}}</a></p>
<p><img src="{{"images/gopher-404.jpg" | relURL}}" style="width:50%"></img></p>
{{if .Site.Params.themeStyle}}
{{ partial (printf "%s/body-aftercontent.html" .Site.Params.themeStyle) . }}
{{else}}
{{ partial "flex/body-aftercontent.html" . }}
{{ end }}
{{ block "footer" . }}
{{ end }}
{{ partial "custom-footer.html" . }}
</body>
</html>

View File

@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html>
<head>
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
{{if .Site.Params.themeStyle}}
{{ partial (printf "%s/head.html" .Site.Params.themeStyle) . }}
{{else}}
{{ partial "flex/head.html" . }}
{{end}}
</head>
<body data-url="{{ .RelPermalink }}">
{{if .Site.Params.themeStyle}}
{{ partial (printf "%s/body-beforecontent.html" .Site.Params.themeStyle) . }}
{{else}}
{{ partial "flex/body-beforecontent.html" . }}
{{end}}
{{ block "main" . }}
{{ end }}
{{if .Site.Params.themeStyle}}
{{ partial (printf "%s/body-aftercontent.html" .Site.Params.themeStyle) . }}
{{else}}
{{ partial "flex/body-aftercontent.html" . }}
{{ end }}
{{ block "footer" . }}
{{ end }}
{{ partial "custom-footer.html" . }}
</body>
</html>

View File

@@ -0,0 +1,22 @@
<article class="post {{ .Section }}">
<header class="post-header">
<h2 class="post-title"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
</header>
<section class="post-excerpt">
<p>{{ .Summary }} <a class="read-more" href="{{.RelPermalink}}">&raquo;</a></p>
</section>
<footer class=" footline" >
{{with .Params.LastModifierDisplayName}}
<i class='fa fa-user'></i> <a href="mailto:{{ $.Params.LastModifierEmail }}">{{ . }}</a> {{with $.Date}} <i class='fa fa-calendar'></i> {{ .Format "02/01/2006" }}{{end}}
{{end}}
{{if .Params.tags }}
{{ range $index, $tag := .Params.tags }}
<a class="label label-default" href="{{$.Site.BaseURL}}tags/{{ $tag | urlize }}/">{{ $tag }}</a>
{{ end }}
{{end}}
</footer>
</article>

View File

@@ -0,0 +1,20 @@
{{ define "main" }}
{{if .Content}}
{{ .Content }}
{{else }}
{{ $paginator := .Paginator }}
<div class="extra-pagination inner">
{{ partial "pagination.html" $paginator }}
</div>
{{ range $index, $page := $paginator.Pages }}
{{ .Render "li" }}
{{ end }}
<div style="margin-bottom:2rem"></div>
{{ partial "pagination.html" $paginator }}
{{end}}
{{end}}

View File

@@ -0,0 +1,3 @@
{{ define "main" }}
{{ .Content }}
{{ end }}

View File

@@ -0,0 +1,30 @@
{{ define "main" }}
<span id="sidebar-toggle-span">
<a href="#" id="sidebar-toggle" data-sidebar-toggle=""><i class="fa fa-bars"></i> navigation</a>
</span>
{{if .Site.Home.Content }}
{{.Site.Home.Content}}
{{else}}
{{if eq .Site.Language.Lang "fr"}}
<h1>Personaliser la page d'accueil</h1>
<p>
Le site fonctionne. Ne pas oublier de personaliser cette page avec votre propre contenu. 2 façons de faire :
</p>
<ul>
<li><b>1. </b> Créer un fichier _index.md dans le dossier content</li>
<li><b>2. </b> Configurer le serveur http pour rediriger automatiquement la homepage vers la page de votre choix dans le site</li>
</ul>
{{else}}
<h1>Customize your own home page</h1>
<p>
The site is working. Don't forget to customize this homepage with your own. You typically have 2 choices :
</p>
<ul>
<li><b>1. </b> Create an _index.md document in the content folder</li>
<li><b>2. </b> Configure your server to automatically redirect this home page to one of your documentation pages</li>
</ul>
{{end}}
<p><i class="fa fa-heart fa-4x"></i></p>
{{ end }}
{{ end }}

View File

@@ -0,0 +1,12 @@
[{{ range $index, $page := .Site.Pages }}
{{- if ne $page.Type "json" -}}
{{- if and $index (gt $index 0) -}},{{- end }}
{
"uri": "{{ $page.Permalink }}",
"title": "{{ htmlEscape $page.Title}}",
"tags": [{{ range $tindex, $tag := $page.Params.tags }}{{ if $tindex }}, {{ end }}"{{ $tag| htmlEscape }}"{{ end }}],
"description": "{{ htmlEscape .Description}}",
"content": {{$page.Plain | jsonify}}
}
{{- end -}}
{{- end -}}]

View File

@@ -0,0 +1,8 @@
{{define "breadcrumb"}}
{{ if .page.Parent}}
{{$value := (printf "<a href='%s'>%s</a> > %s" .page.Parent.URL .page.Parent.Title .value)}}
{{ template "breadcrumb" dict "page" .page.Parent "value" $value }}
{{else}}
{{.value|safeHTML}}
{{end}}
{{end}}

View File

@@ -0,0 +1,6 @@
<footer class=" footline" >
{{with .Params.LastModifierDisplayName}}
<i class='fa fa-user'></i> <a href="mailto:{{ $.Params.LastModifierEmail }}">{{ . }}</a> {{with $.Date}} <i class='fa fa-calendar'></i> {{ .Format "02/01/2006" }}{{end}}
</div>
{{end}}
</footer>

View File

@@ -0,0 +1,4 @@
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}">
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
<link rel="stylesheet" href="/css/custom.css">

View File

@@ -0,0 +1,54 @@
<div class="chevrons">
{{ partial "next-prev-page.html" . }}
</div>
</section>
</article>
<footer>
<div class="footline">
{{if .Params.tags }}
<div class="tags">
{{ range $index, $tag := .Params.tags }}
<a class="label label-default" href="{{$.Site.BaseURL}}tags/{{ $tag | urlize }}">{{ $tag }}</a>
{{ end }}
</div>
{{end}}
{{with .Params.LastModifierDisplayName}}
<div class="author">
<i class='fa fa-user'></i> <a href="mailto:{{ $.Params.LastModifierEmail }}">{{ . }}</a>
</div>
{{end}}
{{ if not .Page.Lastmod.IsZero }}
<div class="date">
<i class='fa fa-calendar'></i> {{T "last-update-on"}} {{ .Page.Lastmod.Format "02/01/2006" }}
</div>
{{end}}
<div class="github-link">
<a href="{{ .Site.Params.editURL }}{{ replace .File.Dir "\\" "/" }}{{ .File.LogicalName }}" target="blank"><i class="fa fa-code-fork"></i>
{{T "Edit-this-page"}}</a>
</div>
</div>
<div>
{{ $footer := print "_footer." .Lang }}
{{ range where .Site.Pages "Source.BaseFileName" $footer }}
{{ .Content }}
{{else}}
{{ if .Site.GetPage "page" "_footer.md" }}
{{(.Site.GetPage "page" "_footer.md").Content}}
{{else}}
{{ T "create-footer-md" }}
{{end}}
{{end}}
</div>
</footer>
{{ partial "flex/scripts.html" . }}

View File

@@ -0,0 +1,68 @@
<header>
<div class="logo">
{{ partial "header.html" . }}
</div>
<div class="burger"><a href="javascript:void(0);" style="font-size:15px;">&#9776;</a></div>
{{- with .Site.Menus.shortcuts}}
<nav class="shortcuts">
{{- range sort . "Weight"}}
<li class="" role="">
<a href="{{.URL}}" {{if eq $.Site.Params.menushortcutsnewtab true}}target="_blank"{{end}} rel="noopener">
{{safeHTML .Name}}
</a>
</li>
{{- end}}
</nav>
{{- end}}
</header>
<article>
<aside>
<ul class="menu">
{{- if not .Site.Params.disableHomeIcon}}
<li data-nav-id="{{"/" | relLangURL}}" class="dd-item">
<a href="{{"/" | relLangURL}}">
<i class="fa fa-fw fa-home"></i>
</a>
</li>
{{- end}}
{{- partial "menu.html" . }}
</ul>
{{- partial "language-selector.html" . }}
<section>
{{- partial "menu-footer.html" . }}
</section>
</aside>
<section class="page">
<div class="nav-select">
<center>Navigation :
<select onchange="javascript:location.href = this.value;">
{{partial "flex/selectnavigation.html" .}}
</select>
</center>
</div>
{{- if not .Site.Params.disableSearch}}
<div>
<div class="searchbox">
<input data-search-input id="search-by" type="text" placeholder="{{T "Search-placeholder"}}">
</div>
<script type="text/javascript" src="{{"js/lunr.min.js" | relURL}}"></script>
<script type="text/javascript" src="{{"js/auto-complete.js" | relURL}}"></script>
<link href="{{"css/auto-complete.css" | relURL}}" rel="stylesheet">
<script type="text/javascript">
{{ if .Site.IsMultiLingual }}
var baseurl = "{{.Site.BaseURL}}{{.Site.LanguagePrefix}}";
{{ else }}
var baseurl = "{{.Site.BaseURL}}";
{{ end }}
</script>
<script type="text/javascript" src="{{"js/search.js" | relURL}}"></script>
</div>
{{- end}}
{{if not .IsHome}}<h1>{{.Title}}</h1>{{end}}

View File

@@ -0,0 +1,17 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
{{ .Hugo.Generator }}
<title>{{ .Title }} :: {{ .Site.Title }}</title>
<link rel="shortcut icon" href="{{"images/favicon.png" | relURL}}" type="image/x-icon" />
<link href="{{"css/font-awesome.min.css" | relURL}}" rel="stylesheet">
<link href="{{"css/nucleus.css" | relURL}}" rel="stylesheet">
<link href="{{(printf "theme-%s/style.css" (.Site.Params.themeStyle| default "flex") ) | relURL}}" rel="stylesheet">
{{with .Site.Params.themeVariant}}
<link href="{{(printf "theme-%s/variant-%s.css" ($.Site.Params.themeStyle| default "flex") .) | relURL}}" rel="stylesheet">
{{end}}
<link rel="stylesheet" href="{{"css/bootstrap.min.css" | relURL}}">
<script src="{{"js/jquery-2.x.min.js" | relURL}}"></script>
<script type="text/javascript">
var baseurl = "{{.Site.BaseURL}}";
</script>
{{ partial "custom-head.html" . }}

View File

@@ -0,0 +1,11 @@
<script src="{{"js/clipboard.min.js" | relURL}}"></script>
<link href="{{"css/featherlight.min.css" | relURL}}" rel="stylesheet">
<script src="{{"js/featherlight.min.js" | relURL}}"></script>
{{if eq .Site.Params.highlightClientSide true}}
<script src="{{"js/highlight.pack.js" | relURL}}"></script>
<script>hljs.initHighlightingOnLoad();</script>
{{end}}
<script src="{{(printf "theme-%s/script.js" (.Site.Params.themeStyle| default "flex")) | relURL}}"></script>

View File

@@ -0,0 +1,58 @@
{{- $currentNode := . }}
{{- if eq .Site.Params.ordersectionsby "title"}}
{{- range .Site.Home.Sections.ByTitle}}
{{- template "menu-nav" dict "sect" . "currentnode" $currentNode "level" 1}}
{{- end}}
{{- else}}
{{- range .Site.Home.Sections.ByWeight}}
{{- template "menu-nav" dict "sect" . "currentnode" $currentNode "level" 1}}
{{- end}}
{{- end}}
<!-- templates -->
{{- define "menu-nav" }}
{{- $currentNode := .currentnode }}
{{- $level := .level }}
{{- with .sect}}
{{- if .IsSection}}
<option value="{{ .RelPermalink}}" {{if eq .URL $currentNode.URL}} selected{{end}}>
{{if gt $level 1 }}
{{- range after 1 (seq $level)}}-{{ end }}
{{end}} {{.Title}}</option>
{{- if or (.IsAncestor $currentNode) (.Params.alwaysopen) }} <!-- dig into sub levels only if active or menu is always ON-->
{{- $numberOfPages := (add (len .Pages) (len .Sections)) }}
{{- if ne $numberOfPages 0 }}
{{- .Scratch.Set "pages" .Pages }}
{{- if .Sections}}
{{- .Scratch.Set "pages" (.Pages | union .Sections) }}
{{- end}}
{{- $pages := (.Scratch.Get "pages") }}
{{- if eq .Site.Params.ordersectionsby "title"}}
{{- range $pages.ByTitle }}
{{- if and .Params.hidden (not $.showhidden) }}
{{- else}}
{{- template "menu-nav" dict "sect" . "currentnode" $currentNode }}
{{- end}}
{{- end}}
{{- else}}
{{- range $pages.ByWeight }}
{{- if and .Params.hidden (not $.showhidden) }}
{{- else}}
{{- template "menu-nav" dict "sect" . "currentnode" $currentNode "level" (add $level 1) }}
{{- end}}
{{- end}}
{{- end}}
{{- end}}
{{end}}
{{- else}}
{{- if not .Params.Hidden }}
<option value="{{ .RelPermalink}}" {{if eq .URL $currentNode.URL}} selected{{end}}>
{{- range after 1 (seq $level)}}-{{ end }} {{.Title}}</option>
{{- end}}
{{- end}}
{{- end}}
{{- end}}

View File

@@ -0,0 +1,10 @@
{{ $header := print "_header." .Lang }}
{{ range where .Site.Pages "Source.BaseFileName" $header }}
{{ .Content }}
{{else}}
{{ if .Site.GetPage "page" "_header.md" }}
{{(.Site.GetPage "page" "_header.md").Content}}
{{else}}
<a class="baselink" href="{{.Site.BaseURL}}">{{.Site.Title}}</a>
{{end}}
{{end}}

View File

@@ -0,0 +1,18 @@
{{- if and .Site.IsMultiLingual (not .Site.Params.DisableLanguageSwitchingButton)}}
<select id="select-language" onchange="location = this.value;">
{{ $siteLanguages := .Site.Languages}}
{{ $pageLang := .Page.Lang}}
{{ range .Page.AllTranslations }}
{{ $translation := .}}
{{ range $siteLanguages }}
{{ if eq $translation.Lang .Lang }}
{{ if eq $pageLang .Lang}}
<option id="{{ $translation.Language }}" value="{{ $translation.URL }}" selected>{{ .LanguageName }}</option>
{{ else }}
<option id="{{ $translation.Language }}" value="{{ $translation.URL }}">{{ .LanguageName }}</option>
{{ end }}
{{ end }}
{{ end }}
{{ end }}
</select>
{{- end }}

View File

@@ -0,0 +1,82 @@
{{- $currentNode := . }}
{{- $showvisitedlinks := .Site.Params.showVisitedLinks -}}
{{- if eq .Site.Params.ordersectionsby "title"}}
{{- range .Site.Home.Sections.ByTitle}}
{{- template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks}}
{{- end}}
{{- else}}
{{- range .Site.Home.Sections.ByWeight}}
{{- template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks}}
{{- end}}
{{- end}}
<!-- templates -->
{{- define "section-tree-nav" }}
{{- $showvisitedlinks := .showvisitedlinks }}
{{- $currentNode := .currentnode }}
{{- with .sect}}
{{- if and .IsSection (or (not .Params.hidden) $.showhidden)}}
{{- $numberOfPages := (add (len .Pages) (len .Sections)) }}
{{- safeHTML .Params.head}}
<li data-nav-id="{{.URL}}" class="dd-item
{{- if .IsAncestor $currentNode}} parent{{end}}
{{- if eq .URL $currentNode.URL}} active{{end}}
{{- if .Params.alwaysopen}} alwaysopen{{end -}}
{{- if ne $numberOfPages 0 }} haschildren{{end}}
">
<div>
<a href="{{ .RelPermalink}}">{{safeHTML .Params.Pre}}{{.Title}}{{safeHTML .Params.Post}}</a>
{{- if ne $numberOfPages 0 }}
{{- if or (.IsAncestor $currentNode) (.Params.alwaysopen) }}
<i class="fa fa-angle-down fa-lg category-icon"></i>
{{- else -}}
<i class="fa fa-angle-right fa-lg category-icon"></i>
{{- end}}
{{- end}}
{{- if $showvisitedlinks}}<i class="fa fa-circle-thin read-icon"></i>{{end}}
</div>
{{- if ne $numberOfPages 0 }}
<ul>
{{- .Scratch.Set "pages" .Pages }}
{{- if .Sections}}
{{- .Scratch.Set "pages" (.Pages | union .Sections) }}
{{- end}}
{{- $pages := (.Scratch.Get "pages") }}
{{- if eq .Site.Params.ordersectionsby "title"}}
{{- range $pages.ByTitle }}
{{- if and .Params.hidden (not $.showhidden) }}
{{- else}}
{{- template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks }}
{{- end}}
{{- end}}
{{- else}}
{{- range $pages.ByWeight }}
{{- if and .Params.hidden (not $.showhidden) }}
{{- else}}
{{- template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks }}
{{- end}}
{{- end}}
{{- end}}
</ul>
{{- end}}
</li>
{{- else}}
{{- if not .Params.Hidden }}
<li data-nav-id="{{.URL}}" class="dd-item
{{- if eq .URL $currentNode.URL}} active{{end -}}
">
<div>
<a href="{{ .RelPermalink}}">
{{safeHTML .Params.Pre}}{{.LinkTitle}}{{safeHTML .Params.Post}}
</a>
{{- if $showvisitedlinks}}<i class="fa fa-circle-thin read-icon"></i>{{end}}
</div>
</li>
{{- end}}
{{- end}}
{{- end}}
{{- end}}

View File

@@ -0,0 +1,44 @@
<div id="navigation">
<!-- Next prev page -->
{{- $currentNode := . -}}
{{- template "menu-nextprev" dict "menu" .Site.Home "currentnode" $currentNode -}}
{{- define "menu-nextprev" -}}
{{- $currentNode := .currentnode -}}
{{- if ne .menu.Params.hidden true -}}
{{- if hasPrefix $currentNode.URL .menu.URL -}}
{{- $currentNode.Scratch.Set "NextPageOK" "OK" -}}
{{- $currentNode.Scratch.Set "prevPage" ($currentNode.Scratch.Get "prevPageTmp") -}}
{{- else -}}
{{- if eq ($currentNode.Scratch.Get "NextPageOK") "OK" -}}
{{- $currentNode.Scratch.Set "NextPageOK" nil -}}
{{- $currentNode.Scratch.Set "nextPage" .menu -}}
{{- end -}}
{{- end -}}
{{- $currentNode.Scratch.Set "prevPageTmp" .menu -}}
{{- $currentNode.Scratch.Set "pages" .menu.Pages -}}
{{- if .menu.IsHome -}}
{{- $currentNode.Scratch.Set "pages" .menu.Sections -}}
{{- else if .menu.Sections -}}
{{- $currentNode.Scratch.Set "pages" (.menu.Pages | union .menu.Sections) -}}
{{- end -}}
{{- $pages := ($currentNode.Scratch.Get "pages") -}}
{{- range $pages.ByWeight -}}
{{- template "menu-nextprev" dict "menu" . "currentnode" $currentNode -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- if not $.Site.Params.disableNavChevron -}}
{{- with ($.Scratch.Get "prevPage") -}}
<a class="nav nav-prev" href="{{.URL}}" title="{{.Title}}"> <i class="fa fa-chevron-left"></i><label>{{.Title}}</label></a>
{{ end -}}
{{- with ($.Scratch.Get "nextPage") -}}
<a class="nav nav-next" href="{{.URL}}" title="{{.Title}}" style="margin-right: 0px;"><label>{{.Title}}</label><i class="fa fa-chevron-right"></i></a>
{{- end }}
{{- end -}}
</div>

View File

@@ -0,0 +1,13 @@
{{ partial "custom-content-footer.html" . }}
</div>
</div>
{{ partial "next-prev-page.html" . }}
</section>
<div style="left: -1000px; overflow: scroll; position: absolute; top: -1000px; border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;">
<div style="border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;"></div>
</div>
{{ partial "original/scripts.html" . }}

View File

@@ -0,0 +1,128 @@
<div id="headermain"></div>
<nav id="sidebar" class="{{if $.Site.Params.showVisitedLinks }}showVisitedLinks{{end}}">
<div class="highlightable">
<div id="header-wrapper">
<div id="header">
{{ partial "header.html" . }}
</div>
{{- if not .Site.Params.disableSearch}}
<div class="searchbox">
<label for="search-by"><i class="fa fa-search"></i></label>
<input data-search-input id="search-by" type="text" placeholder="{{T "Search-placeholder"}}">
<span data-search-clear=""><i class="fa fa-close"></i></span>
</div>
<script type="text/javascript" src="{{"js/lunr.min.js" | relURL}}"></script>
<script type="text/javascript" src="{{"js/auto-complete.js" | relURL}}"></script>
<script type="text/javascript">
{{ if .Site.IsMultiLingual }}
var baseurl = "{{.Site.BaseURL}}{{.Site.LanguagePrefix}}";
{{ else }}
var baseurl = "{{.Site.BaseURL}}";
{{ end }}
</script>
<script type="text/javascript" src="{{"js/search.js" | relURL}}"></script>
{{- end}}
</div>
<ul class="topics">
{{- if not .Site.Params.disableHomeIcon}}
<li data-nav-id="{{"/" | relLangURL}}" class="dd-item">
<a href="{{"/" | relLangURL}}"><i class="fa fa-fw fa-home"></i></a>
</li>
{{- end}}
{{- partial "menu.html" . }}
{{- with .Site.Menus.shortcuts}}
<section id="shortcuts">
{{- range sort . "Weight"}}
<li class="" role="">
{{- .Pre -}}
<a href="{{.URL}}" target="_blank" rel="noopener">{{safeHTML .Name}}</a>
{{- .Post -}}
</li>
{{- end}}
</section>
{{- if $.Site.Params.showVisitedLinks}}
<a id="clear-history" class="" href="#" data-clear-history-toggle=""><i class="fa fa-history"></i> {{T "Clear-History"}}</a>
{{- end}}
{{- end}}
<hr />
<li>{{- partial "language-selector.html" . }}</li>
</ul>
<section id="footer">
{{- partial "menu-footer.html" . }}
</section>
</div>
</nav>
<section id="body">
<div id="overlay"></div>
<div class="padding highlightable">
{{if not .IsHome}}
<div id="top-bar">
{{ if and (or .IsPage .IsSection) .Site.Params.editURL }}
{{ $File := .File }}
{{ $Site := .Site }}
{{with $File.Path }}
<div id="top-github-link">
<a class="github-link" href="{{ $Site.Params.editURL }}{{ replace $File.Dir "\\" "/" }}{{ $File.LogicalName }}" target="blank">
<i class="fa fa-code-fork"></i>
{{T "Edit-this-page"}}
</a>
</div>
{{- end }}
{{- end -}}
<div id="breadcrumbs" itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb">
<span id="sidebar-toggle-span">
<a href="#" id="sidebar-toggle" data-sidebar-toggle="">
<i class="fa fa-bars"></i>
</a>
</span>
<span id="toc-menu"><i class="fa fa-list-alt"></i></span>
<span class="links">
{{ template "breadcrumb" dict "page" . "value" .Title }}
</span>
</div>
<!-- TOC -->
<div class="progress">
<div class="wrapper">
{{ .TableOfContents }}
</div>
</div>
<!-- /TOC -->
</div>
{{end}}
{{if .Params.tags }}
<div id="tags">
{{ range $index, $tag := .Params.tags }}
<a class="label label-default" href="{{$.Site.BaseURL}}tags/{{ $tag | urlize }}">{{ $tag }}</a>
{{ end }}
</div>
{{end}}
<div id="body-inner">
{{if not .IsHome}}
<h1>{{.Title}}</h1>
{{end}}
{{define "breadcrumb"}}
{{ if .page.Parent}}
{{$value := (printf "<a href='%s'>%s</a> > %s" .page.Parent.URL .page.Parent.Title .value)}}
{{ template "breadcrumb" dict "page" .page.Parent "value" $value }}
{{else}}
{{.value|safeHTML}}
{{end}}
{{end}}

View File

@@ -0,0 +1,23 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
{{ .Hugo.Generator }}
<title>{{ .Title }} :: {{ .Site.Title }}</title>
<link rel="shortcut icon" href="{{"images/favicon.png" | relURL}}" type="image/x-icon" />
<link href="{{"css/nucleus.css" | relURL}}" rel="stylesheet">
<link href="{{"css/font-awesome.min.css" | relURL}}" rel="stylesheet">
<link href="{{"css/hybrid.css" | relURL}}" rel="stylesheet">
<link href="{{"css/featherlight.min.css" | relURL}}" rel="stylesheet">
<link href="{{"css/auto-complete.css" | relURL}}" rel="stylesheet">
<link href="{{"theme-original/style.css" | relURL}}" rel="stylesheet">
{{with .Site.Params.themeVariant}}
<link href="{{(printf "theme-original/variant-%s.css" .) | relURL}}" rel="stylesheet">
{{end}}
<link rel="stylesheet" href="{{"css/bootstrap.min.css" | relURL}}">
<script src="{{"js/jquery-2.x.min.js" | relURL}}"></script>
<style type="text/css">
:root #header + #content > #left > #rlblock_left {
display:none !important;
}
</style>
{{ partial "custom-head.html" . }}

View File

@@ -0,0 +1,10 @@
<script src="{{"js/clipboard.min.js" | relURL}}"></script>
<script src="{{"js/featherlight.min.js" | relURL}}"></script>
<script src="{{"js/html5shiv-printshiv.min.js" | relURL}}"></script>
{{if eq .Site.Params.highlightClientSide true}}
<script src="{{"js/highlight.pack.js" | relURL}}"></script>
<script>hljs.initHighlightingOnLoad();</script>
{{end}}
<script src="{{"js/modernizr.custom.71422.js" | relURL}}"></script>
<script src="{{"js/docdock.js" | relURL}}"></script>
<script src="{{"theme-original/script.js" | relURL}}"></script>

View File

@@ -0,0 +1,9 @@
<nav class="pagination" role="navigation">
{{if .HasPrev}}
<a class="newer-posts" href="{{ .Prev.URL }}">&larr; {{T "Previous-Pages"}}</a>
{{end}}
<span class="page-number">{{T "Page"}} {{ .PageNumber }} {{T "pagination-on"}} {{.TotalPages}}</span>
{{if .HasNext}}
<a class="older-posts" href="{{ .Next.URL }}">{{T "Next-Pages"}} &rarr;</a>
{{end}}
</nav>

View File

@@ -0,0 +1,6 @@
<div class="alert {{ if .IsNamedParams }}
{{with .Get "theme" }}alert-{{.}}{{else}}alert-info{{end}}"
{{else}}
{{with .Get 0 }}alert-{{.}}{{else}}alert-info{{end}}"
{{end}}
role="alert">{{.Inner}}</div>

View File

@@ -0,0 +1 @@
<anchor id="anchor-{{.Get "default"}}">{{.Inner}}</anchor>

View File

@@ -0,0 +1 @@
<a href="#anchor-{{.Get "anchor"}}" title="" >{{.Inner}}</a>

View File

@@ -0,0 +1,5 @@
{{range $i, $att := .Page.Params.attachments }}
{{if eq $att.filename ($.Get "filename")}}
<a class="{{$att.iconclass}}" href="{{$.Site.BaseURL}}{{$.Page.Params.id}}/{{$att.filename}}" title="Dernière modification le {{$att.lastmodifieddate}}" >{{$.Inner}}</a> ({{$att.nicefilesize}})
{{end}}
{{end}}

View File

@@ -0,0 +1,33 @@
<section class="attachments">
<label>
<span class="glyphicon glyphicon-paperclip" aria-hidden="true"></span>
{{with .Get "title"}}{{.}}{{else}}{{T "Attachments-label"}}{{end}}
</label>
{{if eq .Page.File.BaseFileName "index"}}
{{$.Scratch.Add "filesName" "files"}}
{{else}}
{{$.Scratch.Add "filesName" (printf "%s.files" .Page.File.BaseFileName)}}
{{end}}
{{ range (readDir (printf "./content/%s%s" .Page.File.Dir ($.Scratch.Get "filesName")) ) }}
{{ $fileDir := replace $.Page.File.Dir "\\" "/" }}
{{if ($.Get "pattern")}}
{{if (findRE ($.Get "pattern") .Name)}}
<li>
<a href="{{ printf "%s/%s%s/%s" $.Site.BaseURL $fileDir ($.Scratch.Get "filesName") .Name }}" >
{{.Name}}
</a>
({{div .Size 1024 }} kB)
</li>
{{end}}
{{else}}
<li>
<a href="{{ printf "%s/%s%s/%s" $.Site.BaseURL $fileDir ($.Scratch.Get "filesName") .Name }}" >
{{.Name}}
</a>
({{div .Size 1024 }} kB)
</li>
{{end}}
{{end}}
</section>
{{.Inner}}

View File

@@ -0,0 +1,6 @@
<!-- Boutton -->
{{ with .Get "align" }}<center>{{end}}
<button class="btn {{with .Get "theme"}}btn-{{.}}{{else}}btn-primary{{end}}" type="button" {{ with .Get "href" }} onclick="location.href='{{.}}'"{{end}} >{{.Inner}}</button>
{{ with .Get "align" }}</center>{{end}}
<!-- Boutton -->

View File

@@ -0,0 +1,104 @@
{{- $showhidden := .Get "showhidden"}}
{{- $style := .Get "style" | default "li" }}
{{- $depth := .Get "depth" | default 1 }}
{{- $withDescription := .Get "description" | default false }}
{{- $sortTerm := .Get "sort" | default "Weight" }}
{{- .Scratch.Set "current" .Page }}
{{- if (.Get "page")}}
{{- with .Site.GetPage "section" (.Get "page") }}
{{- $.Scratch.Set "current" . }}
{{- end }}
{{- end }}
{{- $cpage := (.Scratch.Get "current") }}
<ul class="children children-{{$style}}">
{{- .Scratch.Set "pages" $cpage.Pages }}
{{- if $cpage.Sections}}
{{- .Scratch.Set "pages" ($cpage.Pages | union $cpage.Sections) }}
{{- end}}
{{- $pages := (.Scratch.Get "pages") }}
{{- if eq $sortTerm "Weight"}}
{{- template "childs" dict "menu" $pages.ByWeight "style" $style "showhidden" $showhidden "count" 1 "depth" $depth "pages" .Site.Pages "description" $withDescription "sortTerm" $sortTerm}}
{{- else if eq $sortTerm "Name"}}
{{- template "childs" dict "menu" $pages.ByTitle "style" $style "showhidden" $showhidden "count" 1 "depth" $depth "pages" .Site.Pages "description" $withDescription "sortTerm" $sortTerm}}
{{- else if eq $sortTerm "PublishDate"}}
{{- template "childs" dict "menu" $pages.ByPublishDate "style" $style "showhidden" $showhidden "count" 1 "depth" $depth "pages" .Site.Pages "description" $withDescription "sortTerm" $sortTerm}}
{{- else if eq $sortTerm "Date"}}
{{- template "childs" dict "menu" $pages.ByDate "style" $style "showhidden" $showhidden "count" 1 "depth" $depth "pages" .Site.Pages "description" $withDescription "sortTerm" $sortTerm}}
{{- else if eq $sortTerm "Length"}}
{{- template "childs" dict "menu" $pages.ByLength "style" $style "showhidden" $showhidden "count" 1 "depth" $depth "pages" .Site.Pages "description" $withDescription "sortTerm" $sortTerm}}
{{- else}}
{{- template "childs" dict "menu" $pages "style" $style "showhidden" $showhidden "count" 1 "depth" $depth "pages" .Site.Pages "description" $withDescription "sortTerm" $sortTerm}}
{{end}}
</ul>
{{.Inner|safeHTML}}
{{ define "childs" }}
{{- range .menu }}
{{- if and .Params.hidden (not $.showhidden) }}
{{- else}}
<span>
{{- if hasPrefix $.style "h"}}
{{- $num := sub ( int (trim $.style "h") ) 1 }}
{{- $numn := add $num $.count }}
{{- (printf "<h%d>" $numn)|safeHTML}}
<a href="{{.URL}}" >{{ .Title }}</a>
{{- (printf "</h%d>" $numn)|safeHTML}}
{{- else}}
{{- (printf "<%s>" $.style)|safeHTML}}
<a href="{{.URL}}" >{{ .Title }}</a>
{{- (printf "</%s>" $.style)|safeHTML}}
{{- end}}
{{- if $.description}}
{{- if .Description}}
<p>{{.Description}}</p>
{{- else}}
<p>{{.Summary}}</p>
{{- end}}
{{- end}}
</span>
{{- if lt $.count $.depth}}
{{- if eq $.style "li" }}
<ul>
{{- end}}
{{- .Scratch.Set "pages" .Pages }}
{{- if .Sections}}
{{- .Scratch.Set "pages" (.Pages | union .Sections) }}
{{- end}}
{{- $pages := (.Scratch.Get "pages") }}
{{- if eq $.sortTerm "Weight"}}
{{- template "childs" dict "menu" $pages.ByWeight "style" $.style "showhidden" $.showhidden "count" (add $.count 1) "depth" $.depth "pages" $.pages "description" $.description "sortTerm" $.sortTerm}}
{{- else if eq $.sortTerm "Name"}}
{{- template "childs" dict "menu" $pages.ByTitle "style" $.style "showhidden" $.showhidden "count" (add $.count 1) "depth" $.depth "pages" $.pages "description" $.description "sortTerm" $.sortTerm}}
{{- else if eq $.sortTerm "PublishDate"}}
{{- template "childs" dict "menu" $pages.ByPublishDate "style" $.style "showhidden" $.showhidden "count" (add $.count 1) "depth" $.depth "pages" $.pages "description" $.description "sortTerm" $.sortTerm}}
{{- else if eq $.sortTerm "Date"}}
{{- template "childs" dict "menu" $pages.ByDate "style" $.style "showhidden" $.showhidden "count" (add $.count 1) "depth" $.depth "pages" $.pages "description" $.description "sortTerm" $.sortTerm}}
{{- else if eq $.sortTerm "Length"}}
{{- template "childs" dict "menu" $pages.ByLength "style" $.style "showhidden" $.showhidden "count" (add $.count 1) "depth" $.depth "pages" $.pages "description" $.description "sortTerm" $.sortTerm}}
{{- else}}
{{- template "childs" dict "menu" $pages "style" $.style "showhidden" $.showhidden "count" (add $.count 1) "depth" $.depth "pages" $.pages "description" $.description "sortTerm" $.sortTerm}}
{{- end}}
{{- if eq $.style "li"}}
</ul>
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}

View File

@@ -0,0 +1 @@
<pre><code>{{.Inner}}</code></pre>

View File

@@ -0,0 +1,29 @@
{{ $name := .Get "name"}}
{{ if eq "smile" $name}}
😀
{{ else if eq "sad" $name}}
🙁
{{ else if eq "cheeky" $name}}
😛
{{ else if eq "laugh" $name}}
😃
{{ else if eq "wink" $name}}
😉
{{ else if eq "thumbs-up" $name}}
<span class="glyphicon glyphicon-thumbs-up" aria-hidden="true"></span>
{{ else if eq "thumbs-down" $name}}
<span class="glyphicon glyphicon-thumbs-down" aria-hidden="true"></span>
{{ else if eq "information" $name}}
<span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span>
{{ else if eq "tick" $name}}
<span class="glyphicon glyphicon-ok-circle" aria-hidden="true"></span>
{{ else if eq "cross" $name}}
<span class="glyphicon glyphicon-remove-circle" aria-hidden="true"></span>
{{ else if eq "warning" $name}}
<span class="glyphicon glyphicon-warning-sign" aria-hidden="true"></span>
{{else}}
( Emoticon: {{$name}} )
{{end}}
{{.Inner}}

View File

@@ -0,0 +1,14 @@
{{ $excerpt := findRE "(?ms){{%\\s*excerpt[^%]*%}}(.|\n)*?{{%\\s*/excerpt\\s*%}}" ( readFile (printf "./content/%s" (.Get "filename")) ) }}
{{ range $excerpt }}
{{if ($.Get "panel")}}
<div class="panel panel-default">
<div class="panel-heading">{{$.Get "panel"}}</div>
<div class="panel-body">
{{ (replaceRE "(?ms){{%\\s*excerpt[^%]*%}}(.*){{%\\s*/excerpt\\s*%}}" "$1" .) | safeHTML | markdownify }}
</div>
</div>
{{else}}
{{ (replaceRE "(?ms){{%\\s*excerpt[^%]*%}}(.*){{%\\s*/excerpt\\s*%}}" "$1" .) | safeHTML | markdownify }}
{{ end }}
{{ end }}
{{.Inner}}

View File

@@ -0,0 +1,7 @@
{{with .Get "hidden"}}
{{if eq . "false"}}
{{$.Inner}}
{{end}}
{{else}}
{{.Inner}}
{{end}}

View File

@@ -0,0 +1,16 @@
<div class="expand">
<div class="expand-label" style="cursor: pointer;" onclick="$h = $(this);$h.next('div').slideToggle(100,function () {$h.children('i').attr('class',function () {return $h.next('div').is(':visible') ? 'fa fa-chevron-down' : 'fa fa-chevron-right';});});">
<i style="font-size:x-small;" class="fa fa-chevron-right"></i>
<span>
{{$expandMessage := T "Expand-title"}}
{{ if .IsNamedParams }}
{{.Get "default" | default $expandMessage}}
{{else}}
{{.Get 0 | default $expandMessage}}
{{end}}
</span>
</div>
<div class="expand-content" style="display: none;">
{{.Inner | safeHTML}}
</div>
</div>

View File

@@ -0,0 +1,16 @@
<div class="well">
<strong>Résumé</strong><br/>
{{.Inner}}
<div><strong>Sur cette page</strong></div>
{{.Page.TableOfContents}}
<div><strong>Pages liées</strong></div>
<ul>
{{ range sort .Page.Sections }}
<li><a href="{{.URL}}" >{{ .Title }}</a></li>
{{ end }}
{{ range sort .Page.Pages }}
<li><a href="{{.URL}}" >{{ .Title }}</a></li>
{{ end }}
</ul>
</div>

View File

@@ -0,0 +1,13 @@
{{ if .IsNamedParams }}
{{if not (hasPrefix (.Get "name") "fa-") }}
<span class="glyphicon glyphicon-{{.Get "name"}}" {{with .Get "size"}}style="font-size:{{.}}"{{end}} aria-hidden="true"></span>
{{else}}
<span class="fa {{.Get "name"}}" {{with .Get "size"}}style="font-size:{{.}}"{{end}} aria-hidden="true"></span>
{{end}}
{{else}}
{{if not (hasPrefix (.Get 0) "fa-") }}
<span class="glyphicon glyphicon-{{.Get 0}}" aria-hidden="true"></span>
{{else}}
<span class="fa {{.Get 0}}" aria-hidden="true"></span>
{{end}}
{{end}}

View File

@@ -0,0 +1,5 @@
<a href="{{.Site.BaseURL}}{{.Page.Params.id}}/{{.Get "filename"}}" sdata-lightbox="{{.Get "filename"}}">
<img src="{{.Site.BaseURL}}{{.Page.Params.id}}/{{.Get "filename"}}" style="border:0px" {{ with .Get "width"}} width="{{.}}"{{ end }} {{ with .Get "align"}} align="{{.}}"{{ end }}/>
</a>
{{.Inner}}

View File

@@ -0,0 +1,10 @@
<!-- Alert -->
{{- if .Get "title" -}}
<div class="panel panel-primary panel-info">
{{ with .Get "title" }}<div class="panel-heading">{{htmlUnescape .}}</div>{{end}}
<div class="panel-body">{{.Inner}}</div>
</div>
{{- else -}}
<div class="alert alert-info" role="alert">{{.Inner}}</div>
{{- end -}}
<!-- Alert -->

View File

@@ -0,0 +1 @@
<span class="label label-default label-{{.Get "type"}}">{{.Inner}}</span>

View File

@@ -0,0 +1,3 @@
<link href="{{"mermaid/mermaid.css" | relURL}}" type="text/css" rel="stylesheet"/>
<script defer src="{{"mermaid/mermaid.js" | relURL}}">mermaid.initialize({startOnLoad:true});</script>
<div class="mermaid" align="{{ if .Get "align" }}{{ .Get "align" }}{{ else }}center{{ end }}" >{{ safeHTML .Inner }}</div>

View File

@@ -0,0 +1,4 @@
<!-- Alert -->
<div class="alert alert-warning" role="alert">{{.Inner}}</div>
<!-- Alert -->

View File

@@ -0,0 +1 @@
<div class="notices {{ .Get 0 }}" {{ if len .Params | eq 2 }} id="{{ .Get 1 }}" {{ end }}>{{ .Inner }}</div>

View File

@@ -0,0 +1,12 @@
{{ if ne (.Get "spacekey") "" }}
<label class="broken" title="lien d'espace cassé">{{.Get "pagename" | htmlUnescape}}</label>
{{else}}
{{$pages := where .Site.AllPages "Title" (( $.Get "pagename") | htmlUnescape ) }}
{{ if eq 0 (len $pages) }}
<label class="broken" title="lien cassé">{{.Get "pagename" | htmlUnescape}}</label>
{{else}}
{{ range $pages }}
<a href="{{$.Site.BaseURL}}{{.Params.slug | lower}}">{{$.Inner}}</a>
{{end}}
{{ end }}
{{end}}

View File

@@ -0,0 +1 @@
{{.Inner}}

View File

@@ -0,0 +1,5 @@
<div class="panel {{with .Get "theme" }}panel-{{.}}{{else}}panel-primary{{end}}">
{{ with .Get "header" }}<div class="panel-heading">{{ htmlUnescape . | markdownify}}</div>{{end}}
<div class="panel-body">{{.Inner}}</div>
{{ with .Get "footer" }}<div class="panel-footer">{{ htmlUnescape . | markdownify}}</div>{{end}}
</div>

View File

@@ -0,0 +1,7 @@
{{.Inner}}
{{- range first 10 .Site.Pages }}
<li>
{{ .Date.Format "02/01/2006" }} - <a href="{{ .Permalink }}">{{ .Title }}</a>
</li>
{{ end }}

View File

@@ -0,0 +1,14 @@
{{- if in (.Get 0) "/_index.md" -}}
{{- $paths := (split (.Get 0) "_index.md") -}}
{{- $pagepath := index $paths 0 -}}
{{- $anchor := index $paths 1 -}}
{{- with .Site.GetPage "section" (trim $pagepath "/") -}}
{{- ( printf "%s%s" $pagepath $anchor ) | relLangURL -}}
{{- end -}}
{{- else -}}
{{- with .Site.GetPage "section" (.Get 0) }}
{{- .URL -}}
{{- else -}}
{{- .Get 0 | relref .Page -}}
{{- end -}}
{{- end -}}

View File

@@ -0,0 +1,66 @@
<iframe id="slideFrame" src="{{"none.html" | relURL }}" style="width:{{with .Get "width"}}{{.}}{{else}}100%{{end}};height:{{with .Get "height"}}{{.}}{{else}}30em{{end}}; border:0px"></iframe>
<div id="slideContent">
<link rel="stylesheet" href="{{"revealjs/css/reveal.css"|relURL}}">
<link rel="stylesheet" href="{{"revealjs/css/theme/"|relURL}}{{with .Get "theme"}}{{.|safeHTML}}{{else}}league{{end}}.css" id="theme">
<link rel="stylesheet" href="{{"revealjs/lib/css/zenburn.css"|relURL}}">
<div class="reveal">
<div class="slides">
<section data-markdown
data-separator="^---"
data-separator-vertical="^___"
data-separator-notes="^Note:"
data-charset="utf8">
{{ .Inner | safeHTML}}
</section>
</div>
</div>
<script async src="{{"/revealjs/lib/js/head.min.js"|relURL}}"></script>
<script async src="{{"/revealjs/js/reveal.js"|relURL}}"></script>
<script>
function initSlides() {
Reveal.initialize({
embedded : true,
controls : {{with .Get "controls"}}{{.|safeHTML}}{{else}}false{{end}},
center: {{with .Get "center"}}{{.|safeHTML}}{{else}}true{{end}} ,
history: {{with .Get "history"}}{{.|safeHTML}}{{else}}false{{end}} ,
progress: {{with .Get "progress"}}{{.|safeHTML}}{{else}}false{{end}} ,
transition: {{with .Get "transition"}}{{.}}{{else}}"concave"{{end}},
// theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
// Optional libraries used to extend on reveal.js
dependencies: [
{ src: '{{"revealjs/lib/js/classList.js"|relURL}}"', condition: function() { return !document.body.classList; } },
{ src: '{{"revealjs/plugin/markdown/marked.js"|relURL}}', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: '{{"revealjs/plugin/markdown/markdown.js"|relURL}}', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: '{{"revealjs/plugin/highlight/highlight.js"|relURL}}', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: '{{"revealjs/plugin/zoom-js/zoom.js"|relURL}}', async: true, condition: function() { return !!document.body.classList; } },
{ src: '{{"revealjs/plugin/notes/notes.js"|relURL}}', async: true, condition: function() { return !!document.body.classList; } }
]
});
}
</script>
</div>
<li><a href="#" onclick="slideFullScreen();">See it fullscreen</a></li>
<script type="text/javascript">
var toto = document.getElementById('slideContent').innerHTML
document.getElementById('slideFrame').contentWindow.document.write(document.getElementById('slideContent').innerHTML);
document.getElementById('slideContent').remove();
document.addEventListener("DOMContentLoaded",function(){
setTimeout(function () {
document.getElementById('slideFrame').contentWindow.initSlides() ;
}, 2000);
});
function slideFullScreen() {
document.open();
document.write(toto);
document.close();
initSlides()
}
</script>

View File

@@ -0,0 +1 @@
{{.Inner}}

View File

@@ -0,0 +1,10 @@
<div >
<label class="completed {{.Get "completed"}}">
{{if eq (.Get "completed") "T"}}
<input type="checkbox" disabled checked title="résolu le {{(time (.Get "completeddate")).Format "02/01/2006 à 15h04" }}" />
{{else}}
<input type="checkbox" disabled/>
{{end}}
</label>
<label >{{.Inner}}</label>
</div>

View File

@@ -0,0 +1,4 @@
<div class="tasklist">
<label><span class="glyphicon glyphicon-list" aria-hidden="true"></span>Tasklist</label>
{{.Inner}}
</div>

View File

@@ -0,0 +1,10 @@
<!-- Alert -->
{{if .Get "title" }}
<div class="panel panel-default">
{{ with .Get "title" }}<div class="panel-heading">{{htmlUnescape .}}</div>{{end}}
<div class="panel-body">{{.Inner}}</div>
</div>
{{else}}
<div class="alert alert-default" role="alert">{{.Inner}}</div>
{{end}}
<!-- Alert -->

View File

@@ -0,0 +1,2 @@
{{ .Page.TableOfContents }}
{{.Inner}}

View File

@@ -0,0 +1 @@
<div class="unknow-macro">{{.Inner}}</div>

View File

@@ -0,0 +1 @@
<a class="userlink" href="#" username="{{.Get "username"}}" title="utilisateur : {{.Get "username"}}">{{.Inner}}</a>

View File

@@ -0,0 +1,5 @@
{{range $i, $att := .Page.Params.attachments }}
{{if eq $att.filename ($.Get "name")}}
<viewppt name="{{$.Site.BaseURL}}{{$.Page.Params.id}}/{{$att.filename}}">{{$.Inner}}</viewppt>
{{end}}
{{end}}

View File

@@ -0,0 +1,5 @@
{{range $i, $att := .Page.Params.attachments }}
{{if eq $att.filename ($.Get "name")}}
<viewxls name="{{$.Site.BaseURL}}{{$.Page.Params.id}}/{{$att.filename}}">{{$.Inner}}</viewxls>
{{end}}
{{end}}

View File

@@ -0,0 +1,12 @@
<!-- Alert -->
{{if .Get "title" }}
<div class="panel panel-primary panel-warning">
{{ with .Get "title" }}<div class="panel-heading">{{htmlUnescape .}}</div>{{end}}
<div class="panel-body">{{.Inner}}</div>
</div>
{{else}}
<div class="alert alert-warning" role="alert">{{.Inner}}</div>
{{end}}
<!-- Alert -->

View File

@@ -0,0 +1 @@
<div class="well">{{.Inner}}</div>

View File

@@ -0,0 +1,38 @@
<head><meta charset="utf-8"></head>
<link rel="stylesheet" href="{{"revealjs/css/reveal.css"|relURL}}">
<link rel="stylesheet" href="{{"revealjs/css/theme/"|relURL}}{{.Params.theme}}.css" id="theme">
<link rel="stylesheet" href="{{"revealjs/lib/css/zenburn.css"|relURL}}">
<div class="reveal">
<div class="slides">
<section data-markdown
data-separator="^---"
data-separator-vertical="^___"
data-separator-notes="^Note:">
{{ .RawContent }}
</section>
</div>
</div>
<script src="{{"/revealjs/lib/js/head.min.js"|relURL}}"></script>
<script src="{{"/revealjs/js/reveal.js"|relURL}}"></script>
<script>
Reveal.initialize({
embedded : true,
{{ range $key, $value := .Params.revealoptions }}
{{ $key | safeHTML}}:{{$value }},
{{ end }}
// theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
// Optional libraries used to extend on reveal.js
dependencies: [
{ src: '{{"revealjs/lib/js/classList.js"|relURL}}"', condition: function() { return !document.body.classList; } },
{ src: '{{"revealjs/plugin/markdown/marked.js"|relURL}}', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: '{{"revealjs/plugin/markdown/markdown.js"|relURL}}', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: '{{"revealjs/plugin/highlight/highlight.js"|relURL}}', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: '{{"revealjs/plugin/zoom-js/zoom.js"|relURL}}', async: true, condition: function() { return !!document.body.classList; } },
{ src: '{{"revealjs/plugin/notes/notes.js"|relURL}}', async: true, condition: function() { return !!document.body.classList; } },
{ src: '{{"revealjs/plugin/math/math.js"|relURL}}', async: true}
]
});
</script>