Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
0d86a9790a
|
@ -1,41 +1,19 @@
|
||||
<!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>
|
||||
{{ 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 }}
|
||||
|
@ -1,37 +0,0 @@
|
||||
<!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>
|
||||
|
||||
|
@ -1,47 +1,15 @@
|
||||
<!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>
|
||||
|
||||
{{ 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 }}
|
||||
|
@ -1,6 +1,26 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<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">
|
||||
<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>
|
||||
|
@ -1,5 +0,0 @@
|
||||
<div class="navbar">
|
||||
<a href="/blog/">Blog Home</a>
|
||||
<a href="/posts">Posts</a>
|
||||
<a href="/">Main Site</a>
|
||||
</div>
|
Reference in New Issue
Block a user