Skip to content

Commit

Permalink
[#138] Remove span with notranslate attribute from title tag
Browse files Browse the repository at this point in the history
Since we don't want Google to translate the organisation names I tried
adding a span tag with a notranslate attribute around the org in the
title. This doesn't work however since you cannot have markup in the
title.

I can't see how to solve this without resorting to some javascript
manipulation of the title.
  • Loading branch information
zzgvh committed Feb 26, 2013
1 parent 672064f commit 49b4740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion akvo/templates/partner_sites/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<meta charset="utf-8"></meta>
<meta name="google-translate-customization" content="ff4c8027f6d7342d-15c28fc8266bbfde-g0ad3b6e7a7f4b265-b"></meta>

<title>{% block title %}{% endblock title %}<span class="notranslate">{{organisation}}</span></title>
<title>{% block title %}{% endblock title %}{{organisation}}</title>

{% asset_bundle 'partner_sites_style' %}
{% if stylesheet %}<link rel="stylesheet" href="{{MEDIA_URL}}{{stylesheet}}">{% endif %}
Expand Down

0 comments on commit 49b4740

Please sign in to comment.