瀏覽代碼

Update atom feed

Daniel Supernault 6 年之前
父節點
當前提交
5379c462bf
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      resources/views/atom/user.blade.php

+ 4 - 1
resources/views/atom/user.blade.php

@@ -33,7 +33,10 @@
             <name> <![CDATA[{{ $item->profile->username }}]]></name>
         </author>
         <summary type="html">
-            {{ $item->caption }}
+        <![CDATA[
+            <img id="rss_item_{{$loop->iteration}}" src="{{ $item->thumb() }}">
+            <p style="padding:10px;">{{ $item->caption }}</p>
+          ]]>
         </summary>
         <updated>{{ $item->updated_at->toAtomString() }}</updated>
     </entry>