Browse Source

Refactor more stuff

master
digitalcraftsman 9 years ago
parent
commit
1718c6a472
  1. 4
      layouts/partials/latest-posts.html
  2. 4
      layouts/partials/nav.html
  3. 2
      layouts/partials/post-list.html

4
layouts/partials/latest-posts.html

@ -1,8 +1,8 @@
<ul id="post-list" class="archive readmore">
<h3>{{ with .Site.Params.readMore }}{{ . }}{{ else }}Read more{{ end }}</h3>
{{ range first 10 .Site.Pages }}
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
{{ if and (ne $url "about/") (ne $.Title .Title) }}
{{ $url := replace .Permalink .Site.BaseURL "" }}
{{ if and (ne $url "about/") }}
<li>
<a href="{{ .Permalink }}">{{ .Title }}<aside class="dates">{{ .Date.Format "Jan 2" }}</aside></a>
</li>

4
layouts/partials/nav.html

@ -1,6 +1,6 @@
<nav class="main-nav">
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
{{ if ne $url "" }}
{{ $url := replace .Permalink .Site.BaseURL "" }}
{{ if not .IsHome }}
<a href='{{ .Site.BaseURL }}'> <span class="arrow"></span>{{ with .Site.Params.home }}{{ . }}{{ else }}Home{{ end }}</a>
{{ end }}

2
layouts/partials/post-list.html

@ -1,6 +1,6 @@
<ul id="post-list">
{{ range .Paginator.Pages }}
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
{{ $url := replace .Permalink .Site.BaseURL "" }}
{{ if ne $url "about/" }}
<li>
<a href='{{ .Permalink }}'><aside class="dates">{{ .Date.Format "Jan 2" }}</aside></a>

Loading…
Cancel
Save