📄 newsfeedintegration.jsp
字号:
<div class="contentItem">
<h1>Newsfeed Integration</h1>
<h2> </h2>
<div class="contentItemBody">
<p>
Pebble allows you to integrate newsfeeds from other websites into your own blog. For example, this will allow you to
include your most recent <a href="http://del.icio.us">del.icio.us</a> bookmarks or entries from <a href="http://www.twitter.com">Twitter</a>. There are two ways to do this.
</p>
<h3>Sidebar Integration</h3>
<p>
To integrate an RSS feed into the sidebar of your blog, simply add the following into your theme.
</p>
<pre class="codeSample"><sidebar:feed name="A title" url="A newsfeed URL" maxEntries="3" showBody="true" truncateBody="true"/></pre>
<p>
Just set the <code>name</code> and <code>url</code> properties as appropriate. The sidebar component can be customised through the use of the other properties (see <a href="./help/themes.html#sidebar-feed">Themes</a> for more details).
</p>
<h3>General Integration</h3>
<p>
You can integrate a newsfeed anywhere within your theme, by using the following code as a template.
</p>
<pre class="codeSample"><pebble:getFeed url="A newsfeed URL"/>
<c:if test="${not empty feedEntries}">
<c:forEach var="entry" items="${feedEntries}">
<a href="${entry.link}">${entry.title}</a>
<br />
${entry.body} or ${entry.truncatedBody}
<br /><br />
</c:forEach>
</c:if></pre>
</div>
</div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -