add bbb theme (split to separate repo later
This commit is contained in:
0
themes/bbb/layouts/404.html
Normal file
0
themes/bbb/layouts/404.html
Normal file
11
themes/bbb/layouts/_default/baseof.html
Normal file
11
themes/bbb/layouts/_default/baseof.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html class="no-js" lang="{{ .Site.LanguageCode }}" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
|
||||
{{- partial "head.html" . -}}
|
||||
<body>
|
||||
{{- partial "header.html" . -}}
|
||||
<div id="content">
|
||||
{{- block "main" . }}{{- end }}
|
||||
</div>
|
||||
{{- partial "footer.html" . -}}
|
||||
</body>
|
||||
</html>
|
10
themes/bbb/layouts/_default/list.html
Normal file
10
themes/bbb/layouts/_default/list.html
Normal file
@@ -0,0 +1,10 @@
|
||||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ range .Pages.ByPublishDate.Reverse }}
|
||||
<p>
|
||||
<h3><a class="title" href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
||||
{{ partial "metadata.html" . }}
|
||||
<a class="summary" href="{{ .RelPermalink }}"/a>
|
||||
</p>
|
||||
{{ end }}
|
||||
{{ end }}
|
6
themes/bbb/layouts/_default/single.html
Normal file
6
themes/bbb/layouts/_default/single.html
Normal file
@@ -0,0 +1,6 @@
|
||||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ partial "metadata.html" . }}
|
||||
<br><br>
|
||||
{{ .Content }}
|
||||
{{ end }}
|
5
themes/bbb/layouts/index.html
Normal file
5
themes/bbb/layouts/index.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{{ define "main" }}
|
||||
<div>
|
||||
<h1 class="title">{{ .Site.Title }}</h1>
|
||||
</div>
|
||||
{{ end }}
|
1
themes/bbb/layouts/partials/footer.html
Normal file
1
themes/bbb/layouts/partials/footer.html
Normal file
@@ -0,0 +1 @@
|
||||
<p class="footer">{{ .Site.Params.FooterText | markdownify }}</p>
|
15
themes/bbb/layouts/partials/head.html
Normal file
15
themes/bbb/layouts/partials/head.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<base href="{{ .Site.BaseURL }}">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="/css/style.css">
|
||||
<link id="theme_css" rel="stylesheet" href="/css/style.css">
|
||||
{{ range .AlternativeOutputFormats -}}
|
||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||
{{ end -}}
|
||||
|
||||
{{ $title := print .Site.Title " | " .Title }}
|
||||
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
|
||||
<title>{{ $title }}</title>
|
||||
</head>
|
14
themes/bbb/layouts/partials/header.html
Normal file
14
themes/bbb/layouts/partials/header.html
Normal file
@@ -0,0 +1,14 @@
|
||||
<div id="nav-border" class="container">
|
||||
<nav id="menu" class="nav">
|
||||
{{ range .Site.Menus.main }}
|
||||
<a class="nav-link" href="{{ .URL }}">
|
||||
{{ if .Pre }}
|
||||
{{ $icon := printf "<i data-feather=\"%s\"></i> " .Pre | safeHTML }}
|
||||
{{ $icon }}
|
||||
{{ end }}
|
||||
{{ $text := print .Name | safeHTML }}
|
||||
{{ $text }}
|
||||
</a>
|
||||
{{ end }}
|
||||
</nav>
|
||||
</div>
|
11
themes/bbb/layouts/partials/metadata.html
Normal file
11
themes/bbb/layouts/partials/metadata.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{{ $dateTime := .PublishDate.Format "2006-01-02" }}
|
||||
{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}
|
||||
<i data-feather="calendar"></i>
|
||||
<time datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time>
|
||||
{{ with .Params.tags }}
|
||||
<i data-feather="tag"></i>
|
||||
{{ range . }}
|
||||
{{ $href := print (absURL "tags/") (urlize .) }}
|
||||
<a class="btn btn-sm btn-outline-dark tag-btn" href="{{ $href }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
Reference in New Issue
Block a user