diff options
author | Erik Michelson | 2019-10-04 11:04:58 +0200 |
---|---|---|
committer | Erik Michelson | 2019-10-04 11:04:58 +0200 |
commit | 116bd7230c91e76e1d94e8878bef6487cbcc00ea (patch) | |
tree | 9d5b2086967f71d566dcce427f4d29692ff8fef0 /public/views | |
parent | 7182fecf5b81b9a64d61f6d3030155d3afa7b025 (diff) |
Added og-metadata to index page
- image and URL properties are only included if
the server url is set, because opengraph
protocol does not support relative links
Signed-off-by: Erik Michelson <erik@liltv.de>
Diffstat (limited to 'public/views')
-rw-r--r-- | public/views/index/head.ejs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/public/views/index/head.ejs b/public/views/index/head.ejs index d790d917..400e2e59 100644 --- a/public/views/index/head.ejs +++ b/public/views/index/head.ejs @@ -6,6 +6,15 @@ <meta name="mobile-web-app-capable" content="yes"> <meta name="description" content="<%= __('Best way to write and share your knowledge in markdown.') %>"> <meta name="keywords" content="Collaborative, Markdown, Notes"> +<meta property="og:title" content="CodiMD - <%= __('Collaborative markdown notes') %>"> +<meta property="og:description" content="<%= __('Best way to write and share your knowledge in markdown.') %>"> +<meta property="og:type" content="website"> +<% if (serverURL !== "") { %> +<meta property="og:url" content="<%- serverURL %>"> +<meta property="og:image" content="<%- serverURL %>/favicon.png"> +<meta property="og:image:alt" content="CodiMD logo"> +<meta property="og:image:type" content="image/png"> +<% } %> <title>CodiMD - <%= __('Collaborative markdown notes') %></title> <link rel="icon" type="image/png" href="<%- serverURL %>/favicon.png"> <link rel="apple-touch-icon" href="<%- serverURL %>/apple-touch-icon.png"> |