Commit be038aee by sbiego

changed url, working multilang

parent 6642d66e
baseurl = "http://flowin.space/elpoblet/"
baseurl = "."
title = "elPoblet | Cooperativa"
theme = "hugo-universal-theme"
languageCode = "ca-es"
......
......@@ -11,7 +11,7 @@
<!-- {{ partial "top.html" . }} -->
<a href="{{ .Site.BaseURL }}"><section id="banner_logo"></section></a>
<a href="{{ .Site.BaseURL }}{{ .Site.Language.Lang }}"><section id="banner_logo"></section></a>
{{ partial "nav.html" . }}
......
......@@ -4,7 +4,7 @@
<div class="container">
<div class="navbar-header">
<a class="navbar-brand home" href="{{ .Site.BaseURL }}">
<a class="navbar-brand home" href="{{ .Site.BaseURL }}{{ .Site.Language.Lang }}">
<img src="{{ .Site.BaseURL }}img/logo.png" alt="{{ .Title }} logo" class="hidden-xs hidden-sm">
<img src="{{ .Site.BaseURL }}img/logo-small.png" alt="{{ .Title }} logo" class="visible-xs visible-sm">
<span class="sr-only">{{ .Title }} - {{ i18n "navHome" }}</span>
......@@ -18,15 +18,34 @@
</div>
<!--/.navbar-header -->
<div class="navbar-collapse collapse" id="navigation">
<!-- <div class="navbar-collapse collapse" id="navigation">
<ul class="nav navbar-nav navbar-right">
{{ range .Site.Menus.main }}
<li class="dropdown">
<a href="{{ .URL }}">{{ .Name }}</a>
<!-- <a href="{{ .URL | relLangURL }}">{{ .Name }}</a> -->
<a href="{{ .URL | relLangURL }}">{{ .Name }}{{ .URL }}</a>
</li>
{{ end }}
</ul>
</div> -->
<div class="navbar-collapse collapse" id="navigation">
<ul class="nav navbar-nav navbar-right">
{{ range .Site.Menus.main }}
<li class="dropdown">
{{ if .HasChildren }}
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{ .Name }} <span class="caret"></span></a>
<ul class="dropdown-menu">
{{ range .Children }}
<li><a href="{{ .URL | absLangURL }}">{{ .Name }}</a></li>
{{ end }}
</ul>
{{ else }}
<a href="{{ .URL | absLangURL }}">{{ .Name }}</a>
{{ end }}
</li>
{{ end }}
</ul>
</div>
<!--/.nav-collapse -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment