mirror of
https://github.com/SouthFox-D/SouthFox-D.github.io.git
synced 2024-11-25 08:26:51 +01:00
site/add og meta tags
- title - description
This commit is contained in:
parent
c8b7232d56
commit
56fcc234a7
1 changed files with 7 additions and 0 deletions
|
@ -34,11 +34,18 @@
|
|||
<% if (page.title){ %><meta property="og:title" content="<%= page.path %>"/><% } %>
|
||||
<meta property="og:site_name" content="<%= config.title %>"/>
|
||||
|
||||
|
||||
<% if (page.title){ %>
|
||||
<meta name="og:title" content="<%= page.title %>">
|
||||
<% } %>
|
||||
<% if(page.cover) { %>
|
||||
<meta property="og:image" content="<%= page.cover %>" />
|
||||
<% } else { %>
|
||||
<meta property="og:image" content="https://blog.southfox.me/favicon.png"
|
||||
<% } %>
|
||||
<% if (page.description){ %>
|
||||
<meta name="og:description" content="<%= page.description %>">
|
||||
<% } %>
|
||||
|
||||
<% if (theme.rss){ %>
|
||||
<link rel="alternative" href="<%- url_for('./') %><%- theme.rss %>" title="<%= config.title %>" type="application/atom+xml">
|
||||
|
|
Loading…
Reference in a new issue