~mna/mna.dev

234144769e1b90ccbadcc145be0f75f492709c77 — Martin Angers 30 days ago bc0fe2e master
Set title of page to post title
2 files changed, 2 insertions(+), 2 deletions(-)

M src/templates/main-head.html
M src/templates/post.html
M src/templates/main-head.html => src/templates/main-head.html +1 -1
@@ 1,4 1,4 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>martin angers | developer</title>
<title>{{if .}}{{.}}{{else}}martin angers | developer{{end}}</title>
<link rel="stylesheet" href="/css/styles.css">

M src/templates/post.html => src/templates/post.html +1 -1
@@ 1,7 1,7 @@
<!DOCTYPE html>
<html lang="en">
  <head>
    {{template "main-head.html"}}
    {{template "main-head.html" .CurrentPost.Title}}
  </head>
  <body>
    <div class="container mx-auto p-4">