Add files

This commit is contained in:
2021-03-25 15:56:52 -05:00
parent d37c835b01
commit 50d217e2cc
20 changed files with 407 additions and 0 deletions

View File

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

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

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

View File

@ -0,0 +1,11 @@
{{ define "main" }}
<div class="row">
<div class="main">
<p>
This is my blog website.
</p>
</div>
</div>
{{ end }}

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

View File

@ -0,0 +1,4 @@
<div class="header">
<h1>{{ .Site.Title }}</h1>
</div>
{{ partial "navbar.html" }}

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