Browse Source

Added support for custom strings

master
digitalcraftsman 10 years ago
parent
commit
843a59263b
  1. 6
      layouts/partials/nav.html
  2. 4
      layouts/partials/pagination.html

6
layouts/partials/nav.html

@ -1,12 +1,12 @@
<nav class="main-nav">
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
{{ if ne $url "" }}
<a href='{{ .Site.BaseURL }}'> <span class="arrow"></span>Home</a>
<a href='{{ .Site.BaseURL }}'> <span class="arrow"></span>{{ with .Site.Params.home }}{{ . }}{{ else }}Home{{ end }}</a>
{{ end }}
{{ if ne $url "about/" }}
<a href='{{ .Site.BaseURL }}about'>About</a>
<a href='{{ .Site.BaseURL }}about'>{{ with .Site.Params.about }}{{ . }}{{ else }}About{{ end }}</a>
{{ end }}
<a class="cta" href="{{ .Site.BaseURL }}index.xml">Subscribe</a>
<a class="cta" href="{{ .Site.BaseURL }}index.xml">{{ with .Site.Params.subscribe }}{{ . }}{{ else }}Subscribe{{ end }}</a>
</nav>

4
layouts/partials/pagination.html

@ -3,14 +3,14 @@
{{ if .Paginator.HasPrev }}
<span class="prev">
<a href="{{.Paginator.Prev.URL}}">
<span class="arrow"></span> Newer Posts
<span class="arrow"></span> {{ with .Site.Params.newerPosts }}{{ . }}{{ else }}Newser Posts{{ end }}
</a>
</span>
{{ end }}
{{ if .Paginator.HasNext }}
<span class="next">
<a href="{{.Paginator.Next.URL}}">
Older Posts <span class="arrow"></span>
{{ with .Site.Params.olderPosts }}{{ . }}{{ else }}Older Posts{{ end }} <span class="arrow"></span>
</a>
</span>
{{ end }}

Loading…
Cancel
Save