keymanapp / shared-sites

Shared code across keyman.com sites
MIT License
0 stars 1 forks source link

feat: Add optional 'description' field for meta description content 📓 #34

Closed darcywong00 closed 3 weeks ago

darcywong00 commented 1 month ago

In preparation for keymanapp/keyman.com#383 of adding metadata description content headers for improving SEO.

This adds an optional page description field via PHP or HTML.

When a PHP file includes a description:

head([
  'title' => 'Features | Keyman for Windows ' . $stable_version,
  'description' => 'Keyman for Windows Features',
  ...
]);

or when a Markdown file includes a description:

---
title: ....
description: ...
---

this will allow us to write HTML header info

<meta name="description" content="....">
darcywong00 commented 1 month ago

An upcoming keyman.com PR will have the other portion of this