Skip to content
Snippets Groups Projects
Commit d70e2a78 authored by MeiMei's avatar MeiMei Committed by syuilo
Browse files

Add some meta alternate links (#2657)

parent 7343e6e2
No related branches found
No related tags found
No related merge requests found
......@@ -23,3 +23,6 @@ block meta
link(rel='prev' href=`${config.url}/notes/${note.prev}`)
if note.next
link(rel='next' href=`${config.url}/notes/${note.next}`)
if !user.host
link(rel='alternate' href=url type='application/activity+json')
......@@ -18,3 +18,10 @@ block meta
meta(property='og:description' content= user.description)
meta(property='og:url' content= url)
meta(property='og:image' content= img)
if !user.host
link(rel='alternate' href=`${config.url}/users/${user._id}` type='application/activity+json')
if user.uri
link(rel='alternate' href=user.uri type='application/activity+json')
if user.url
link(rel='alternate' href=user.url type='text/html')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment