浏览代码

Fix list page card was breaking (#969)

Signed-off-by: hossainemruz <hossainemruz@gmail.com>
Emruz Hossain 8 月之前
父节点
当前提交
577e3a5d00
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 2 0
      go.sum
  2. 1 1
      layouts/partials/cards/post.html

+ 2 - 0
go.sum

@@ -0,0 +1,2 @@
+github.com/hugo-toha/hugo-toha.github.io v0.0.0-20240730212302-83b19f7bd3b7 h1:RRonNzaf6/Ou9PqfXeKiRywkd+9KY7SVgfGBQXqXshM=
+github.com/hugo-toha/hugo-toha.github.io v0.0.0-20240730212302-83b19f7bd3b7/go.mod h1:yWw1t3trnfzv4t1lA9zh5pSsI0+kqqyg58ir8/kt6zk=

+ 1 - 1
layouts/partials/cards/post.html

@@ -8,7 +8,7 @@
     <div class="card-body">
       <a href="{{ .RelPermalink | relLangURL }}" class="post-card-link">
         <h5 class="card-title">{{ .Title }}</h5>
-        <p class="card-text post-summary">{{ .Summary }}</p>
+        <p class="card-text post-summary">{{ .Summary | plainify }}</p>
       </a>
       {{ if and site.Params.features.tags.enable site.Params.features.tags.on_card }}
         {{ partial "misc/tags.html" .Params.tags }}