Add files
This commit is contained in:
0
themes/bbaovanc/layouts/404.html
Normal file
0
themes/bbaovanc/layouts/404.html
Normal file
13
themes/bbaovanc/layouts/_default/baseof.html
Normal file
13
themes/bbaovanc/layouts/_default/baseof.html
Normal file
@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
{{- partial "head.html" . -}}
|
||||
</head>
|
||||
<body>
|
||||
{{- partial "header.html" . -}}
|
||||
<div id="content">
|
||||
{{- block "main" . }}{{- end }}
|
||||
</div>
|
||||
{{- partial "footer.html" . -}}
|
||||
</body>
|
||||
</html>
|
14
themes/bbaovanc/layouts/_default/list.html
Normal file
14
themes/bbaovanc/layouts/_default/list.html
Normal file
@ -0,0 +1,14 @@
|
||||
{{ define "main" }}
|
||||
|
||||
{{ range .Data.Pages }}
|
||||
<article class="post-snippet">
|
||||
<h3>
|
||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
</h3>
|
||||
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
|
||||
{{ .Date.Format "January 2, 2006" }}
|
||||
</time>
|
||||
</article>
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
11
themes/bbaovanc/layouts/_default/single.html
Normal file
11
themes/bbaovanc/layouts/_default/single.html
Normal file
@ -0,0 +1,11 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<div class="row">
|
||||
<div class="main">
|
||||
<h1>{{ .Title }}</h2>
|
||||
<h4>{{ .Date.Format "Mon, Jan 2, 2006" }}</h5>
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ end }}
|
11
themes/bbaovanc/layouts/index.html
Normal file
11
themes/bbaovanc/layouts/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<div class="row">
|
||||
<div class="main">
|
||||
<p>
|
||||
This is my blog website.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ end }}
|
0
themes/bbaovanc/layouts/partials/footer.html
Normal file
0
themes/bbaovanc/layouts/partials/footer.html
Normal file
24
themes/bbaovanc/layouts/partials/head.html
Normal file
24
themes/bbaovanc/layouts/partials/head.html
Normal file
@ -0,0 +1,24 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="/blog/css/style.css">
|
||||
<link rel="icon" type="image/svg+xml" href="/blog/icon/favicon.svg">
|
||||
<link rel="alternate icon" href="/blog/icon/favicon.ico">
|
||||
|
||||
<meta name="subject" content="{{ .Title }}">
|
||||
<meta name="description" content="{{ .Description }}">
|
||||
<meta name="url" content="{{ .Permalink }}">
|
||||
<meta name="reply-to" content="contact@bbaovanc.com">
|
||||
|
||||
<meta name="og:type" content="website">
|
||||
<meta name="og:title" content="{{ .Title }}">
|
||||
<meta name="og:url" content="{{ .Permalink }}">
|
||||
<meta name="og:site_name" content="bbaovanc's Website">
|
||||
<meta name="og:description" content="{{ .Description }}">
|
||||
<meta name="og:email" content="contact@bbaovanc.com">
|
||||
<meta name="og:image" content="/blog/icon/bbaovanc-1024.png">
|
||||
|
||||
{{ range .AlternativeOutputFormats -}}
|
||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||
{{ end -}}
|
||||
|
||||
<title>{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>
|
4
themes/bbaovanc/layouts/partials/header.html
Normal file
4
themes/bbaovanc/layouts/partials/header.html
Normal file
@ -0,0 +1,4 @@
|
||||
<div class="header">
|
||||
<h1>{{ .Site.Title }}</h1>
|
||||
</div>
|
||||
{{ partial "navbar.html" }}
|
5
themes/bbaovanc/layouts/partials/navbar.html
Normal file
5
themes/bbaovanc/layouts/partials/navbar.html
Normal file
@ -0,0 +1,5 @@
|
||||
<div class="navbar">
|
||||
<a href="/blog/">Home</a>
|
||||
<a href="/blog/posts/">Posts</a>
|
||||
<a href="https://bbaovanc.com" rel="noreferrer" target="_blank">Main Site</a>
|
||||
</div>
|
Reference in New Issue
Block a user