diff --git a/404.md b/404.md index e9e66bd3db..2d5328fc74 100644 --- a/404.md +++ b/404.md @@ -52,35 +52,9 @@ if (archive==false) { gonnaFwd = true; newURL = forwardingURL.replace(redirectVal.source,redirectVal.destination); } -{% endfor %} - - // PAGE ALIASES CHECK -{% for page in site.pages %}{% if page.aliases %} - var aliases = {{ page.aliases | jsonify }}; - if( Object.prototype.toString.call( aliases ) === '[object Array]' ) { - // aliases is an array, therefore, there are multiple aliases - for (i=0; i< aliases.length; i++) - { - if (forwardingURL == aliases[i]) - { - console.log("Found via Page Aliases on a multi-alias page @", "{{ page.url }}", aliases[i]); - gonnaFwd = true; - newURL = "{{ page.url }}"; - } - } - } else { - // only one alias for this page. - if (forwardingURL == aliases) - { - console.log("Found via Page Aliases on a single-alias page @", forwardingURL.indexOf(aliases[i]), aliases[i]); - gonnaFwd = true; - newURL = "{{ page.url }}"; - } - } -{% endif %}{% endfor %} - -} // end of check for .md + {% endfor %} } // end of check for archive +} // end of check for .md var path = window.location.pathname.replace("#",""); var phrase = decodeURIComponent(path.replace(/\/+/g, ' ').trim()); diff --git a/_data/toc.yaml b/_data/toc.yaml index e1094da3a7..651403ff8c 100644 --- a/_data/toc.yaml +++ b/_data/toc.yaml @@ -2187,77 +2187,77 @@ manuals: title: Docker Swarm API glossary: -- path: /glossary/#aufs +- path: /glossary/?term=aufs title: aufs -- path: /glossary/#base-image +- path: /glossary/?term=base image title: base image -- path: /glossary/#boot2docker +- path: /glossary/?term=boot2docker title: boot2docker -- path: /glossary/#btrfs +- path: /glossary/?term=btrfs title: btrfs -- path: /glossary/#build +- path: /glossary/?term=build title: build -- path: /glossary/#cgroups +- path: /glossary/?term=cgroups title: cgroups -- path: /glossary/#compose +- path: /glossary/?term=Compose title: Compose -- path: /glossary/#copy-on-write +- path: /glossary/?term=copy-on-write title: copy-on-write -- path: /glossary/#container +- path: /glossary/?term=container title: container -- path: /glossary/#data-volume +- path: /glossary/?term=data volume title: data volume -- path: /glossary/#docker +- path: /glossary/?term=docker title: Docker -- path: /glossary/#docker-for-mac +- path: /glossary/?term=Docker for Mac title: Docker for Mac -- path: /glossary/#docker-for-windows +- path: /glossary/?term=Docker for Windows title: Docker for Windows -- path: /glossary/#docker-hub +- path: /glossary/?term=Docker Hub title: Docker Hub -- path: /glossary/#dockerfile +- path: /glossary/?term=Dockerfile title: Dockerfile -- path: /glossary/#filesystem +- path: /glossary/?term=filesystem title: filesystem -- path: /glossary/#image +- path: /glossary/?term=image title: image -- path: /glossary/#kitematic +- path: /glossary/?term=kitematic title: Kitematic -- path: /glossary/#libcontainer +- path: /glossary/?term=libcontainer title: libcontainer -- path: /glossary/#libnetwork +- path: /glossary/?term=libnetwork title: libnetwork -- path: /glossary/#link +- path: /glossary/?term=link title: link -- path: /glossary/#machine +- path: /glossary/?term=Machine title: Machine -- path: /glossary/#node +- path: /glossary/?term=node title: node -- path: /glossary/#overlay-network-driver +- path: /glossary/?term=overlay network driver title: overlay network driver -- path: /glossary/#overlay-storage-driver +- path: /glossary/?term=overlay storage driver title: overlay storage driver -- path: /glossary/#registry +- path: /glossary/?term=registry title: registry -- path: /glossary/#repository +- path: /glossary/?term=repository title: repository -- path: /glossary/#service +- path: /glossary/?term=service title: service -- path: /glossary/#service-discovery +- path: /glossary/?term=service discovery title: service discovery -- path: /glossary/#swarm +- path: /glossary/?term=swarm title: swarm -- path: /glossary/#docker-swarm +- path: /glossary/?term=Docker Swarm title: Docker Swarm -- path: /glossary/#swarm-mode +- path: /glossary/?term=swarm mode title: swarm mode -- path: /glossary/#tag +- path: /glossary/?term=tag title: tag -- path: /glossary/#task +- path: /glossary/?term=task title: task -- path: /glossary/#toolbox +- path: /glossary/?term=toolbox title: Toolbox -- path: /glossary/#union-file-system +- path: /glossary/?term=Union file system title: Union file system -- path: /glossary/#virtual-machine +- path: /glossary/?term=virtual machine title: virtual machine diff --git a/_layouts/docs.html b/_layouts/docs.html index 7d218a189a..5a33c73f75 100644 --- a/_layouts/docs.html +++ b/_layouts/docs.html @@ -88,6 +88,13 @@ else %}{% assign edit_url = "" %}{% endif %} {% break %} {% endif %} {% endfor % {% if page.title %}

{{ page.title }}

{% endif %} {% if page.advisory %}
{{ site.data.advisories.texts[page.advisory] | markdownify }}
{% endif %}{% endif %} {% unless page.tree == false %}{% include read_time.html %}{% endunless %}{{ content }} + + {% assign keywords = page.keywords | split:"," %} + {% for keyword in keywords %}{% assign strippedKeyword = keyword | strip %} + {% capture keywordlist %}{{ keywordlist }}{{strippedKeyword}}{% unless forloop.last %}, {% endunless %}{% endcapture %} + {% endfor %} + {% if keywordlist.size > 0 %}{{ keywordlist }}{% endif %} +