comparison website/www/_templates/layout.html @ 6666:54af7ce65e6e

Add canonical url link in header Add canonical url to all pages. Requires upgrade to at least 1.8.0 of sphinx. Upgraded virualenv on sourceforge to have sphinx 1.8.5 to allow it to work. Hand patched the files on sourceforge and deployed. Also added a postprocess step to Makefile needed on sourceforge to load searchtools.js.
author John Rouillard <rouilj@ieee.org>
date Mon, 09 May 2022 19:57:16 -0400
parents 2aa045e06fff
children c574d888dd87
comparison
equal deleted inserted replaced
6665:bd4097fa0671 6666:54af7ce65e6e
32 }; 32 };
33 </script> 33 </script>
34 {%- for scriptfile in script_files %} 34 {%- for scriptfile in script_files %}
35 <script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script> 35 <script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
36 {%- endfor %} 36 {%- endfor %}
37 {%- if pageurl %}
38 <link rel="canonical" href="{{ pageurl|e }}" />
39 {%- endif %}
37 {%- if use_opensearch %} 40 {%- if use_opensearch %}
38 <link rel="search" type="application/opensearchdescription+xml" 41 <link rel="search" type="application/opensearchdescription+xml"
39 title="{% trans docstitle=docstitle|e %}Search within {{ docstitle }}{% endtrans %}" 42 title="{% trans docstitle=docstitle|e %}Search within {{ docstitle }}{% endtrans %}"
40 href="{{ pathto('_static/opensearch.xml', 1) }}"/> 43 href="{{ pathto('_static/opensearch.xml', 1) }}"/>
41 {%- endif %} 44 {%- endif %}

Roundup Issue Tracker: http://roundup-tracker.org/