mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-06-12 01:47:28 -05:00
Add basic theme files
This commit is contained in:
0
layouts/404.html
Normal file
0
layouts/404.html
Normal file
27
layouts/_default/baseof.html
Normal file
27
layouts/_default/baseof.html
Normal file
@ -0,0 +1,27 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
{{- partial "head.html" . -}}
|
||||
|
||||
<body>
|
||||
{{- partial "header.html" . -}}
|
||||
{{ partial "navbar.html" . }}
|
||||
|
||||
<div class="row">
|
||||
{{ if and (ne .Params.Toc false) .IsPage }}
|
||||
<div class="side">
|
||||
<h3>Table of Contents</h3>
|
||||
{{ .TableOfContents }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<div class="main">
|
||||
{{- block "main" . }}
|
||||
{{ .Content }}
|
||||
{{- end }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{- partial "footer.html" . -}}
|
||||
</body>
|
||||
|
||||
</html>
|
0
layouts/_default/list.html
Normal file
0
layouts/_default/list.html
Normal file
4
layouts/_default/single.html
Normal file
4
layouts/_default/single.html
Normal file
@ -0,0 +1,4 @@
|
||||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
{{ end }}
|
2
layouts/index.html
Normal file
2
layouts/index.html
Normal file
@ -0,0 +1,2 @@
|
||||
{{ define "main" }}
|
||||
{{ end }}
|
0
layouts/partials/footer.html
Normal file
0
layouts/partials/footer.html
Normal file
18
layouts/partials/head.html
Normal file
18
layouts/partials/head.html
Normal file
@ -0,0 +1,18 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="/css/bobatheme.css">
|
||||
<link rel="alternate icon" href="/favicon.ico" />
|
||||
{{ range .AlternativeOutputFormats -}}
|
||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||
{{ end -}}
|
||||
|
||||
{{ $title := print .Title " | " .Site.Title }}
|
||||
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
|
||||
<title>{{ $title }}</title>
|
||||
|
||||
{{ template "_internal/opengraph.html" . }}
|
||||
{{ template "_internal/twitter_cards.html" . }}
|
||||
{{ template "_internal/schema.html" . }}
|
||||
</head>
|
3
layouts/partials/header.html
Normal file
3
layouts/partials/header.html
Normal file
@ -0,0 +1,3 @@
|
||||
<div class="header">
|
||||
<h1>{{ .Site.Title }}</h1>
|
||||
</div>
|
6
layouts/partials/navbar.html
Normal file
6
layouts/partials/navbar.html
Normal file
@ -0,0 +1,6 @@
|
||||
<div class="navbar">
|
||||
<a href="{{ "/" | relURL }}">Home</a>
|
||||
{{ range .Site.Menus.main }}
|
||||
<a href="{{ .URL }}">{{ .Name }}</a>
|
||||
{{ end }}
|
||||
</div>
|
2
layouts/robots.txt
Normal file
2
layouts/robots.txt
Normal file
@ -0,0 +1,2 @@
|
||||
User-Agent: *
|
||||
Sitemap: {{ "sitemap.xml" | absURL }}
|
Reference in New Issue
Block a user