Browse Source

Moved read more section in archive.html partial

master
digitalcraftsman 9 years ago
parent
commit
c5250dbed8
  1. 12
      layouts/404.html
  2. 13
      layouts/_default/single.html
  3. 11
      layouts/partials/archive.html

12
layouts/404.html

@ -13,17 +13,7 @@
<h3>The page you're looking for doesn't seem to exist.</h3>
</header>
<ul id="post-list" class="archive readmore">
<h3>Read more</h3>
{{ range first 10 .Site.Pages }}
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
{{ if ne $url "about/" }}
<li>
<a href="{{ .Permalink }}">{{ .Title }}<aside class="dates">{{ .Date.Format "Jan 2" }}</aside></a>
</li>
{{ end }}
{{ end }}
</ul>
{{ partial "archive.html" . }}
</article>
{{ partial "footer.html" . }}

13
layouts/_default/single.html

@ -33,18 +33,7 @@
{{ partial "disqus.html" . }}
{{ end }}
<ul id="post-list" class="archive readmore">
<h3>Read more</h3>
{{ range first 10 .Site.Pages }}
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
{{ if ne $url "about/" }}
<li>
<a href="{{ .Permalink }}">{{ .Title }}<aside class="dates">{{ .Date.Format "Jan 2" }}</aside></a>
</li>
{{ end }}
{{ end }}
</ul>
{{ partial "archive.html" . }}
{{ partial "footer.html" . }}
</section>

11
layouts/partials/archive.html

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