first!
This commit is contained in:
commit
cf7a27bfa1
225 changed files with 3580 additions and 0 deletions
52
layouts/_default/baseof.html
Normal file
52
layouts/_default/baseof.html
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode | default "en-us" }}">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
{{ template "_internal/opengraph.html" . }}
|
||||
{{ partial "twitter_cards_custom.html" . }}
|
||||
<title>{{ .Title }}</title>
|
||||
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
|
||||
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
|
||||
<link rel="shortcut icon" href="/mmaker.png" type="image/x-icon" />
|
||||
<link rel="stylesheet" href="{{ "css/style.css" | relURL }}">
|
||||
{{ with .OutputFormats.Get "RSS" -}}
|
||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
|
||||
{{- end }}
|
||||
</head>
|
||||
<body>
|
||||
<div id="wrapper">
|
||||
{{ partial "header" . }}
|
||||
<div id="container">
|
||||
{{ block "main" . }}{{ end }}
|
||||
{{ partial "sidebar.html" . }}
|
||||
<!-- {{ partial "footer" . }} -->
|
||||
</div>
|
||||
<!--
|
||||
<div class="kpan">
|
||||
<iframe width="675" height="128" src="https://darkholme.kpworld.xyz/kpan-fetch?w=675&h=128"></iframe>
|
||||
</div>
|
||||
-->
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
function getVideoEmbed(src)
|
||||
{
|
||||
let iframe = document.createElement('iframe');
|
||||
iframe.frameBorder = 0;
|
||||
iframe.width = 560;
|
||||
iframe.height = 315;
|
||||
iframe.src = 'https://www.youtube.com/embed/' + src;
|
||||
iframe.allowFullscreen = true;
|
||||
return iframe;
|
||||
}
|
||||
|
||||
function enableEmbed(elem, iframe)
|
||||
{
|
||||
parentElem = elem.parentElement;
|
||||
parentElem.appendChild(iframe);
|
||||
elem.remove();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
17
layouts/_default/list.html
Normal file
17
layouts/_default/list.html
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{{ define "main" }}
|
||||
<main>
|
||||
{{ if or .Title .Content }}
|
||||
<div>
|
||||
<!-- {{ with .Title }}<h2>{{ . }}</h2>{{ end }} -->
|
||||
{{ with .Content }}<div>{{ . }}</div>{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ $paginator := .Paginate .RegularPagesRecursive }}
|
||||
{{ range $paginator.Pages }}
|
||||
{{ .Render "summary" }}
|
||||
{{ end }}
|
||||
{{ partial "pagination.html" . }}
|
||||
</main>
|
||||
<!-- {{ partial "sidebar.html" . }} -->
|
||||
{{ end }}
|
||||
16
layouts/_default/single.html
Normal file
16
layouts/_default/single.html
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{{ define "main" }}
|
||||
<main>
|
||||
<article>
|
||||
<a href="{{ .Permalink }}"><h2 class="title">{{ .Title }}</h2></a>
|
||||
{{ if .Date }}
|
||||
<time class="date" title='{{ .Date.Format "02 Jan 06 15:04 UTC" }}' datetime='{{ .Date.Format "2006-01-02" }}'><a href="{{ .Permalink }}">#</a> {{ .Date.Format "2006-01-02" }}</time>
|
||||
{{ end }}
|
||||
<hr />
|
||||
<div class="articlecontent">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
<hr />
|
||||
{{ if not .Params.disableComments }}{{ partial "comments" }}{{ end }}
|
||||
</article>
|
||||
</main>
|
||||
{{ end }}
|
||||
10
layouts/_default/summary.html
Normal file
10
layouts/_default/summary.html
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<article>
|
||||
<a href="{{ .Permalink }}"><h2 class="title">{{ .Title }}</h2></a>
|
||||
<time class="date" title='{{ .Date.Format "02 Jan 06 15:04 UTC" }}' datetime='{{ .Date.Format "2006-01-02" }}'><a href="{{ .Permalink }}">#</a> {{ .Date.Format "2006-01-02" }}</time>
|
||||
|
||||
<hr />
|
||||
|
||||
<div>
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</article>
|
||||
23
layouts/_default/things-list.html
Normal file
23
layouts/_default/things-list.html
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{{ define "main" }}
|
||||
<main>
|
||||
<article>
|
||||
{{ if or .Title .Content }}
|
||||
<div>
|
||||
{{ with .Title }}<h2 class="title">{{ . }}</h2>{{ end }}
|
||||
{{ with .Content }}<div>{{ . }}</div>{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<ul>
|
||||
<li><a href="/things">All</a></li>
|
||||
<li><a href="/things/article">Articles</a></li>
|
||||
<li><a href="/things/game">Games</a></li>
|
||||
<li><a href="/things/video">Videos</a></li>
|
||||
<li><a href="/things/website">Websites</a></li>
|
||||
</ul>
|
||||
|
||||
{{ $showAll := .Parent.IsHome }}
|
||||
{{ partial "things.html" (dict "ctx" . "showAll" $showAll) }}
|
||||
</article>
|
||||
</main>
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue