Mayx's Home Page https://mabbs.github.io
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.1 KiB

  1. ---
  2. layout: xslt
  3. title: 订阅预览
  4. ---
  5. <h1>订阅预览</h1>
  6. <p>这是一个订阅源(Feed)。 复制当前URL到任何支持 Atom/RSS 的阅读器,即可订阅本博客的最新文章。
  7. <br />
  8. 以下展示了此订阅源包含的最新文章:</p>
  9. <hr />
  10. <xsl:for-each select="atom:feed/atom:entry">
  11. <div class="item">
  12. <h2>
  13. <a>
  14. <xsl:attribute name="href">
  15. <xsl:value-of select="atom:link/@href"/>
  16. </xsl:attribute>
  17. <xsl:value-of select="atom:title"/>
  18. </a>
  19. </h2>
  20. <small>
  21. Published at <xsl:value-of select="substring(atom:published, 0, 11)" />
  22. </small>
  23. <p><xsl:value-of select="atom:summary"/></p>
  24. <hr />
  25. </div>
  26. </xsl:for-each>
  27. <xsl:for-each select="/rss/channel/item">
  28. <div class="item">
  29. <h2>
  30. <a>
  31. <xsl:attribute name="href">
  32. <xsl:value-of select="link"/>
  33. </xsl:attribute>
  34. <xsl:value-of select="title"/>
  35. </a>
  36. </h2>
  37. <small>
  38. Published at <xsl:value-of select="substring(pubDate, 0, 17)" />
  39. </small>
  40. <p><xsl:value-of select="description"/></p>
  41. <hr />
  42. </div>
  43. </xsl:for-each>

Powered by TurnKey Linux.