opengraph
This commit is contained in:
parent
0debdbf12b
commit
f0824d38b6
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
|
||||
<channel>
|
||||
<title>{{ this.page.meta_title ?: this.page.title }}</title>
|
||||
<link>{{ link }}</link>
|
||||
|
|
@ -9,9 +9,12 @@
|
|||
<item>
|
||||
<title>{{ post.title }}</title>
|
||||
<link>{{ post.url }}</link>
|
||||
<guid>{{ post.url }}</guid>
|
||||
<guid isPermaLink='true' >{{ post.url }}</guid>
|
||||
<pubDate>{{ post.published_at.toRfc2822String }}</pubDate>
|
||||
<description>{{ post.summary }}</description>
|
||||
<description><img src="{{post.featured_image|media_cdn}}">{{ post.summary }}</description>
|
||||
<content:encoded xmlns:content="http://purl.org/rss/1.0/modules/content/">
|
||||
{{post.content_html}}
|
||||
</content:encoded>
|
||||
</item>
|
||||
{% endfor %}
|
||||
</channel>
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ class Plugin extends PluginBase
|
|||
$fileContents .= "\t\t<item>\n" .
|
||||
"\t\t\t<title>" . htmlspecialchars($post->title, ENT_QUOTES, 'UTF-8') . "</title>\n" .
|
||||
"\t\t\t<link>" . Settings::get('link') . Settings::get('postPage') . "/" . $post->slug . "</link>\n" .
|
||||
"\t\t\t<guid isPermaLink='true''>" . Settings::get('link') . Settings::get('postPage') . "/" . $post->slug . "</guid>\n" .
|
||||
"\t\t\t<guid isPermaLink='true'>" . Settings::get('link') . Settings::get('postPage') . "/" . $post->slug . "</guid>\n" .
|
||||
"\t\t\t<pubDate>" . $published->format(DateTime::RFC2822) . "</pubDate>\n" .
|
||||
"\t\t\t<description><![CDATA[ <img src='".Settings::get('link')."/storage/app/media/'".$post->featured_image.">"
|
||||
. htmlspecialchars($description, ENT_QUOTES, 'UTF-8') . " ]]></description>\n" .
|
||||
|
|
|
|||
Loading…
Reference in New Issue