Add broken site

This commit is contained in:
2021-03-24 23:03:17 -05:00
parent d37c835b01
commit 0d86a9790a
18 changed files with 1180 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,19 @@
{{ define "main" }}
<main>
<article>
<header>
<h1>{{.Title}}</h1>
</header>
<!-- "{{.Content}}" pulls from the markdown content of the corresponding _index.md -->
{{.Content}}
</article>
<ul>
<!-- Ranges through content/posts/*.md -->
{{ range .Pages }}
<li>
<a href="{{.Permalink}}">{{.Date.Format "2006-01-02"}} | {{.Title}}</a>
</li>
{{ end }}
</ul>
</main>
{{ end }}

View File

@ -0,0 +1,15 @@
{{ define "main" }}
<h1>{{.Title}}</h1>
{{ with .Params.subtitle }}
<span class="subtitle">{{.}}</span>
{{ end }}
<div class="homepage-content">
<!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
{{.Content}}
</div>
<div>
{{ range first 10 .Site.RegularPages }}
{{ .Render "summary"}}
{{ end }}
</div>
{{ end }}

View File

@ -0,0 +1,26 @@
<head>
<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">
<base href="{{ .Site.BaseURL }}">
<link rel="canonical" href="{{ .Permalink }}">
<title>{{ .Title }}</title>
<meta name="subject" content="{{ .Title }}">
<meta name="description" content="{{ .Description }}">
<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="bbaovanc's blog">
<meta name="og:description" content="{{ .Description }}">
<meta name="og:email" content="contact@bbaovanc.com">
<meta name="og:image" content="/blog/icon/bbaovanc-1024.png">
</head>

View File

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