mirror of
https://github.com/correl/melpa.git
synced 2024-12-24 11:50:42 +00:00
Link RSS feed items through to corresponding line in HTML index, not directly to the package.
People interested in the package generally won't want to find out more by downloading the package itself.
This commit is contained in:
parent
db634d6fb7
commit
df2d616125
2 changed files with 3 additions and 2 deletions
|
@ -25,7 +25,7 @@
|
||||||
if descr =~ /(.*?)(\s*-\*-.*?)?\s*\[source:\s*(\w+)\]\s*/
|
if descr =~ /(.*?)(\s*-\*-.*?)?\s*\[source:\s*(\w+)\]\s*/
|
||||||
descr, source = $1, $3
|
descr, source = $1, $3
|
||||||
end
|
end
|
||||||
["[#{pkgname}](#{pkgurl})", version, descr, "[#{source}](#{recipe_url})"]
|
["<a name=\"#{pkgname}\"></a>[#{pkgname}](#{pkgurl})", version, descr, "[#{source}](#{recipe_url})"]
|
||||||
end
|
end
|
||||||
|
|
||||||
colwidth = [0,0,0, 9]
|
colwidth = [0,0,0, 9]
|
||||||
|
|
|
@ -23,13 +23,14 @@
|
||||||
package.version = version
|
package.version = version
|
||||||
package.build_time = Time.new(version[0..3].to_i, version[4..5].to_i, version[6..7].to_i)
|
package.build_time = Time.new(version[0..3].to_i, version[4..5].to_i, version[6..7].to_i)
|
||||||
package.url = "#{base_url}packages/#{pkgname}-#{version}." + (pkgtype == "single" ? "el" : "tar")
|
package.url = "#{base_url}packages/#{pkgname}-#{version}." + (pkgtype == "single" ? "el" : "tar")
|
||||||
|
package.info_url = "#{base_url}##{pkgname}"
|
||||||
%>
|
%>
|
||||||
<item>
|
<item>
|
||||||
<title>Package update: <%= package.name %> is now at version <%= package.version %></title>
|
<title>Package update: <%= package.name %> is now at version <%= package.version %></title>
|
||||||
<description>The <%= package.name %> package in MELPA has been updated to version <%= package.version %>.</description>
|
<description>The <%= package.name %> package in MELPA has been updated to version <%= package.version %>.</description>
|
||||||
<pubDate><%= package.build_time.rfc822 %></pubDate>
|
<pubDate><%= package.build_time.rfc822 %></pubDate>
|
||||||
<guid isPermaLink="true"><%= package.url %></guid>
|
<guid isPermaLink="true"><%= package.url %></guid>
|
||||||
<link><%= package.url %></link>
|
<link><%= package.info_url %></link>
|
||||||
</item>
|
</item>
|
||||||
<% end %>
|
<% end %>
|
||||||
</channel>
|
</channel>
|
||||||
|
|
Loading…
Reference in a new issue