add bbb theme (split to separate repo later

This commit is contained in:
2022-07-31 09:34:20 -04:00
parent 47b6fbe3b5
commit ff7fcadfdb
13 changed files with 133 additions and 0 deletions

View File

@@ -0,0 +1 @@
<p class="footer">{{ .Site.Params.FooterText | markdownify }}</p>

View 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>

View 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>

View 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 }}