Index: templates/default.tmpl |
=================================================================== |
--- a/templates/default.tmpl |
+++ b/templates/default.tmpl |
@@ -13,20 +13,31 @@ |
# |
# You should have received a copy of the GNU General Public License |
# along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
#} |
<!DOCTYPE html> |
<html lang="{{locale}}" dir="{{"rtl" if config.has_option("rtl", locale) else "ltr"}}" itemscope="itemscope" itemtype="http://schema.org/WebPage"> |
<head> |
- <title>{{title|translate("title")}}</title> |
- |
<meta charset="utf-8"> |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
+ |
+ <title>{{title|translate("title", "meta")}}</title> |
+ {% if description %} |
+ <meta name="description" content="{{description|translate("description", "meta")}}"> |
+ {% endif %} |
+ |
+ {# facebook / Open Graph http://ogp.me/ #} |
+ <meta property="og:image" content="{{og_image if og_image else '/img/adblockplus_promo.png'}}" /> |
+ |
+ {# twitter https://dev.twitter.com/cards/markup #} |
+ <meta name="twitter:site" content="@AdblockPlus" /> |
+ <meta name="twitter:creator" content="@AdblockPlus" /> |
+ |
<link rel="stylesheet" href="/css/main.css" class="cssfx"> |
<link rel="stylesheet" href="/css/main-desktop.css" media="(min-width: 1000px)" class="cssfx"> |
<link rel="stylesheet" href="/css/main-mobile.css" media="(max-width: 1000px)"> |
<link rel="canonical" href="https://adblockplus.org/{{page}}"> |
<link rel="apple-touch-icon" href="/img/favicon-large.png" /> |
<!--[if IE 8]> |