added dynamic titles to pages for SEO

This commit is contained in:
rawleyIfowler
2022-02-27 12:24:52 -06:00
parent a2779c487c
commit 161f68ba85
6 changed files with 54 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
{{ template "header.tmpl" . }}
<h2>Blog posts</h2>
{{ range $val := . }}
{{ range $val := .Posts }}
<div class="post-record">
<div>
<a class="post-record-title" href="/blog/post/{{ $val.Url }}">{{ $val.Title }}</a>

View File

@@ -1,4 +1,14 @@
{{ template "header.tmpl" . }}
<html>
<head>
<meta lang="en">
<meta charset="UTF-8">
<meta name="keywords" content="blog resume rawley-fowler rawleyportfolio rawleyxyz rawleyfowler RF rawley fowler Rawley Fowler portfolio RawleyFowler RawleyXYZ rawleyXYZ RawleyXYZ">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="/static/index.css" rel="stylesheet" type="text/css">
<title>{{ .Post.Title }}</title>
</head>
<body>
{{ template "nav.tmpl" . }}
<div>
<h2>{{ .Post.Title }}</h2>
<div>{{ .Post.Content | UnescapeHTML }}</div>

View File

@@ -6,7 +6,7 @@
<meta name="keywords" content="blog resume rawley-fowler rawleyportfolio rawleyxyz rawleyfowler RF rawley fowler Rawley Fowler portfolio RawleyFowler RawleyXYZ rawleyXYZ RawleyXYZ">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="/static/index.css" rel="stylesheet" type="text/css">
<title>rawley.xyz</title>
<title>rawley.xyz{{ .Title }}</title>
</head>
<body>
{{ template "nav.tmpl" . }}