moved project into new repo
This commit is contained in:
4
layouts/_default/_markup/render-codeblock-abc.html
Normal file
4
layouts/_default/_markup/render-codeblock-abc.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<pre class="abc">
|
||||
{{ .Inner | htmlEscape | safeHTML }}
|
||||
</pre>
|
||||
{{ .Page.Store.Set "hasAbc" true }}
|
||||
4
layouts/_default/_markup/render-codeblock-mermaid.html
Normal file
4
layouts/_default/_markup/render-codeblock-mermaid.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<pre class="mermaid">
|
||||
{{ .Inner | htmlEscape | safeHTML }}
|
||||
</pre>
|
||||
{{ .Page.Store.Set "hasMermaid" true }}
|
||||
4
layouts/_default/_markup/render-codeblock-tab.html
Normal file
4
layouts/_default/_markup/render-codeblock-tab.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<pre class="jtab">
|
||||
{{ .Inner | htmlEscape | safeHTML }}
|
||||
</pre>
|
||||
{{ .Page.Store.Set "hasTab" true }}
|
||||
36
layouts/_default/baseof.html
Normal file
36
layouts/_default/baseof.html
Normal file
@@ -0,0 +1,36 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ or site.Language.LanguageCode }}" dir="{{ or site.Language.LanguageDirection `ltr` }}">
|
||||
<head>
|
||||
{{ partial "head.html" . }}
|
||||
</head>
|
||||
{{ partial "audio_autoplay.html" . }}
|
||||
<body>
|
||||
<header>
|
||||
{{ partial "header.html" . }}
|
||||
</header>
|
||||
<div>
|
||||
<div class="black-hole wrap">
|
||||
<div id="black-hole"></div>
|
||||
</div>
|
||||
</div>
|
||||
<main>
|
||||
{{ block "expo" . }}{{ end }}
|
||||
{{ block "main" . }}{{ end }}
|
||||
</main>
|
||||
<footer>
|
||||
{{ partial "footer.html" . }}
|
||||
</footer>
|
||||
{{ if .Param "math" }}
|
||||
{{ partialCached "math.html" . }}
|
||||
{{ end }}
|
||||
{{ if .Store.Get "hasMermaid" }}
|
||||
{{ partialCached "diagram.html" . }}
|
||||
{{ end }}
|
||||
{{ if .Store.Get "hasAbc" }}
|
||||
{{ partialCached "music-notation.html" . }}
|
||||
{{ end }}
|
||||
{{ if .Store.Get "hasTab" }}
|
||||
{{ partialCached "tablature-notation.html" . }}
|
||||
{{ end }}
|
||||
</body>
|
||||
</html>
|
||||
7
layouts/_default/home.html
Normal file
7
layouts/_default/home.html
Normal file
@@ -0,0 +1,7 @@
|
||||
{{ define "main" }}
|
||||
<div id="{{ lower .Title }}" class="page">
|
||||
<div id="content" class="page">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
17
layouts/_default/list.html
Normal file
17
layouts/_default/list.html
Normal file
@@ -0,0 +1,17 @@
|
||||
{{ define "main" }}
|
||||
{{ with .Content }}
|
||||
<div id="content" class="page">
|
||||
{{ . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
<div id="posts" class="directory">
|
||||
{{ range .Paginator.Pages }}
|
||||
<a href="{{ .RelPermalink }}">
|
||||
<article class="post">
|
||||
<h2>{{ .LinkTitle }}</h2>
|
||||
<p>{{ .Summary }}</p>
|
||||
</article>
|
||||
</a>
|
||||
{{ end }}{{ template "_internal/pagination.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
37
layouts/_default/single.html
Normal file
37
layouts/_default/single.html
Normal file
@@ -0,0 +1,37 @@
|
||||
{{ define "main" }}
|
||||
<article id="post">
|
||||
<h1>{{ .Title }}</h1>
|
||||
<section id="frontmatter">
|
||||
{{ if ne .PublishDate nil }}
|
||||
{{ $dateMachine := .PublishDate | time.Format "2006-01-02T15:04:05-07:00" }}
|
||||
{{ $dateHuman := .PublishDate | time.Format "2 Jan 2006" }}
|
||||
<time datetime="{{ $dateMachine }}">Published {{ $dateHuman }}</time>
|
||||
{{ else }}
|
||||
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
|
||||
{{ $dateHuman := .Date | time.Format "2 Jan 2006" }}
|
||||
<time datetime="{{ $dateMachine }}">Created {{ $dateHuman }}</time>
|
||||
{{ end }}
|
||||
{{ with .Params.author }}
|
||||
<p>Written by {{ . }}</p>
|
||||
{{ end }}
|
||||
{{ if ne .Params.editor .Params.author }}
|
||||
<p>Edited by {{ .Params.editor }}</p>
|
||||
{{ end }}
|
||||
{{ with .Params.translator }}
|
||||
<p>Translated by {{ . }}</p>
|
||||
{{ end }}
|
||||
</section>
|
||||
<section id="content">
|
||||
{{ .Content }}
|
||||
</section>
|
||||
<!-- {{ range .Params.updates }}
|
||||
<details>
|
||||
<summary>{{ .mod }}</summary>
|
||||
{{ with .comment }}
|
||||
<p>{{ . }}</p>
|
||||
{{ end }}
|
||||
</details>
|
||||
{{ end }} -->
|
||||
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
|
||||
</article>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user