mirror of
https://github.com/TeamPiped/hugo-whisper-theme.git
synced 2024-08-14 23:57:00 +00:00
first commit
This commit is contained in:
commit
dcdde20b7c
179 changed files with 16070 additions and 0 deletions
65
layouts/_default/baseof.html
Normal file
65
layouts/_default/baseof.html
Normal file
|
@ -0,0 +1,65 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<title>{{ block "title" . }}{{ .Title }} - {{ .Site.Title }}{{ end }}</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
{{ block "meta_tags" . }}{{end}}
|
||||
<link rel="icon" href="{{ .Site.BaseURL }}favicon.png">
|
||||
|
||||
{{ if .Site.IsServer }}
|
||||
{{ $style := resources.Get "scss/style.scss" | toCSS (dict "targetPath" "css/style.css" "enableSourceMap" true) }}
|
||||
<link rel="stylesheet" href="{{ ($style).RelPermalink }}">
|
||||
{{ else }}
|
||||
{{ $style := resources.Get "scss/style.scss" | toCSS (dict "targetPath" "css/style.css" "enableSourceMap" false) }}
|
||||
<link rel="stylesheet" href="{{ ($style | minify | fingerprint).RelPermalink }}">
|
||||
{{ end }}
|
||||
|
||||
{{ block "header_css" . }}{{ end }}
|
||||
|
||||
</head>
|
||||
|
||||
<body class='page {{ block "body_classes" . }}{{ end }}'>
|
||||
{{ partial "main-menu-mobile.html" . }}
|
||||
<div id="wrapper" class="wrapper">
|
||||
{{ partial "header.html" . }}
|
||||
{{ if eq .Section "docs" }}
|
||||
<div class="container pt-3 pt-md-6">
|
||||
<div class="row">
|
||||
<div class="col-12 col-md-3 mb-2">
|
||||
<div class="sidebar">
|
||||
{{ partial "docs-menu.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-md-9">
|
||||
{{ block "main" . }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ else }}
|
||||
{{ block "main" . }}
|
||||
{{ end }}
|
||||
{{ end}}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
{{ $scripts := resources.Get "js/scripts.js" }}
|
||||
|
||||
{{ block "footer_js" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.IsServer }}
|
||||
<script type="text/javascript" src="{{ $scripts.RelPermalink }}"></script>
|
||||
{{ else }}
|
||||
<script type="text/javascript" src="{{ ($scripts | minify | fingerprint).RelPermalink }}"></script>
|
||||
{{ end }}
|
||||
|
||||
{{ partial "google-analytics.html" . }}
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
16
layouts/_default/list.html
Normal file
16
layouts/_default/list.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
{{ define "header_css" }}{{ end }} {{ define "body_classes" }}{{ end }}
|
||||
{{ define "header_classes" }}{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
|
||||
<span class="overview">Overview</span>
|
||||
<h1 class="title">{{ .Title }}</h1>
|
||||
<div class="content">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
||||
{{ range.Pages }}
|
||||
<div class="content">{{.Content}}</div>
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
11
layouts/_default/single.html
Normal file
11
layouts/_default/single.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
{{ define "header_css" }}{{ end }}
|
||||
{{ define "body_classes" }}{{ end }}
|
||||
{{ define "header_classes" }}{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
<h1 class="title">{{.Title}}</h1>
|
||||
<div class="content">
|
||||
{{.Content}}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
7
layouts/_default/summary.html
Normal file
7
layouts/_default/summary.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
<div class="summary">
|
||||
{{ if .Params.image }}
|
||||
<img alt="{{ .Title }}" src="{{ .Params.image }}" />
|
||||
{{ end}}
|
||||
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
|
||||
{{ .Content | truncate 100 }}
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue