ソースを参照

Add twitter:card metatag to enable Twitter Cards support

master
Effy Elden 7年前
コミット
819bfb75c6
3個のファイルの変更4行の追加0行の削除
  1. +1
    -0
      app/views/about/index.html.haml
  2. +1
    -0
      app/views/accounts/show.html.haml
  3. +2
    -0
      app/views/stream_entries/show.html.haml

+ 1
- 0
app/views/about/index.html.haml ファイルの表示

@@ -9,6 +9,7 @@
%meta{ property: 'og:image', content: asset_url('mastodon_small.jpg') }/
%meta{ property: 'og:image:width', content: '400' }/
%meta{ property: 'og:image:height', content: '400' }/
%meta{ property: 'twitter:card', content: 'summary' }/

.wrapper
%h1


+ 1
- 0
app/views/accounts/show.html.haml ファイルの表示

@@ -12,6 +12,7 @@
%meta{ property: 'og:image', content: full_asset_url(@account.avatar.url(:original)) }/
%meta{ property: 'og:image:width', content: '120' }/
%meta{ property: 'og:image:height', content: '120' }/
%meta{ property: 'twitter:card', content: 'summary' }/

= render partial: 'header'



+ 2
- 0
app/views/stream_entries/show.html.haml ファイルの表示

@@ -14,5 +14,7 @@
%meta{ property: 'og:image:width', content: '120' }/
%meta{ property: 'og:image:height', content: '120' }/

%meta{ property: 'twitter:card', content: 'summary' }/

.activity-stream.activity-stream-headless
= render partial: @type, locals: { @type.to_sym => @stream_entry.activity, include_threads: true }

読み込み中…
キャンセル
保存