Human-Connection / Human-Connection

Free and open-source social network for active citizenship.
https://human-connection.social
Other
205 stars 90 forks source link

šŸ› [Bug] Wrong meta Information in HTML of Posts #2041

Open datenbrei opened 5 years ago

datenbrei commented 5 years ago

:bug: Bugreport

The Meta information, like title or author is not reflected in the meta information of the HTML header of each post. The same for the Open Graph tags.

meta

Canonical link and language setting would also be good:

<link rel="alternate" href="https://human-connection.social/article-id/article-slug/" hreflang="de">
<link rel="canonical" href="https://human-connection.social/article-id/article-slug/">

Steps to reproduce the behavior

  1. Open a post in the network
  2. Go to your browser -> Page Information

Expected behavior

I propose at least the following tags to be filled with meaningful data:

<head>
<title>title of your article</title>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="created" content="2018-07-26">
<meta name="description" content="This is about this great article">
<meta name="author" content="Author Name">
<meta name="generator" content="Human Connection Network">
</head>

Additional context

Other Warnings and Errors:

Warning: Consider adding a lang attribute to the html start tag to declare the language of this document.

There are multiple head tags in the html: head

HTML can bechecked here: https://validator.w3.org/nu/#textarea

sushidave commented 4 years ago

Currently, when pasting the address of any HC post into a post or comment the embed shows the HC logo, a standard title and a standard description:

hc-embed-standard-values

In order to provide page specific values in these embeds Open Graph tags need to be populated with these values.