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

gitlab.com/VincentTam/huginn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Berthault <justin.berthault@zaclys.net>2018-07-31 20:12:53 +0300
committerJustin Berthault <justin.berthault@zaclys.net>2018-07-31 20:12:53 +0300
commitec8ca34756f709cbbba96c94f574f863bcb08f82 (patch)
tree2f46be1d329ebaa1769ba1f049aebb97dea58252 /layouts
parent48fda8fe0f5cedb2765d0e7928cf34949d307d0c (diff)
Dark to Light, housekeeping and other stuffs
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/baseof.html4
-rw-r--r--layouts/_default/single.html15
-rw-r--r--layouts/shortcodes/.directory3
-rw-r--r--layouts/shortcodes/gallery.html22
4 files changed, 12 insertions, 32 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 9950dc5..3d56fdb 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -9,7 +9,9 @@
{{- end -}}
</title>
<link href="{{ .Site.BaseURL }}index.xml" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
- <link rel="stylesheet" href="/css/style.css" />
+ {{ $basecss := resources.Get "css/style.css" }}
+ {{ $style := $basecss | resources.Minify }}
+ <link rel="stylesheet" href="{{ $style.Permalink }}" />
<link rel="stylesheet" href="/css/icomoon.min.css" />
{{- block "css" . -}}
{{ end }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 030c244..b1416f6 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -5,7 +5,9 @@
{{- with .Resources.Match "images/gallery/*.*" -}}
<link rel="stylesheet" href="/css/baguetteBox.min.css" />
{{- end }}
- <link rel="stylesheet" href="/css/pygments.min.css" />
+ {{ $pygmcss := resources.Get "css/pygments.css" }}
+ {{ $pygments := $pygmcss | resources.Minify }}
+ <link rel="stylesheet" href="{{ $pygments.Permalink }}" />
{{- end -}}
{{- define "title" -}}
{{ .Title }} – {{ .Site.Title }}
@@ -34,11 +36,6 @@
{{- end -}}
</div>
</header>
- {{- with .Params.song -}}
- <div class="nowlistening">
- {{- . | markdownify -}}
- </div>
- {{- end -}}
{{ if .TableOfContents }}
<details>
<summary>Table des Matières</summary>
@@ -59,10 +56,10 @@
{{ end }}
{{ if .Site.Params.comments }}
<script defer data-isso="{{ .Site.Params.isso_server }}"
- src="{{ .Site.Params.isso_server }}js/embed.min.js"
- async crossorigin="anonymous">
+ src="{{ .Site.Params.isso_server }}/js/embed.min.js"
+ async >
</script>
- <section style="color:#22272e" id="isso-thread"></section>
+ <section id="isso-thread"></section>
{{ end }}
{{ end }}
{{- define "scripts" -}}
diff --git a/layouts/shortcodes/.directory b/layouts/shortcodes/.directory
new file mode 100644
index 0000000..57b1ed6
--- /dev/null
+++ b/layouts/shortcodes/.directory
@@ -0,0 +1,3 @@
+[Dolphin]
+Timestamp=2018,7,26,16,49,31
+Version=4
diff --git a/layouts/shortcodes/gallery.html b/layouts/shortcodes/gallery.html
deleted file mode 100644
index 457924b..0000000
--- a/layouts/shortcodes/gallery.html
+++ /dev/null
@@ -1,22 +0,0 @@
-<div class="gallery">
- {{- with (.Get "dir") -}}
- {{- $files := readDir (print "/static/img/" .) }}
- {{- range $files -}}
- {{- $thumbext := "-thumb" }}
- {{- $isthumb := .Name | findRE ($thumbext | printf "%s\\.") }}
- {{- $isimg := lower .Name | findRE "\\.(gif|jpg|jpeg|tiff|png|bmp)" }}
- {{- if and $isimg (not $isthumb) }}
- {{- $caption := .Name | replaceRE "\\..*" "" | humanize }}
- {{- $linkURL := print "/img/" ($.Get "dir") "/" .Name | absURL }}
- {{- $thumb := .Name | replaceRE "(\\.)" ($thumbext | printf "%s.") }}
- {{- $thumbexists := where $files "Name" $thumb }}
- {{- $thumbURL := print "/img/" ($.Get "dir") "/" $thumb | absURL }}
- <div class="gallery-item">
- <a href="{{ $linkURL }}" >
- <img class="thumbnail" src="{{ $thumbURL }}">
- </a>
- </div>
-{{- end }}
-{{- end }}
-{{- end }}
-</div>