Index: templates/default.tmpl |
=================================================================== |
--- a/templates/default.tmpl |
+++ b/templates/default.tmpl |
@@ -13,20 +13,43 @@ |
# |
# 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")}}</title> |
saroyanm
2016/05/31 15:23:36
What was the reason of moving the title here ?
juliandoucette
2016/05/31 19:27:46
I grouped these tags based on *what kind of data t
|
+ <meta name="author" content="{{author|translate("author") if author else get_string("Eyeo GmbH / Adblock Plus", "meta")}}" /> |
saroyanm
2016/05/31 15:23:35
This is not how get_string is being used, this cau
juliandoucette
2016/05/31 19:27:46
Thanks!
|
+ {% if description %} |
saroyanm
2016/05/31 15:23:36
I'm not sure if introduction of this conditions ar
juliandoucette
2016/05/31 19:27:46
- I made description conditional because some page
saroyanm
2016/06/01 14:38:01
What about updating the logic to something like:
{
juliandoucette
2016/06/01 16:23:19
I don't see the benefit in this change?
- it break
saroyanm
2016/06/02 15:05:11
Yes you are right, in that case we will need to ad
juliandoucette
2016/06/13 18:12:49
Done.
|
+ <meta name="description" content="{{description|translate("description")}}"> |
+ {% endif %} |
+ |
+ {# facebook / Open Graph http://ogp.me/ #} |
+ {% if og_title %} |
+ <meta property="og:title" content="{{og_title|translate("og_title")}}" /> |
+ {% endif %} |
+ <meta property="og:type" content="{{og_type if og_type else 'website'}}" /> |
+ {% if og_url %} |
+ <meta property="og:url" content="{{og_url}}" /> |
+ {% endif %} |
+ {% if og_description %} |
+ <meta property="og:description" content="{{og_description|translate("og_description")}}" /> |
+ {% endif %} |
+ <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:card" content="{{twitter_card if twitter_card else 'summary'}}" /> |
+ <meta name="twitter:site" content="{{twitter_site if twitter_site else '@AdblockPlus'}}" /> |
+ <meta name="twitter:creator" content="{{twitter_creator if twitter_creator else '@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]> |