ppoffice / hexo-theme-hueman

A redesign of Alx's wordpress theme Hueman, ported to Hexo.
http://ppoffice.github.io/hexo-theme-hueman/
GNU General Public License v2.0
1.17k stars 335 forks source link

Automatic Open Graph meta tags for posts #283

Closed noraj closed 4 years ago

noraj commented 4 years ago

Please make sure these boxes are checked before submitting your issue. Thank you!


Description

It would be nice to have the following Open Graph meta tags automatically generated for each article (post).

<meta property="og:title" content="European Travel Destinations">
<meta property="og:description" content="Offering tour packages for individuals or groups.">
<meta property="og:image" content="http://euro-travel-example.com/thumbnail.jpg">
<meta property="og:url" content="http://euro-travel-example.com/index.htm">
<meta property="og:site_name" content="European Travel, Inc.">

This is independent from https://github.com/ppoffice/hexo-theme-hueman/wiki/Miscellaneous#open-graph

noraj commented 4 years ago

It seems that it is already the case (Idk if it's hexo or the theme).

For this article https://rawsec.ml/en/archlinux-kalu/ I have

<meta property="og:type" content="article">
<meta property="og:title" content="Kalu - Keeping ArchLinux Up-to-date">
<meta property="og:url" content="https://rawsec.ml/en/archlinux-kalu/index.html">
<meta property="og:site_name" content="Rawsec">
<meta property="og:description" content="Intro# Basically updating ArchLinux is as easy as running pacman -Syu. But blindly running pacman -Syu everyday is not necessarily a good idea. Sometimes some updates require manual intervention, so y">
<meta property="og:locale" content="en_US">
<meta property="og:image" content="https://rawsec.ml/images/archlinux.svg">