This commit is contained in:
Tom Johnson
2015-08-11 17:00:56 -07:00
parent 6cab011d1b
commit a4adb992d1
2 changed files with 8 additions and 1 deletions

View File

@ -35,6 +35,13 @@ entries:
print: true print: true
items: items:
- title: Introduction
url: /index.html
audience: writers, designers
platform: all
product: all
version: all
- title: Get started with this theme - title: Get started with this theme
url: /doc_getting_started.html url: /doc_getting_started.html
audience: writers, designers audience: writers, designers

View File

@ -1,7 +1,7 @@
{% comment %} Note that in the preview server, this code won't work because the preview sites are using different ports. These links are all relative and assume the same port. However, when you publish the built sites onto the same server, then this toggle works fine. {% endcomment %} {% comment %} Note that in the preview server, this code won't work because the preview sites are using different ports. These links are all relative and assume the same port. However, when you publish the built sites onto the same server, then this toggle works fine. {% endcomment %}
<li class="dropdown"> <li class="dropdown">
<a href="#" class="dropdown-toggle otherProgLangs" data-toggle="dropdown">Other Doc Sites<b class="caret"></b></a> <a href="#" class="dropdown-toggle otherProgLangs" data-toggle="dropdown">Custom Menu<b class="caret"></b></a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<li {% if site.audience == "writers" %}class="dropdownActive"{% endif %}><a href="{% if page.homepage == true or page.switch == false %}../writers/{{site.suffix}}">Writer docs</a> {% else %} ../writers{{page.url}}">Writer docs</a>{% endif %}</li> <li {% if site.audience == "writers" %}class="dropdownActive"{% endif %}><a href="{% if page.homepage == true or page.switch == false %}../writers/{{site.suffix}}">Writer docs</a> {% else %} ../writers{{page.url}}">Writer docs</a>{% endif %}</li>