Welcome to mirror list, hosted at ThFree Co, Russian Federation.

single.html « _default « layouts - gitlab.com/VincentTam/huginn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8605d0023f14d690710e57d9a980e6dc873c0926 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{{ define "css" }}
  {{ if isset .Params "highlight" }}
    <link rel="stylesheet" href="/css/prism.min.css" />
  {{ end }}
  {{ if isset .Params "lightbox" }}
    <link rel="stylesheet" href="/css/featherlight.min.css" />
  {{ end }}
  {{ if isset .Params "gallery" }}
    <link rel="stylesheet" href="/css/featherlight.min.css" />
    <link rel="stylesheet" href="/css/featherlight.gallery.min.css" />
  {{ end }}
{{ end }}
{{ define "title" }}
  {{ .Title }} – {{ .Site.Title }}
{{ end }}
{{ define "main" }}
<article>
  <header>
  <h1>
    <a href="{{ .Permalink }}">
      {{ .Title }}
    </a>
  <time datetime="{{ .Date.Format "1914-12-20" }}">
    {{ .Date.Format "02/01/2006" }}
  </time>
  </h1>
  <div class="meta">
  {{ range .Params.categories }}
    <a class="categories" href="{{ "/categories/" | relLangURL }}{{ . | urlize }}">
      {{ . }}
    </a>
  {{ end }}
  {{ range .Params.tags }}
    - <a class="tags" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">
      #{{ . }}
    </a>
  {{ end }}
  </div>
  </header>
  {{ if .TableOfContents }}
  <details>
    <summary>Table des Matières</summary>
    {{ .TableOfContents }}
  </details>
  {{ end }}
  {{ .Content }}
<article>
  {{ $related := .Site.RegularPages.Related . | first 5 }}
{{ with $related }}
<h3>Billets en liens :</h3>
<ul>
	{{ range . }}
	<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
	{{ end }}
</ul>
{{ end }}
  <script type="text/javascript" src="/hashover/hashover.js"></script>
  <noscript>Merci d'activer JavaScript pour voir les commentaires avec HashOver.</noscript>
{{ end }}
{{ define "scripts" }}
  <script src="{{ "js/jquery.min.js" | relURL}}"></script>
  {{ if isset .Params "lightbox" }}
    <script src="{{ "js/featherlight.min.js" | relURL}}"></script>
  {{ end }}
  {{ if isset .Params "gallery" }}
    <script src="{{ "js/featherlight.min.js" | relURL}}"></script>
    <script src="{{ "js/featherlight.gallery.min.js" | relURL}}"></script>
  {{ end }}
  {{if isset .Params "highlight" }}
    <script src="{{ "js/prism.min.js" | relURL}}"></script>
  {{ end }}
{{ end }}