mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

mathew
21.08.2023 bd759431a9d70d30e0bbd1633c21ac56008ae1cc
Add missing "read more" link to summary.html (#658)

* Add missing "read more" link to summary.html

* Fix layouts/post/summary to add read more link
2 files modified
2 ■■■■■ changed files
layouts/_default/summary.html 1 ●●●● patch | view | raw | blame | history
layouts/post/summary.html 1 ●●●● patch | view | raw | blame | history
layouts/_default/summary.html
@@ -9,5 +9,6 @@
    <div class="nested-links f5 lh-copy nested-copy-line-height">
      {{ .Summary }}
    </div>
    <a href="{{.RelPermalink}}" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">{{ $.Param "read_more_copy" | default (i18n "readMore") }}</a>
  </div>
</div>
layouts/post/summary.html
@@ -12,4 +12,5 @@
    <div class="nested-links f5 lh-copy nested-copy-line-height">
      {{ .Summary  }}
    </div>
  <a href="{{.RelPermalink}}" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">{{ $.Param "read_more_copy" | default (i18n "readMore") }}</a>
  </div>