Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
379ed67751 | |||
9495f736e6 | |||
d37c835b01 |
16
.gitignore
vendored
Normal file
16
.gitignore
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
|
||||
# Created by https://www.toptal.com/developers/gitignore/api/hugo
|
||||
# Edit at https://www.toptal.com/developers/gitignore?templates=hugo
|
||||
|
||||
### Hugo ###
|
||||
# Generated files by hugo
|
||||
/public/
|
||||
/resources/_gen/
|
||||
hugo_stats.json
|
||||
|
||||
# Executable may be added to repository
|
||||
hugo.exe
|
||||
hugo.darwin
|
||||
hugo.linux
|
||||
|
||||
# End of https://www.toptal.com/developers/gitignore/api/hugo
|
6
archetypes/default.md
Normal file
6
archetypes/default.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
date: {{ .Date }}
|
||||
draft: true
|
||||
---
|
||||
|
21
config.toml
Normal file
21
config.toml
Normal file
@ -0,0 +1,21 @@
|
||||
baseURL = "https://bbaovanc.com/blog/"
|
||||
languageCode = "en-us"
|
||||
title = "bbaovanc's blog"
|
||||
theme = "bbaovanc"
|
||||
|
||||
[menu]
|
||||
[[menu.main]]
|
||||
name = "Home"
|
||||
pre = "home"
|
||||
url = "/"
|
||||
weight = 1
|
||||
[[menu.main]]
|
||||
name = "Posts"
|
||||
pre = "pen-tool"
|
||||
url = "/posts/"
|
||||
weight = 2
|
||||
[[menu.main]]
|
||||
name = "Tags"
|
||||
pre = "tag"
|
||||
url = "/tags/"
|
||||
weight = 3
|
12
content/posts/first.md
Normal file
12
content/posts/first.md
Normal file
@ -0,0 +1,12 @@
|
||||
---
|
||||
title: "First"
|
||||
date: 2021-03-24T20:42:10-05:00
|
||||
draft: true
|
||||
tags: ["test"]
|
||||
---
|
||||
|
||||
Hello, world!
|
||||
|
||||
<!--more-->
|
||||
|
||||
This is some more!
|
21
content/posts/lorem_ipsum.md
Normal file
21
content/posts/lorem_ipsum.md
Normal file
@ -0,0 +1,21 @@
|
||||
---
|
||||
title: "Lorem Ipsum"
|
||||
date: 2021-03-24T20:50:43-05:00
|
||||
draft: false
|
||||
---
|
||||
|
||||
## Lorem
|
||||
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Aliquam malesuada bibendum arcu vitae. Suspendisse ultrices gravida dictum fusce ut placerat. Volutpat est velit egestas dui id ornare arcu. Quisque egestas diam in arcu. Augue lacus viverra vitae congue eu consequat ac. Tortor at auctor urna nunc id. Eu consequat ac felis donec. Nulla aliquet porttitor lacus luctus accumsan tortor. Justo nec ultrices dui sapien. Nec ullamcorper sit amet risus. Eleifend quam adipiscing vitae proin sagittis nisl rhoncus mattis rhoncus. Risus nullam eget felis eget nunc. Ut placerat orci nulla pellentesque dignissim enim sit amet.
|
||||
|
||||
<!--more-->
|
||||
|
||||
## Ipsum
|
||||
|
||||
At varius vel pharetra vel turpis nunc eget. Dolor morbi non arcu risus quis varius. Suspendisse potenti nullam ac tortor vitae purus faucibus ornare suspendisse. Sit amet facilisis magna etiam tempor orci eu. Nulla porttitor massa id neque. Volutpat consequat mauris nunc congue nisi vitae suscipit. Aliquet risus feugiat in ante. Lacus laoreet non curabitur gravida. Diam donec adipiscing tristique risus nec feugiat. Pharetra magna ac placerat vestibulum lectus mauris ultrices eros. Sed arcu non odio euismod lacinia at quis. Aliquam ultrices sagittis orci a. Libero nunc consequat interdum varius sit amet. Donec ultrices tincidunt arcu non sodales neque. Metus dictum at tempor commodo ullamcorper a lacus vestibulum.
|
||||
|
||||
Amet consectetur adipiscing elit pellentesque habitant. Dignissim convallis aenean et tortor at risus viverra adipiscing. Odio aenean sed adipiscing diam. Sociis natoque penatibus et magnis dis parturient montes nascetur. Eget mauris pharetra et ultrices. Neque sodales ut etiam sit amet nisl. Consequat ac felis donec et odio pellentesque. Morbi non arcu risus quis varius quam quisque. Sit amet facilisis magna etiam tempor orci. Augue mauris augue neque gravida in fermentum et sollicitudin. Eget nullam non nisi est sit. Nunc eget lorem dolor sed viverra ipsum nunc. Vulputate sapien nec sagittis aliquam malesuada bibendum arcu vitae. Sed vulputate odio ut enim blandit volutpat. Turpis nunc eget lorem dolor sed viverra ipsum nunc. Fermentum posuere urna nec tincidunt. Malesuada pellentesque elit eget gravida cum sociis. Interdum velit euismod in pellentesque massa placerat duis ultricies lacus.
|
||||
|
||||
Tempor id eu nisl nunc. Et egestas quis ipsum suspendisse. Consectetur adipiscing elit ut aliquam purus sit amet luctus. Adipiscing tristique risus nec feugiat in. Nibh tellus molestie nunc non blandit massa enim. Cras fermentum odio eu feugiat. Urna id volutpat lacus laoreet non curabitur gravida arcu ac. Quis commodo odio aenean sed adipiscing diam. Vel fringilla est ullamcorper eget nulla facilisi etiam dignissim diam. Netus et malesuada fames ac turpis. Nunc scelerisque viverra mauris in aliquam. Ut porttitor leo a diam sollicitudin tempor id eu nisl. Facilisis magna etiam tempor orci eu lobortis elementum. Vitae semper quis lectus nulla at volutpat diam ut. Pellentesque adipiscing commodo elit at imperdiet dui accumsan. Risus nullam eget felis eget. Neque volutpat ac tincidunt vitae semper quis lectus. Neque egestas congue quisque egestas diam in. Egestas quis ipsum suspendisse ultrices gravida dictum fusce. A iaculis at erat pellentesque adipiscing commodo elit at imperdiet.
|
||||
|
||||
Amet aliquam id diam maecenas ultricies mi eget mauris. Est placerat in egestas erat imperdiet sed euismod. Vel quam elementum pulvinar etiam non. Eros donec ac odio tempor orci dapibus ultrices in. Sagittis nisl rhoncus mattis rhoncus urna neque. Quam viverra orci sagittis eu volutpat odio facilisis. Maecenas pharetra convallis posuere morbi leo urna molestie. Mauris pellentesque pulvinar pellentesque habitant. Cursus in hac habitasse platea dictumst quisque. Nibh venenatis cras sed felis eget velit aliquet sagittis id.
|
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
12
themes/bbaovanc/layouts/_default/baseof.html
Normal file
12
themes/bbaovanc/layouts/_default/baseof.html
Normal file
@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
{{- partial "head.html" . -}}
|
||||
<body>
|
||||
{{- partial "header.html" . -}}
|
||||
<div id="content">
|
||||
{{- block "main" . }}{{- end }}
|
||||
</div>
|
||||
{{- partial "footer.html" . -}}
|
||||
{{- partial "script.html" . -}}
|
||||
</body>
|
||||
</html>
|
12
themes/bbaovanc/layouts/_default/list.html
Normal file
12
themes/bbaovanc/layouts/_default/list.html
Normal file
@ -0,0 +1,12 @@
|
||||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ range .Pages.ByPublishDate.Reverse }}
|
||||
<p>
|
||||
<h3><a class="title" href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
||||
{{ partial "metadata.html" . }}
|
||||
<a class="summary" href="{{ .RelPermalink }}">
|
||||
<p>{{ .Summary }}</p>
|
||||
</a>
|
||||
</p>
|
||||
{{ end }}
|
||||
{{ end }}
|
6
themes/bbaovanc/layouts/_default/single.html
Normal file
6
themes/bbaovanc/layouts/_default/single.html
Normal file
@ -0,0 +1,6 @@
|
||||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ partial "metadata.html" . }}
|
||||
<br><br>
|
||||
{{ .Content }}
|
||||
{{ end }}
|
5
themes/bbaovanc/layouts/index.html
Normal file
5
themes/bbaovanc/layouts/index.html
Normal file
@ -0,0 +1,5 @@
|
||||
{{ define "main" }}
|
||||
<div id="home-jumbotron" class="jumbotron text-center">
|
||||
<h1 class="title">{{ .Site.Title }}</h1>
|
||||
</div>
|
||||
{{ end }}
|
0
themes/bbaovanc/layouts/partials/footer.html
Normal file
0
themes/bbaovanc/layouts/partials/footer.html
Normal file
31
themes/bbaovanc/layouts/partials/head.html
Normal file
31
themes/bbaovanc/layouts/partials/head.html
Normal file
@ -0,0 +1,31 @@
|
||||
<head>
|
||||
</head>
|
||||
|
||||
<head>
|
||||
<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">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="/blog/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="/blog/css/style.css">
|
||||
|
||||
<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">
|
||||
|
||||
{{ $title := print .Site.Title " | " .Title }}
|
||||
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
|
||||
<title>{{ $title }}</title>
|
||||
</head>
|
14
themes/bbaovanc/layouts/partials/header.html
Normal file
14
themes/bbaovanc/layouts/partials/header.html
Normal file
@ -0,0 +1,14 @@
|
||||
<div id="nav-border" class="container">
|
||||
<nav id="nav" class="nav justify-content-center">
|
||||
{{ range .Site.Menus.main }}
|
||||
<a class="nav-link" href="{{ .URL }}">
|
||||
{{ if .Pre }}
|
||||
{{ $icon := printf "<i data-feather=\"%s\"></i> " .Pre | safeHTML }}
|
||||
{{ $icon }}
|
||||
{{ end }}
|
||||
{{ $text := print .Name | safeHTML }}
|
||||
{{ $text }}
|
||||
</a>
|
||||
{{ end }}
|
||||
</nav>
|
||||
</div>
|
11
themes/bbaovanc/layouts/partials/metadata.html
Normal file
11
themes/bbaovanc/layouts/partials/metadata.html
Normal file
@ -0,0 +1,11 @@
|
||||
{{ $dateTime := .PublishDate.Format "2006-01-02" }}
|
||||
{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}
|
||||
<i data-feather="calendar"></i>
|
||||
<time datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time>
|
||||
{{ with .Params.tags }}
|
||||
<i data-feather="tag"></i>
|
||||
{{ range . }}
|
||||
{{ $href := print (absURL "tags/") (urlize .) }}
|
||||
<a class="btn btn-sm btn-outline-dark tag-btn" href="{{ $href }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
4
themes/bbaovanc/layouts/partials/script.html
Normal file
4
themes/bbaovanc/layouts/partials/script.html
Normal file
@ -0,0 +1,4 @@
|
||||
<script src="/js/feather.min.js"></script>
|
||||
<script>
|
||||
feather.replace()
|
||||
</script>
|
7
themes/bbaovanc/static/css/disabled/bootstrap.min.css
vendored
Normal file
7
themes/bbaovanc/static/css/disabled/bootstrap.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
13
themes/bbaovanc/static/css/disabled/feather.min.js
vendored
Normal file
13
themes/bbaovanc/static/css/disabled/feather.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
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