Browse Source

update CEWA post with a meta desc, and fix logic for OG thumbnail

main
Noah Hall 2 years ago
parent
commit
09fb654a59
2 changed files with 3 additions and 1 deletions
  1. +1
    -1
      _includes/layouts/layout.njk
  2. +2
    -0
      photos/fall_colors_cewas.md

+ 1
- 1
_includes/layouts/layout.njk View File

@ -10,7 +10,7 @@
<meta name="Description" content="{{ renderData.description or description or metadata.description or page.description }}">
<meta property="og:type" content="{% if metadata.type %}{{ metadata.type }}{% elif metadata.layout == "post" or metadata.layout == "photos" %}article{% else %}website{% endif %}">
<meta property="og:image" content="{% if page.photos %}{{ page.photos[0].file | thumbnail }}{% else %}https://www.nthall.com/img/thumbs/noah-thumb.jpg{% endif %}">
<meta property="og:image" content="{% if photos %}{{ photos[0].file | thumbnail }}{% else %}https://www.nthall.com/img/thumbs/noah-thumb.jpg{% endif %}">
<meta property="og:url" content="https://www.nthall.com{{ page.url | url }}">
<meta property="og:title" content="{% if title %}{{ title }} | {% endif %} Noah Hall">
<meta property="og:description" content="{{ renderData.description or description or metadata.description }}">


+ 2
- 0
photos/fall_colors_cewas.md View File

@ -1,9 +1,11 @@
---
title: Fall Colors
date: 2020-11-08
description: The brightest red and yellow I've seen on a maple tree this fall came not from leaves, but from Cedar Waxwings.
tags:
- birds
layout: photos
photos:
0:
file: "/img/2020_cewa1.jpg"


Loading…
Cancel
Save