[WIP] Add a site that sort of works
This commit is contained in:
parent
5bf8622a71
commit
0b79d89eb9
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
public/
|
6
archetypes/default.md
Normal file
6
archetypes/default.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
date: {{ .Date }}
|
||||
draft: true
|
||||
---
|
||||
|
4
config.toml
Normal file
4
config.toml
Normal file
@ -0,0 +1,4 @@
|
||||
baseURL = "https://bbaovanc.com/blog"
|
||||
languageCode = "en-us"
|
||||
title = "bbaovanc's blog"
|
||||
theme = "bbaovanc"
|
6
content/article/First.md
Normal file
6
content/article/First.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
title: "First"
|
||||
date: 2021-02-21T14:50:30-06:00
|
||||
---
|
||||
|
||||
This is the first article in my blog.
|
6
content/article/Second.md
Normal file
6
content/article/Second.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
title: "Second"
|
||||
date: 2021-02-21T14:50:47-06:00
|
||||
---
|
||||
|
||||
This is the second article in my blog.
|
20
themes/bbaovanc/LICENSE
Normal file
20
themes/bbaovanc/LICENSE
Normal file
@ -0,0 +1,20 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2021 YOUR_NAME_HERE
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
2
themes/bbaovanc/archetypes/default.md
Normal file
2
themes/bbaovanc/archetypes/default.md
Normal file
@ -0,0 +1,2 @@
|
||||
+++
|
||||
+++
|
0
themes/bbaovanc/layouts/404.html
Normal file
0
themes/bbaovanc/layouts/404.html
Normal file
11
themes/bbaovanc/layouts/_default/baseof.html
Normal file
11
themes/bbaovanc/layouts/_default/baseof.html
Normal 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>
|
45
themes/bbaovanc/layouts/_default/list.html
Normal file
45
themes/bbaovanc/layouts/_default/list.html
Normal file
@ -0,0 +1,45 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
{{ partial "head.html" . }}
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
<link rel="stylesheet" href="/blog/style.css" />
|
||||
<link rel="icon" type="image/svg+xml" href="/blog/favicon.svg" />
|
||||
<link rel="alternate icon" href="/blog/favicon.ico" />
|
||||
|
||||
<title>Articles - bbaovanc's Blog</title>
|
||||
|
||||
<meta name="subject" content="Articles - 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="Articles - 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">
|
||||
<h2>Articles</h2>
|
||||
{{- range first 10 .Data.Pages }}
|
||||
<h4><a href="{{ .Permalink }}">{{ .Title }}</a></h4>
|
||||
{{- end }}
|
||||
<h4><a href="{{ .Site.BaseURL }}">Home</a></h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
37
themes/bbaovanc/layouts/_default/single.html
Normal file
37
themes/bbaovanc/layouts/_default/single.html
Normal 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/bbaovanc-1024.png" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{{ partial "header.html" . }}
|
||||
{{ partial "navbar.html" . }}
|
||||
|
||||
<div class="row">
|
||||
<div class="main">
|
||||
<h2>{{ .Title }}</h2>
|
||||
<h5>{{ .Date.Format "Mon, Jan 2, 2006" }}</h5>
|
||||
{{ .Content }}
|
||||
<h4><a href="{{ .Site.BaseURL }}">Home</a></h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
46
themes/bbaovanc/layouts/index.html
Normal file
46
themes/bbaovanc/layouts/index.html
Normal file
@ -0,0 +1,46 @@
|
||||
<!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">
|
||||
<h2>Articles</h2>
|
||||
{{- range first 10 .Data.Pages }}
|
||||
{{- if eq .Type "article" }}
|
||||
<h4><a href="{{ .Permalink }}">{{ .Title }}</a></h4>
|
||||
{{- end }}
|
||||
{{- 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>
|
0
themes/bbaovanc/layouts/partials/footer.html
Normal file
0
themes/bbaovanc/layouts/partials/footer.html
Normal file
6
themes/bbaovanc/layouts/partials/head.html
Normal file
6
themes/bbaovanc/layouts/partials/head.html
Normal 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/favicon.svg" />
|
||||
<link rel="alternate icon" href="/blog/favicon.ico" />
|
3
themes/bbaovanc/layouts/partials/header.html
Normal file
3
themes/bbaovanc/layouts/partials/header.html
Normal file
@ -0,0 +1,3 @@
|
||||
<div class="header">
|
||||
<h1>bbaovanc's Blog</h1>
|
||||
</div>
|
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/">Blog Home</a>
|
||||
<a href="/article">Articles</a>
|
||||
<a href="/">Main Site</a>
|
||||
</div>
|
108
themes/bbaovanc/static/css/style.css
Normal file
108
themes/bbaovanc/static/css/style.css
Normal file
@ -0,0 +1,108 @@
|
||||
@media screen and (max-width: 700px) {
|
||||
.row {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 400px) {
|
||||
.navbar a {
|
||||
float: none;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: sans-serif;
|
||||
}
|
||||
a {
|
||||
color: blue;
|
||||
}
|
||||
|
||||
.header {
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
background: #4FA2F5;
|
||||
color: white;
|
||||
}
|
||||
.header h1 {
|
||||
font-size: 40px;
|
||||
}
|
||||
|
||||
.navbar {
|
||||
overflow: hidden;
|
||||
background-color: #999;
|
||||
}
|
||||
.navbar a {
|
||||
float: left;
|
||||
display: block;
|
||||
color: white;
|
||||
text-align: center;
|
||||
padding: 14px 20px;
|
||||
text-decoration: none;
|
||||
}
|
||||
/* .navbar a.right {
|
||||
float: right;
|
||||
} */
|
||||
.navbar a:hover {
|
||||
background-color: #ddd;
|
||||
color: black;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.side {
|
||||
flex: 25%;
|
||||
background-color: lightgray;
|
||||
padding: 20px;
|
||||
}
|
||||
.main {
|
||||
flex: 70%;
|
||||
background-color: white;
|
||||
padding: 20px;
|
||||
max-width: 650px;
|
||||
}
|
||||
.footer {
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
background: #ddd;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
body {
|
||||
background-color: black;
|
||||
}
|
||||
a {
|
||||
color: #4da6ff;
|
||||
}
|
||||
.header {
|
||||
background: #1A406B;
|
||||
color: lightgray;
|
||||
}
|
||||
.navbar {
|
||||
background-color: #222;
|
||||
}
|
||||
.navbar a {
|
||||
color: lightgray;
|
||||
}
|
||||
.navbar a:hover {
|
||||
background-color: #444;
|
||||
color: white;
|
||||
}
|
||||
.side {
|
||||
background-color: #111;
|
||||
color: lightgray;
|
||||
}
|
||||
.main {
|
||||
background-color: black;
|
||||
color: lightgray;
|
||||
}
|
||||
.footer {
|
||||
background: #222;
|
||||
color: lightgray;
|
||||
}
|
||||
max-width: 650px;
|
||||
}
|
21
themes/bbaovanc/theme.toml
Normal file
21
themes/bbaovanc/theme.toml
Normal file
@ -0,0 +1,21 @@
|
||||
# theme.toml template for a Hugo theme
|
||||
# See https://github.com/gohugoio/hugoThemes#themetoml for an example
|
||||
|
||||
name = "Bbaovanc"
|
||||
license = "MIT"
|
||||
licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE"
|
||||
description = ""
|
||||
homepage = "http://example.com/"
|
||||
tags = []
|
||||
features = []
|
||||
min_version = "0.41.0"
|
||||
|
||||
[author]
|
||||
name = ""
|
||||
homepage = ""
|
||||
|
||||
# If porting an existing theme
|
||||
[original]
|
||||
name = ""
|
||||
homepage = ""
|
||||
repo = ""
|
Loading…
Reference in New Issue
Block a user