mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Add video name to page titles
This commit is contained in:
parent
722bf53983
commit
3a6119578d
2 changed files with 9 additions and 2 deletions
|
|
@ -68,13 +68,13 @@ class DefaultLayout {
|
|||
|
||||
render({
|
||||
content,
|
||||
pageTitle = null
|
||||
title = null
|
||||
}) {
|
||||
return /* html */`
|
||||
<!doctype html>
|
||||
<html lang="${ config.head.htmlAttrs.lang }">
|
||||
<head>
|
||||
<title>${ pageTitle || config.head.title }</title>
|
||||
<title>${ title || config.head.title }</title>
|
||||
|
||||
${ this.generateMetaTags() }
|
||||
|
||||
|
|
|
|||
|
|
@ -11,6 +11,13 @@ class TV {
|
|||
alias: 'video'
|
||||
},
|
||||
|
||||
eleventyComputed: {
|
||||
title: ({ video }) => {
|
||||
// console.log('data', data)
|
||||
return `${ video.name } - Does It ARM`
|
||||
}
|
||||
},
|
||||
|
||||
permalink: ({ video }) => {
|
||||
// console.log('data', data)
|
||||
return `tv/${ video.slug }/`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue