mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -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({
|
render({
|
||||||
content,
|
content,
|
||||||
pageTitle = null
|
title = null
|
||||||
}) {
|
}) {
|
||||||
return /* html */`
|
return /* html */`
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="${ config.head.htmlAttrs.lang }">
|
<html lang="${ config.head.htmlAttrs.lang }">
|
||||||
<head>
|
<head>
|
||||||
<title>${ pageTitle || config.head.title }</title>
|
<title>${ title || config.head.title }</title>
|
||||||
|
|
||||||
${ this.generateMetaTags() }
|
${ this.generateMetaTags() }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,13 @@ class TV {
|
||||||
alias: 'video'
|
alias: 'video'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
eleventyComputed: {
|
||||||
|
title: ({ video }) => {
|
||||||
|
// console.log('data', data)
|
||||||
|
return `${ video.name } - Does It ARM`
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
permalink: ({ video }) => {
|
permalink: ({ video }) => {
|
||||||
// console.log('data', data)
|
// console.log('data', data)
|
||||||
return `tv/${ video.slug }/`
|
return `tv/${ video.slug }/`
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue