You've already forked no-js-hugo-theme
Compare commits
4 Commits
c93379bf7c
...
master
Author | SHA1 | Date | |
---|---|---|---|
da512608d9 | |||
f73d092a30 | |||
a27278651e | |||
d87c83c072 |
@ -1,23 +1,16 @@
|
||||
<div id='{{ .Get "key" }}_asciinema_cast'></div>
|
||||
{{- $key := .Get "key" -}}
|
||||
{{- /* Doc: https://docs.asciinema.org/manual/player/options/ */ -}}
|
||||
{{- $opts := slice "cols" "rows" "autoPlay" "preload" "loop" "startAt" "speed"
|
||||
"idleTimeLimit" "theme" "poster" "fit" "controls" "pauseOnMarkers"
|
||||
"terminalFontSize" "terminalFontFamily" "terminalLineHeight" -}}
|
||||
{{- /* Skipping option markers. It is an array. Not sure if possible to pass in
|
||||
hugo. Embed directly in cast file */ -}}
|
||||
<div id='{{ $key }}_asciinema_cast'></div>
|
||||
<script>
|
||||
{{- /* Doc: https://docs.asciinema.org/manual/player/options/ */ -}}
|
||||
AsciinemaPlayer.create('casts/{{ .Get "key" }}.cast', document.getElementById('{{ .Get "key" }}_asciinema_cast'), {
|
||||
{{- if .Get "cols" }}cols: "{{ .Get "cols" }}",{{ end }}
|
||||
{{- if .Get "rows" }}rows: "{{ .Get "rows" }}",{{ end }}
|
||||
{{- if .Get "autoPlay" }}autoPlay: "{{ .Get "autoPlay" }}",{{ end }}
|
||||
{{- if .Get "preload" }}preload: "{{ .Get "preload" }}",{{ end }}
|
||||
{{- if .Get "loop" }}loop: "{{ .Get "loop" }}",{{ end }}
|
||||
{{- if .Get "startAt" }}startAt: "{{ .Get "startAt" }}",{{ end }}
|
||||
{{- if .Get "speed" }}speed: "{{ .Get "speed" }}",{{ end }}
|
||||
{{- if .Get "idleTimeLimit" }}idleTimeLimit: "{{ .Get "idleTimeLimit" }}",{{ end }}
|
||||
{{- if .Get "theme" }}theme: "{{ .Get "theme" }}",{{ end }}
|
||||
{{- if .Get "poster" }}poster: "{{ .Get "poster" }}",{{ end }}
|
||||
{{- if .Get "fit" }}fit: "{{ .Get "fit" }}",{{ end }}
|
||||
{{- if .Get "controls" }}controls: "{{ .Get "controls" }}",{{ end }}
|
||||
{{- /* markers is an array. Not sure if possible to pass in hugo. Embed directly in cast file */ -}}
|
||||
{{- if .Get "pauseOnMarkers" }}pauseOnMarkers: "{{ .Get "pauseOnMarkers" }}",{{ end }}
|
||||
{{- if .Get "terminalFontSize" }}terminalFontSize: "{{ .Get "terminalFontSize" }}",{{ end }}
|
||||
{{- if .Get "terminalFontFamily" }}terminalFontFamily: "{{ .Get "terminalFontFamily" }}",{{ end }}
|
||||
{{- if .Get "terminalLineHeight" }}terminalLineHeight: "{{ .Get "terminalLineHeight" }}",{{ end }}
|
||||
AsciinemaPlayer.create('casts/{{ $key }}.cast', document.getElementById('{{ $key }}_asciinema_cast'), {
|
||||
{{- range $opts }}
|
||||
{{- $opt := . -}}
|
||||
{{- with $.Get $opt }}{{ $opt }}: "{{ . }}",{{- end -}}
|
||||
{{- end -}}
|
||||
});
|
||||
</script>
|
||||
|
@ -6,20 +6,25 @@
|
||||
{{ range .Site.Taxonomies.tags }}
|
||||
<details>
|
||||
<summary> <h3>{{ .Page.Title }} ({{ len . }})</h3> </summary>
|
||||
<ul>
|
||||
{{ range . }}
|
||||
<li>
|
||||
<time>{{ .Date.Format "2006/01/02" }}</time>
|
||||
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ol>
|
||||
{{ partial "inline/postList.html" . }}
|
||||
</details>
|
||||
{{ end }}
|
||||
{{- end }}
|
||||
<h2>All Pages</h2>
|
||||
{{ with where .Site.RegularPages "Draft" true }}
|
||||
<h2>Drafts</h2>
|
||||
{{ partial "inline/postList.html" . }}
|
||||
{{ end }}
|
||||
{{ with where .Site.RegularPages "Draft" false }}
|
||||
<h2>All Pages</h2>
|
||||
{{ partial "inline/postList.html" . }}
|
||||
{{ else }}
|
||||
<p>No pages found</p>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "partials/inline/postList.html" }}
|
||||
<ul>
|
||||
{{ range .Site.RegularPages }}
|
||||
{{ range . }}
|
||||
<li>
|
||||
<time>{{ .Date.Format "2006/01/02" }}</time>
|
||||
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
|
||||
|
@ -9,13 +9,13 @@
|
||||
{{ if .Params.tags }}
|
||||
│
|
||||
{{range .Params.tags}}
|
||||
<a class="btn" href="/tags/{{ . | urlize }}" role="button">{{ . }}</a>
|
||||
<a class="btn" href="/tags/{{ . | urlize }}/" role="button">{{ . }}</a>
|
||||
{{end}}
|
||||
{{end}}
|
||||
{{ if .Params.categories }}
|
||||
│
|
||||
{{range .Params.categories}}
|
||||
<a class="btn" href="/categories/{{ . | urlize }}" role="button">{{ . }}</a>
|
||||
<a class="btn" href="/categories/{{ . | urlize }}/" role="button">{{ . }}</a>
|
||||
{{end}}
|
||||
{{end}}
|
||||
{{- if (and (eq .Lastmod.IsZero false) (ne .Lastmod .Date)) }}
|
||||
|
@ -359,7 +359,6 @@ body {
|
||||
font-weight: bold;
|
||||
font-size: 140%;
|
||||
line-height: 1em;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.title a {
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 110 KiB |
Reference in New Issue
Block a user