瀏覽代碼

projects widget: Fix items overlapping when in list view (Fix #71)

George Cushen 7 年之前
父節點
當前提交
d371607122
共有 1 個文件被更改,包括 5 次插入8 次删除
  1. 5 8
      layouts/partials/widgets/projects.html

+ 5 - 8
layouts/partials/widgets/projects.html

@@ -29,26 +29,23 @@
 
     {{ if eq $page.Params.view 0 }}
 
-    <div id="container-projects" class="isotope">
-      <ul class="fa-ul" style="position: relative">
-
+    <div id="container-projects" class="row isotope">
         {{ range where $.Data.Pages "Type" "project" }}
-        <li class="project-item isotope-item {{ delimit .Params.tags " " }}">
+        <div class="col-md-12 project-item isotope-item {{ delimit .Params.tags " " }}" itemscope itemtype="http://schema.org/CreativeWork">
+          <i class="fa fa-files-o pub-icon" aria-hidden="true"></i>
+
           <span class="project-title">
           {{ if .Content }}
           <a href="{{ .Permalink }}">
           {{ else }}
             {{ with .Params.external_link }}<a href="{{ . }}" target="_blank">{{ end }}
           {{ end }}
-          <i class="fa-li fa fa-files-o pub-icon" aria-hidden="true"></i>
           {{ .Title }}
           {{ if .Content }}</a>{{ else }}{{ with .Params.external_link }}</a>{{ end }}{{ end }}
           </span>
           {{ with .Params.summary }}<p class="project-summary">{{ . | markdownify }}</p>{{ end }}
-        </li>
+        </div>
         {{ end }}
-
-      </ul>
     </div>
 
     {{ else }}