~gg/blog-theme

e7ae86fe9766831706ab0a2bcb4f7a4b698ecd19 — Gui Goncalves 3 months ago c1297aa
Remove duplication and unnecessary templates

It turns out that templates will inherit from _default
3 files changed, 0 insertions(+), 57 deletions(-)

D layouts/with-js/list.html
D layouts/with-js/single.html
D layouts/with-js/summary.html
D layouts/with-js/list.html => layouts/with-js/list.html +0 -16
@@ 1,16 0,0 @@
{{ define "main" }}
<main>
  {{ if or .Title .Content }}
  <div>
    {{ with .Title }}<h1>{{ . }}</h1>{{ end }}
    {{ with .Content }}<div>{{ . }}</div>{{ end }}
  </div>
  {{ end }}

  {{ range .Paginator.Pages }}
  {{ .Render "summary" }}
  {{ end }}
  {{ partial "pagination.html" . }}
  {{ partial "latest_posts.html" . }}
</main>
{{ end }}

D layouts/with-js/single.html => layouts/with-js/single.html +0 -28
@@ 1,28 0,0 @@
{{ define "main" }}
<main>
  <article>
    <h1>{{ .Title }}</h1>
    {{ if not .IsPage }}
    <time>{{ .Date.Format "02.01.2006" }}</time>
    {{ end }}
    <div>
      {{ .Content }}
    </div>
    {{ with .Params.tags }}
    <div>
      <ul id="tags">
        {{ range . }}
        <li><a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></li>
        {{ end }}
      </ul>
    </div>
    {{ end }}
    {{ with .Site.DisqusShortname }}
    <div>
      {{ template "_internal/disqus.html" . }}
    </div>
    {{ end }}
  </article>
  {{ partial "latest_posts.html" . }}
</main>
{{ end }}

D layouts/with-js/summary.html => layouts/with-js/summary.html +0 -13
@@ 1,13 0,0 @@
<article class="post-summary">
  <h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
  <time>{{ .Date.Format "02.01.2006" }}</time>
  {{ range .Params.tags }}
  <a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
  {{ end }}
  <div class="summary">
    {{ .Summary }}
    {{ if .Truncated }}
    <a class="read-more" href="{{ .Permalink }}">Read more...</a>
    {{ end }}
  </div>
</article>