Closed ta2edchimp closed 9 years ago
sth. like this should go into show.html
template:
<meta name="og:title" content="{% if battleReport.title != '' %}{{ battleReport.title }}{% else %}{{ 'Battle in ' ~ battleReport.solarSystemName }}{% endif %}">
<meta name="og:description" content="{{ battleReport.teamA.uniquePilots }} vs. {{ battleReport.teamB.uniquePilots }}{% if battleReport.teamC.uniquePilots > 0 %} vs. {{ battleReport.teamC.uniquePilots }}{% endif %} pilots, {% if battleReport.totalLost < 1000000000000 %}{% if battleReport.totalLost < 1000000000 %}{{ (battleReport.totalLost / 1000000)|number_format(2, '.', ',') }} m{% else %}{{ (battleReport.totalLost / 1000000000)|number_format(2, '.', ',') }} b{% endif %}{% else %}{{ (battleReport.totalLost / 1000000000000)|number_format(2, '.', ',') }} tr{% endif %}illion ISK destroyed at {{ (battleReport.teamA.efficiency * 100)|number_format(1, '.', ',') }}% efficiency in {{ battleReport.solarSystemName }} on {{ battleReport.startTime|date('Y-m-d H:i') }} - {{ battleReport.endTime|date('H:i') }}">
<meta name="og:image" content="//image.eveonline.com/corporation/{{ BR_OWNERCORP_ID }}_128.png">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="{% if battleReport.title != '' %}{{ battleReport.title }}{% else %}{{ 'Battle in ' ~ battleReport.solarSystemName }}{% endif %}">
<meta name="twitter:description" content="{{ battleReport.teamA.uniquePilots }} vs. {{ battleReport.teamB.uniquePilots }}{% if battleReport.teamC.uniquePilots > 0 %} vs. {{ battleReport.teamC.uniquePilots }}{% endif %} pilots, {% if battleReport.totalLost < 1000000000000 %}{% if battleReport.totalLost < 1000000000 %}{{ (battleReport.totalLost / 1000000)|number_format(2, '.', ',') }} m{% else %}{{ (battleReport.totalLost / 1000000000)|number_format(2, '.', ',') }} b{% endif %}{% else %}{{ (battleReport.totalLost / 1000000000000)|number_format(2, '.', ',') }} tr{% endif %}illion ISK destroyed at {{ (battleReport.teamA.efficiency * 100)|number_format(1, '.', ',') }}% efficiency in {{ battleReport.solarSystemName }} on {{ battleReport.startTime|date('Y-m-d H:i') }} - {{ battleReport.endTime|date('H:i') }}">
<meta name="twitter:image" content="//image.eveonline.com/corporation/{{ BR_OWNERCORP_ID }}_128.png">
Delivered with release 0.4.1
Descriptions, maybe even Twitter Cards, Open Graph, oEmbed meta tags to provide proper preview contents.
See: