You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
555 B

  1. <nav class="main-nav">
  2. {{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
  3. {{ if ne $url "" }}
  4. <a href='{{ .Site.BaseURL }}'> <span class="arrow"></span>{{ with .Site.Params.home }}{{ . }}{{ else }}Home{{ end }}</a>
  5. {{ end }}
  6. {{ if ne $url "about/" }}
  7. <a href='{{ .Site.BaseURL }}about'>{{ with .Site.Params.about }}{{ . }}{{ else }}About{{ end }}</a>
  8. {{ end }}
  9. {{ if .Site.Params.enableRSS }}
  10. <a class="cta" href="{{ .Site.RSSLink }}">{{ with .Site.Params.subscribe }}{{ . }}{{ else }}Subscribe{{ end }}</a>
  11. {{ end }}
  12. </nav>