This commit is contained in:
Brian Zalewski 2023-03-21 23:28:05 -04:00
parent 735c2644a6
commit e41b70939f
2 changed files with 72 additions and 1 deletions

View file

@ -3,7 +3,7 @@ init-author-email={{ .user.email }}
init-author-name="{{ .user.name }} <{{ .user.email }}> ({{ .user.domain }})"
init-author-url="{{ .user.domain }}"
init-license=MIT
init-module=${XDG_CONFIG_HOME:-$HOME/.config}/npm/config/npm-init.js
init-module={{ .chezmoi.homeDir }}/.config/npm/config/npm-init.js
init-version=0.0.1
loglevel=error
network-concurrency=32

71
test.xml Normal file
View file

@ -0,0 +1,71 @@
<?xml version="1.0" encoding="UTF-8" ?>
<rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:media="http://search.yahoo.com/mrss/"
>
<channel>
<title>${channelTitle}</title>
<atom:link href="${feedUrl}" rel="self" type="application/rss+xml" />
<link>${channelLink}</link>
<generator>Megabyte Labs RSS (https://megabyte.space/project/rss)</generator>
<language>en-US</language>
<copyright>© Megabyte LLC ${new Date().getFullYear()}, All Rights Reserved</copyright>
<description>${channelDescription}</description>
<lastBuildDate>${lastBuildDate}</lastBuildDate>
<language>en-US</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<managingEditor>${managingEditor} (Install Doctor Support)</managingEditor>
<webMaster>${webMaster} (Megabyte Labs Support)</webMaster>
<image>
<url>${siteUrl}/assets/img/rss.png</url>
<title>${siteTitle}</title>
<link>${siteUrl}</link>
<width>144</width>
<height>144</height>
</image>
<item>
<title>${title}</title>
<pubDate>${pubDate}</pubDate>
<atom:modified>${modified}</atom:modified>
<dc:creator>${creator}</dc:creator>
<category>${category}</category>
<description>
<![CDATA[
<a href="${link}" style="text-decoration: none;">
<img src="${image}" alt="${alt}" />
</a>
<br />
<div style="width: 100%;display:block;">
<a href="https://www.facebook.com/sharer.php?u=${encodeURIComponent(link)}" style="margin: 5px; display: inline-block; text-decoration: none;">
<img alt="Share on Facebook" border="0" src="${siteUrl}/assets/img/rss-facebook.png" />
</a>
<a href="https://twitter.com/share?via=MusicBlobs&text=${encodeURIComponent(title)}&url=${encodeURIComponent(link)}&hashtags=${categories}" style="margin: 5px; display: inline-block; text-decoration: none;">
<img alt="Tweet on Twitter" border="0" src="${siteUrl}/assets/img/rss-twitter.png" />
</a>
<a href=""https://pinterest.com/pin/create/link/?url=${encodeURIComponent(link)}" style="margin: 5px; display: inline-block; text-decoration: none;">
<img alt="Pin on Pinterest" border="0" src="${siteUrl}/assets/icon/rss-pinterest.png" />
</a>
<a href="https://www.tumblr.com/widgets/share/tool?canonicalUrl=${encodeURIComponent(link)}&title=${encodeURIComponent(title)}&tags=${categories}" style="margin: 5px; display: inline-block; text-decoration: none;">
<img alt="Post on Tumblr" border="0" src="${siteUrl}/assets/icon/rss-tumblr.png" />
</a>
</div>
<p>${description} <a href="${siteUrl}">${siteUrl}</a></p>]]>
</description>
<guid isPermaLink="true">${link}</guid>
<link>${link}</link>
<media:content url="${image}" medium="image">
<media:title type="html">${alt}</media:title>
</media:content>
<content:encoded>
<![CDATA[
${content}]]>
</content:encoded>
</item>
</channel>
</rss>