Use eleventyComputed instead of renderData

This commit is contained in:
Will Boyd 2020-06-28 10:20:44 -04:00
parent 5d46f4eac2
commit 0e031bdacb
2 changed files with 3 additions and 3 deletions

View File

@ -3,8 +3,8 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ renderData.title or title or metadata.title }}</title> <title>{{ title or metadata.title }}</title>
<meta name="Description" content="{{ renderData.description or description or metadata.description }}"> <meta name="description" content="{{ description or metadata.description }}">
<link rel="stylesheet" href="{{ '/css/index.css' | url }}"> <link rel="stylesheet" href="{{ '/css/index.css' | url }}">
<link rel="stylesheet" href="{{ '/css/prism-base16-monokai.dark.css' | url }}"> <link rel="stylesheet" href="{{ '/css/prism-base16-monokai.dark.css' | url }}">
<link rel="alternate" href="{{ metadata.feed.path | url }}" type="application/atom+xml" title="{{ metadata.title }}"> <link rel="alternate" href="{{ metadata.feed.path | url }}" type="application/atom+xml" title="{{ metadata.title }}">

View File

@ -11,7 +11,7 @@ pagination:
- tagList - tagList
addAllPagesToCollections: true addAllPagesToCollections: true
layout: layouts/home.njk layout: layouts/home.njk
renderData: eleventyComputed:
title: Tagged “{{ tag }}” title: Tagged “{{ tag }}”
permalink: /tags/{{ tag }}/ permalink: /tags/{{ tag }}/
--- ---