Skip to content

Commit

Permalink
Feat create new tags (#1666)
Browse files Browse the repository at this point in the history
* update og:url

* feat - create new tags

* Update head.html

* fix end tag

* fix - change logic to author

* create image post - test

* Update 2024-09-29-security-releases.md

* Update head.html

* Update head.html

* Update head.html

* Update 2024-09-29-security-releases.md

* remove test

---------

Co-authored-by: Sebastian Beltran <bjohansebas@gmail.com>
  • Loading branch information
carlosstenzel and bjohansebas authored Nov 4, 2024
1 parent b24af37 commit 9742627
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,32 @@

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="{{page.description}}">

<meta property="og:url" content="https://expressjs.com">
<meta property="og:type" content="website">
<meta property="og:title" content="{{page.title}}">
<meta property="og:url" content="https://expressjs.com{{page.url}}">

{% if page.author %}
<meta property="og:type" content="article" >
<meta property="og:article:author" content="{{page.author}}">
{% else %}
<meta property="og:type" content="website" >
{% endif %}

<meta name="title" property="og:title" content="{{page.title}}">
<meta property="og:description" content="{{page.description}}">
<meta property="og:image" content="https://expressjs.com/images/og.png">

{% if page.image %}
<meta property="og:image" content="{{page.image}}" >
{% else %}
<meta property="og:image" content="https://expressjs.com/images/og.png" >
{% endif %}
<meta name="twitter:card" content="summary_large_image">
<meta property="twitter:domain" content="expressjs.com">
<meta property="twitter:url" content="https://expressjs.com">
<meta property="twitter:url" content="https://expressjs.com{{page.url}}">
<meta name="twitter:title" content="{{page.title}}">
<meta name="twitter:description" content="{{page.description}}">
<meta name="twitter:image" content="https://expressjs.com/images/og.png">
{% if page contains "image" %}
<meta property="twitter:image" content="{{ page.image }}" >
{% else %}
<meta property="twitter:image" content="https://expressjs.com/images/og.png" >
{% endif %}

<script data-cfasync="false" src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script data-cfasync="false" src="/js/ismobile.js"></script>
Expand Down

0 comments on commit 9742627

Please sign in to comment.