edryd.org

some of my neat stuff
git clone git://edryd.org/edryd.org
Log | Files | Refs | LICENSE

single.html (2021B)


      1 {{ define "main" }}
      2   <section itemscope itemtype="http://schema.org/BlogPosting">
      3     <div class="container">
      4 
      5       <header class="post-header heading">
      6         <h1>{{ .Title }}</h1>
      7         {{ with .Description }}
      8           <h3>{{ . }}</h3>
      9         {{ end }}
     10         <h5 class="post-meta">
     11           <!-- TODO fix author -->
     12           <span itemprop="author" itemscope itemtype="http://schema.org/Person">
     13             <span itemprop="name">{{ .Site.Author.Name }}</span>
     14           </span>
     15           {{ if eq .Section "posts" }}
     16             <time datetime="{{ .Date }}" itemprop="datePublished">
     17               <i class="far fa-calendar"></i> {{ .Date.Format "Jan 2, 2006" }}
     18             </time>
     19             <i class="far fa-clock"></i> {{ .ReadingTime }} mins
     20           {{ end }}
     21 
     22           {{ partial "share.html" }}
     23         </h5>
     24       </header>
     25 
     26       <div class="post-content" itemprop="articleBody">
     27         {{ .Content }}
     28       </div>
     29 
     30       {{ if eq .Section "posts" }}
     31         <h5 class="pt-4" style="text-transform: none;">
     32           <span itemprop="author" itemscope itemtype="http://schema.org/Person">
     33             <span itemprop="name">Ed van Bruggen</span>
     34           </span>
     35         </h5>
     36       {{ end }}
     37 
     38       <div class="row text-center justify-content-between pt-4">
     39         <div class="col-md-4">
     40           {{ with .PrevInSection }}
     41             <span class="block text-inc text-bold">Previous:</span>
     42             <a class="btn btn-block text-med" href="{{ .Permalink }}">
     43               <i class="fa fa-arrow-left mr-1"></i>
     44               {{ .Title | title }}
     45             </a>
     46           {{ end }}
     47         </div>
     48         <div class="col-md-4">
     49           {{ with .NextInSection }}
     50             <span class="block text-inc text-bold">Next:</span>
     51             <a class="btn btn-block text-med" href="{{ .Permalink }}">
     52               {{ .Title | title }}
     53               <i class="fa fa-arrow-right ml-1"></i>
     54             </a>
     55           {{ end }}
     56         </div>
     57       </div>
     58 
     59     </div>
     60   </section>
     61 {{ end }}