diff options
| author | Francesco <tomaselli.fr@gmail.com> | 2024-04-29 19:56:50 +0200 | 
|---|---|---|
| committer | Francesco <tomaselli.fr@gmail.com> | 2024-04-29 20:05:40 +0200 | 
| commit | 74329c51844759d20e973f30fdcc173bf833be95 (patch) | |
| tree | 8592a7a043f9e5a4e746d2fcc8e325df55c3f474 /layouts/_default/single.html | |
| parent | f7131b852c48742226934105df68229f3a1408a8 (diff) | |
Removed unnecessary homeIntro parameter, cleaned up layouts
Diffstat (limited to 'layouts/_default/single.html')
| -rw-r--r-- | layouts/_default/single.html | 19 | 
1 files changed, 10 insertions, 9 deletions
| diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 9a478f7..c0f41c5 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,28 +2,29 @@  {{/* Intro */}} -<div {{ if .Param "autonumber" }} class="autonumber" {{end}}> +<div {{ if .Param "autonumber" }} class="autonumber" {{ end }}>    <div class=" single-intro-container">      {{/* Title and Summary */}}      <h1 class="single-title">{{ .Title }}</h1> -    {{if .Param "summary" }} -    <p class="single-summary">{{ .Summary }}</p> +    {{ with .Param "summary" }} +    <p class="single-summary">{{ . }}</p>      {{ end }}      {{/* Reading Time */}}      <p class="single-readtime"> -      {{if .Date }} -      {{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }} -      {{ $dateHuman := .Date | time.Format ":date_long" }} +      {{ with .Date }} +      {{ $dateMachine := . | time.Format "2006-01-02T15:04:05-07:00" }} +      {{ $dateHuman := . | time.Format ":date_long" }}        <time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time> -      -        {{end}} -      {{if (.Param "readTime")}} -      {{.ReadingTime}} min + +      {{ if .Param "readTime" }} +      - +      {{ .ReadingTime }} min        {{end }}      </p> | 
