~dricottone/blog

6ffce4f8f2f5a3731ee0965f3479c726c75df9d6 — Dominic Ricottone 2 years ago 4edfb14
Clean up layout files
3 files changed, 21 insertions(+), 41 deletions(-)

M layouts/_default/baseof.html
M layouts/_default/list.html
M layouts/_default/single.html
M layouts/_default/baseof.html => layouts/_default/baseof.html +16 -23
@@ 1,28 1,21 @@

<!doctype html>
<html lang="en">
  {{ partial "head.html" . }}
  <body>

    <div id="navi">
      {{ partial "navi.html" . }}
{{ partial "head.html" . }}
<body>
  <div id="navi">
    {{ partial "navi.html" . }}
  </div>
  <main>
    <table id="header">
      <tbody>
        <tr><td class="main">Dominic Ricottone</td></tr>
        <tr><td class="sub">Personal Blog and CV</td></tr>
      </tbody>
    </table>
    <div id="content">
      {{ block "main" . }}{{ end }}
    </div>

    <main>

      <table id="header">
        <tbody>
          <tr><td class="main">Dominic Ricottone</td></tr>
          <tr><td class="sub">Personal Blog and CV</td></tr>
        </tbody>
      </table>

      <div id="content">
        {{ block "main" . }}{{ end }}
      </div>

    </main>

  </body>
  </main>
</body>
</html>


M layouts/_default/list.html => layouts/_default/list.html +4 -13
@@ 1,29 1,20 @@

{{ define "main" }}

<!-- content/<collection>/_index.md -->
<article>
  <!-- pulls in content/<collection>/_index.md -->
  {{.Content}}
</article>

<ul id="list-posts">
  <!-- pulls in content/<collection>/*.md -->
  <!-- content/<collection>/*.md -->
  {{ range .Pages }}
  <li>

    <!-- see https://gohugo.io/functions/format/#hugo-date-and-time-templating-reference -->
    <h2><a href="{{.Permalink}}">{{.Title}}</a></h2>
    <div class="post">
      <p><i>posted on {{.Date.Format "2006-01-02"}}</i></p>
      <p><i>posted on {{.Date.Format "2006-01-02"}}</i></p> <!-- see https://gohugo.io/functions/format/#hugo-date-and-time-templating-reference -->
      <p>{{.Summary}}</p>
      {{ if .Truncated }}
      <p><a href="{{.Permalink}}">Read More…</a></p>
      {{ end }}
      {{ if .Truncated }} <p><a href="{{.Permalink}}">Read More…</a></p> {{ end }}
    </div>

  </li>
  {{ end }}
</ul>

{{ end }}


M layouts/_default/single.html => layouts/_default/single.html +1 -5
@@ 1,6 1,4 @@

{{ define "main" }}

{{ if (.Params.toc) }}
<div id="toc">
  <h2>Table of Contents</h2>


@@ 9,9 7,7 @@
{{ end }}

<article>
  <!-- pulls in content/<collection>/*.md -->
  <!-- content/<collection>/*.md -->
  {{.Content}}
</article>

{{ end }}