Add twitter:card metatag to enable Twitter Cards support
parent
9f21eb6064
commit
819bfb75c6
|
@ -9,6 +9,7 @@
|
||||||
%meta{ property: 'og:image', content: asset_url('mastodon_small.jpg') }/
|
%meta{ property: 'og:image', content: asset_url('mastodon_small.jpg') }/
|
||||||
%meta{ property: 'og:image:width', content: '400' }/
|
%meta{ property: 'og:image:width', content: '400' }/
|
||||||
%meta{ property: 'og:image:height', content: '400' }/
|
%meta{ property: 'og:image:height', content: '400' }/
|
||||||
|
%meta{ property: 'twitter:card', content: 'summary' }/
|
||||||
|
|
||||||
.wrapper
|
.wrapper
|
||||||
%h1
|
%h1
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
%meta{ property: 'og:image', content: full_asset_url(@account.avatar.url(:original)) }/
|
%meta{ property: 'og:image', content: full_asset_url(@account.avatar.url(:original)) }/
|
||||||
%meta{ property: 'og:image:width', content: '120' }/
|
%meta{ property: 'og:image:width', content: '120' }/
|
||||||
%meta{ property: 'og:image:height', content: '120' }/
|
%meta{ property: 'og:image:height', content: '120' }/
|
||||||
|
%meta{ property: 'twitter:card', content: 'summary' }/
|
||||||
|
|
||||||
= render partial: 'header'
|
= render partial: 'header'
|
||||||
|
|
||||||
|
|
|
@ -14,5 +14,7 @@
|
||||||
%meta{ property: 'og:image:width', content: '120' }/
|
%meta{ property: 'og:image:width', content: '120' }/
|
||||||
%meta{ property: 'og:image:height', content: '120' }/
|
%meta{ property: 'og:image:height', content: '120' }/
|
||||||
|
|
||||||
|
%meta{ property: 'twitter:card', content: 'summary' }/
|
||||||
|
|
||||||
.activity-stream.activity-stream-headless
|
.activity-stream.activity-stream-headless
|
||||||
= render partial: @type, locals: { @type.to_sym => @stream_entry.activity, include_threads: true }
|
= render partial: @type, locals: { @type.to_sym => @stream_entry.activity, include_threads: true }
|
||||||
|
|
Loading…
Reference in New Issue