Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: templates/default.tmpl

Issue 29332884: Issue 3435 - add missing trailing slash to the canonical url (Closed)
Left Patch Set: Created Dec. 18, 2015, 5:33 p.m.
Right Patch Set: Removed the filter went with jinja2 Created Dec. 18, 2015, 5:43 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « filters/stripindex.py ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html lang="{{locale}}"> 2 <html lang="{{locale}}">
3 <head> 3 <head>
4 <meta charset="UTF-8" /> 4 <meta charset="UTF-8" />
5 <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scal e=1,user-scalable=no" /> 5 <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scal e=1,user-scalable=no" />
6 <meta http-equiv="X-UA-Compatible" content="IE=edge"> 6 <meta http-equiv="X-UA-Compatible" content="IE=edge">
7 7
8 {% if title %} 8 {% if title %}
9 <title>{{title}} | Eyeo GmbH</title> 9 <title>{{title}} | Eyeo GmbH</title>
10 {% else %} 10 {% else %}
11 <title>Eyeo GmbH</title> 11 <title>Eyeo GmbH</title>
12 {% endif %} 12 {% endif %}
13 13
14 <link rel="shortcut icon" href="/images/favicon.png" /> 14 <link rel="shortcut icon" href="/images/favicon.png" />
15 15
16 <link rel="stylesheet" href="/css/styles.css" type="text/css" media="all"> 16 <link rel="stylesheet" href="/css/styles.css" type="text/css" media="all">
17 17
18 <script src="/js/jquery.js"></script> 18 <script src="/js/jquery.js"></script>
19 <script src="/js/scripts.js"></script> 19 <script src="/js/scripts.js"></script>
20 20
21 {% if page == "index" or page == "" %} 21 <link rel="canonical" href="https://eyeo.com/{{ page[:-5] if page.endswith('in dex') else page }}">
Sebastian Noack 2015/12/18 18:01:37 Argh, sorry. I just realized that this will break
22 <link rel="canonical" href="https://eyeo.com">
23 {% else %}
24 <link rel="canonical" href="https://eyeo.com/{{page|stripindex}}/">
Sebastian Noack 2015/12/18 17:42:46 This will add a redundant slash if the we didn't s
25 {% endif %}
26 22
27 {% block head %} 23 {% block head %}
28 {{head|safe}} 24 {{head|safe}}
29 {% endblock %} 25 {% endblock %}
30 </head> 26 </head>
31 27
32 <body id="top" class="home page page-template-default apollo_validation_on cover wpb-js-composer js-comp-ver-3.6.14.1 vc_responsive"> 28 <body id="top" class="home page page-template-default apollo_validation_on cover wpb-js-composer js-comp-ver-3.6.14.1 vc_responsive">
33 29
34 <header id="header"> 30 <header id="header">
35 <div class="content-block"> 31 <div class="content-block">
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 <div class="footer-text"> 64 <div class="footer-text">
69 Adblock Plus™ and Acceptable Ads™ are registered trademarks of Eyeo GmbH . 65 Adblock Plus™ and Acceptable Ads™ are registered trademarks of Eyeo GmbH .
70 </div> 66 </div>
71 67
72 <a href="#top" id="to-top" style="opacity: 0;"></a> 68 <a href="#top" id="to-top" style="opacity: 0;"></a>
73 </div> 69 </div>
74 </footer> 70 </footer>
75 </body> 71 </body>
76 72
77 </html> 73 </html>
LEFTRIGHT

Powered by Google App Engine
This is Rietveld