Skip to content

Commit

Permalink
Trying to fix nav using baseurl via jekyll/jekyll#332 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbgvisualjournalist committed Apr 17, 2017
1 parent 27614b7 commit 5ffe223
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Expand Up @@ -13,7 +13,7 @@ description: > # this means to ignore newlines until "baseurl:"
Write an awesome description for your new site here. You can edit this
line in _config.yml. It will appear in your document head meta (for
Google search results) and in your feed.xml site description.
baseurl: "" # the subpath of your site, e.g. /blog
baseurl: "circumventing-censorship" # the subpath of your site, e.g. /blog
url: "" # http://projects.voanews.com/circumvention #localhost:4000" # the base hostname & protocol for your site, e.g. http://example.com

twitter_username: "@BrianWmson"
Expand Down
13 changes: 6 additions & 7 deletions _includes/header.html
Expand Up @@ -4,8 +4,7 @@
<div class="voa__navbar" style="/*background-color: transparent;*/">
<div class="voa__grid__full">
<div class="voa__grid">
<a href="http://www.voanews.com" class="voa__navbar__link"><div class="voa__navbar__logo"></div></a><a href="{{ "/circumventing-censorship/" | relative_url}}" class="voa__navbar__title" style="font-family: 'Oswald', Arial, sans-serif;">Circumventing <span style="color: orange;">Censorship</span></a>

<a href="http://www.voanews.com" class="voa__navbar__link"><div class="voa__navbar__logo"></div></a><a href="{{ site.baseurl }}" class="voa__navbar__title" style="font-family: 'Oswald', Arial, sans-serif;">Circumventing <span style="color: orange;">Censorship</span></a>

<div id="menuButton" class="voa__navbar__toggle"></div>

Expand Down Expand Up @@ -34,11 +33,11 @@
<li><a href="javascript:void(0);" class="has-submenu voa__navbar__language" id="" aria-haspopup="true" aria-controls="" aria-expanded="false"><div class="translation-icon"></div><span class="sub-arrow">+</span><span class="voa__no-tablet social-share-text ">Coverage</span></a>
<ul id="" role="group" aria-hidden="true" aria-labelledby="" aria-expanded="false">

<li><a lang="en" href="/circumventing-censorship/">English</a></li>
<li><a lang="zh" href="/circumventing-censorship/chinese/">中国</a></li>
<li><a lang="fa" href="/circumventing-censorship/persian/">فارسی</a></li>
<li><a lang="ru" href="/circumventing-censorship/russian/">Pусский</a></li>
<li><a lang="ur" href="/circumventing-censorship/urdu/">اردو</a></li>
<li><a lang="en" href="{{ site.baseurl }}/">English</a></li>
<li><a lang="zh" href="{{ site.baseurl }}/chinese/">中国</a></li>
<li><a lang="fa" href="{{ site.baseurl }}/persian/">فارسی</a></li>
<li><a lang="ru" href="{{ site.baseurl }}/russian/">Pусский</a></li>
<li><a lang="ur" href="{{ site.baseurl }}/urdu/">اردو</a></li>
<li><a lang="vi" href="/circumventing-censorship/vietnamese/">Tiếng Việt</a></li>

</ul>
Expand Down

0 comments on commit 5ffe223

Please sign in to comment.