mirror of
https://github.com/ascii-boxes/boxes.git
synced 2025-08-12 16:17:30 +02:00
Added canonical link elements to all pages; new variable 'page.sitehost'
This commit is contained in:
@ -49,3 +49,4 @@ defaults:
|
|||||||
path: "" # everywhere
|
path: "" # everywhere
|
||||||
values:
|
values:
|
||||||
bxemail: '<boxes(at)thomasjensen.com>'
|
bxemail: '<boxes(at)thomasjensen.com>'
|
||||||
|
sitehost: 'boxes.thomasjensen.com'
|
||||||
|
@ -12,8 +12,12 @@
|
|||||||
<meta name="author" content="Thomas Jensen" />
|
<meta name="author" content="Thomas Jensen" />
|
||||||
<meta name="robots" content="index,follow" />
|
<meta name="robots" content="index,follow" />
|
||||||
{% if page.sedesc %}
|
{% if page.sedesc %}
|
||||||
|
<!-- start page -->
|
||||||
<meta name="description" content="{{ page.sedesc }}" />
|
<meta name="description" content="{{ page.sedesc }}" />
|
||||||
<meta name="keywords" content="software, ascii, ascii art, filter, command line, box, boxes, box drawing" />
|
<meta name="keywords" content="software, ascii, ascii art, filter, command line, box, boxes, box drawing" />
|
||||||
|
<link rel="canonical" href="http://{{ page.sitehost }}/" />
|
||||||
|
{% else %}
|
||||||
|
<link rel="canonical" href="http://{{ page.sitehost }}{{ page.url }}" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
if (window.location.hostname == "ascii-boxes.github.io") {
|
if (window.location.hostname == "ascii-boxes.github.io") {
|
||||||
@ -25,7 +29,7 @@
|
|||||||
else if (targetPath.indexOf(prjNamePrefix + "/") == 0) {
|
else if (targetPath.indexOf(prjNamePrefix + "/") == 0) {
|
||||||
targetPath = targetPath.substring(prjNamePrefix.length);
|
targetPath = targetPath.substring(prjNamePrefix.length);
|
||||||
}
|
}
|
||||||
window.location = window.location.protocol + "//boxes.thomasjensen.com"
|
window.location = window.location.protocol + "//{{ page.sitehost }}"
|
||||||
+ targetPath + window.location.hash;
|
+ targetPath + window.location.hash;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -429,7 +429,7 @@ self-explanatory, though.
|
|||||||
<I>Boxes</I>
|
<I>Boxes</I>
|
||||||
|
|
||||||
is available from its website at
|
is available from its website at
|
||||||
<A HREF="http://boxes.thomasjensen.com/">http://boxes.thomasjensen.com/</A>.
|
<A HREF="http://{{ page.sitehost }}/">http://{{ page.sitehost }}/</A>.
|
||||||
The website also features a number
|
The website also features a number
|
||||||
of examples illustrating this manual page as well as more in-depth
|
of examples illustrating this manual page as well as more in-depth
|
||||||
documentation.
|
documentation.
|
||||||
|
Reference in New Issue
Block a user