init
This commit is contained in:
28
layouts/_default/baseof.html
Normal file
28
layouts/_default/baseof.html
Normal file
@@ -0,0 +1,28 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Language.Lang | default "en" }}">
|
||||
<title>{{ if .Title }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="{{ .Description | default .Site.Params.description }}">
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
<link rel="alternate" type="application/rss+xml" href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}" title="{{ .Site.Title }}">
|
||||
<link rel="stylesheet" href="/css/index.css">
|
||||
<link rel="stylesheet" href="/css/theme.css">
|
||||
{{- if or .Params.math .Site.Params.math }}
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.10.2/dist/katex.min.css" integrity="sha256-uT5rNa8r/qorzlARiO7fTBE7EWQiX/umLlXsq7zyQP8=" crossorigin="anonymous">
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.2/dist/katex.min.js" integrity="sha256-TxnaXkPUeemXTVhlS5tDIVg42AvnNAotNaQjjYKK9bc=" crossorigin="anonymous"></script>
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.2/dist/contrib/mathtex-script-type.min.js" integrity="sha256-b8diVEOgPDxUp0CuYCi7+lb5xIGcgrtIdrvE8d/oztQ=" crossorigin="anonymous"></script>
|
||||
{{- end }}
|
||||
|
||||
<header>
|
||||
<h1><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h1>
|
||||
<nav>
|
||||
{{ range .Site.Menus.main }}
|
||||
<a href="{{ .URL }}">{{ .Name }}</a>
|
||||
{{ end }}
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
{{- block "main" . }}{{- end }}
|
||||
|
||||
</html>
|
15
layouts/_default/list.html
Normal file
15
layouts/_default/list.html
Normal file
@@ -0,0 +1,15 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<article>
|
||||
<header><h1>{{ .Title | default "Posts" }}</h1></header>
|
||||
<ul class="archive">
|
||||
{{- range where site.RegularPages "Type" "in" site.Params.mainSections }}
|
||||
<li>
|
||||
{{ if .Date }}<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006-01-02" }}</time>{{ end }}
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
</li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
</article>
|
||||
|
||||
{{ end }}
|
11
layouts/_default/single.html
Normal file
11
layouts/_default/single.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<article>
|
||||
<header>
|
||||
<h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
|
||||
{{ if .Date }}<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "January 02, 2006" }}</time>{{ end }}
|
||||
</header>
|
||||
{{ .Content }}
|
||||
</article>
|
||||
|
||||
{{ end }}
|
Reference in New Issue
Block a user