Almost working

This commit is contained in:
2021-03-24 21:17:05 -05:00
parent d37c835b01
commit 8d1f131b77
19 changed files with 1256 additions and 0 deletions

View File

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
<div id="content">
{{- block "main" . }}{{- end }}
</div>
{{- partial "footer.html" . -}}
</body>
</html>

View File

@ -0,0 +1,41 @@
<!DOCTYPE html>
<html lang="en">
<head>
{{ partial "head.html" . }}
<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" />
<title>Posts - bbaovanc's blog</title>
<meta name="subject" content="Posts - bbaovanc's blog" />
<meta name="description" content="This is my personal blog" />
<meta name="url" content="https://bbaovanc.com/blog/" />
<meta name="reply-to" content="contact@bbaovanc.com" />
<meta name="og:type" content="website" />
<meta name="og:title" content="Articles - bbaovanc's blog" />
<meta name="og:url" content="https://bbaovanc.com/blog/" />
<meta name="og:site_name" content="Posts - bbaovanc's blog" />
<meta name="og:description" content="This is my personal blog" />
<meta name="og:email" content="contact@bbaovanc.com" />
<meta name="og:image" content="/blog/icon/bbaovanc-1024.png" />
</head>
<body>
{{ partial "header.html" . }}
{{ partial "navbar.html" . }}
<div class="row">
<div class="main">
<h2>Posts</h2>
{{- range first 10 .Data.Pages }}
<h4><a href="{{ .Permalink }}">{{ .Title }}</a></h4>
{{- end }}
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="en">
<head>
{{ partial "head.html" . }}
<title>{{ .Title }}</title>
<meta name="subject" content="{{ .Title }}" />
<meta name="description" content="This is my personal blog" />
<meta name="url" content="https://bbaovanc.com/blog/" />
<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="https://bbaovanc.com/blog/" />
<meta name="og:site_name" content="{{ .Title }}" />
<meta name="og:description" content="This is my personal blog" />
<meta name="og:email" content="contact@bbaovanc.com" />
<meta name="og:image" content="/blog/icon/bbaovanc-1024.png" />
</head>
<body>
{{ partial "header.html" . }}
{{ partial "navbar.html" . }}
<div class="row">
<div class="main">
<h1>{{ .Title }}</h2>
<h4>{{ .Date.Format "Mon, Jan 2, 2006" }}</h5>
{{ .Content }}
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,47 @@
<!DOCTYPE html>
<html lang="en">
<head>
{{ partial "head.html" . }}
<title>bbaovanc's blog</title>
<meta name="subject" content="bbaovanc's blog" />
<meta name="description" content="This is my personal blog" />
<meta name="url" content="https://bbaovanc.com/blog/" />
<meta name="reply-to" content="contact@bbaovanc.com" />
<meta name="og:type" content="website" />
<meta name="og:title" content="bbaovanc's blog" />
<meta name="og:url" content="https://bbaovanc.com/blog/" />
<meta name="og:site_name" content="bbaovanc's blog" />
<meta name="og:description" content="This is my personal blog" />
<meta name="og:email" content="contact@bbaovanc.com" />
<meta name="og:image" content="/blog/bbaovanc-1024.png" />
</head>
<body>
{{ partial "header.html" . }}
{{ partial "navbar.html" . }}
<div class="row">
<div class="main">
{{- range first 10 .Data.Pages }}
{{- end }}
<h2>Posts</h2>
{{- range first 10 .Data.Pages }}
<h4><a href="{{ .Permalink }}">{{ .Title }}</a></h4>
{{- end }}
<h2>Pages</h2>
{{- range first 10 .Data.Pages }}
{{- if eq .Type "page" }}
<h4><a href="{{ .Permalink }}">{{ .Title }}</a></h4>
{{- end }}
{{- end }}
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,6 @@
<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">

View File

@ -0,0 +1,3 @@
<div class="header">
<h1>bbaovanc's blog</h1>
</div>

View File

@ -0,0 +1,5 @@
<div class="navbar">
<a href="/blog/">Blog Home</a>
<a href="/posts">Posts</a>
<a href="/">Main Site</a>
</div>