Open Bug 1328707 Opened 7 years ago Updated 2 months ago

Add OpenGraph summary tag for bug lists

Categories

(bugzilla.mozilla.org :: Search, enhancement, P5)

Production
enhancement

Tracking

()

People

(Reporter: emceeaich, Unassigned, Mentored)

References

(Blocks 1 open bug)

Details

Attachments

(1 obsolete file)

When Telegram/FB/Slack/Twitter/etc unfurl OpenGraph Tags, the search name or (bug list) and number of bugs will be displayed.

Per :dylan's comment in bug 1317765, add something like:


[% IF head_content
  [% head_content FILTER none %]
[% END %]
to 
https://github.com/mozilla-bteam/bmo/blob/master/template/en/default/global/header.html.tmpl#L271

and define head_content here:

https://github.com/mozilla-bteam/bmo/blob/master/template/en/default/list/list.html.tmpl#L47

You can define a variable containing a block of markup like this:

[% meta_tags = BLOCK %]
 <meta property="og:description" content="[% searchname FILTER html %] ([% bugs.size FILTER html %])">
[% END %]

so the call would look like

[% PROCESS global/header.html.tmpl
  head_content = meta_tags
....

Private
Component: General → Search
Depends on: 1529362
Attachment #9385134 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: