Skip to content

Commit

Permalink
adding a read more link (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
tlienart authored Oct 1, 2019
1 parent 83980a8 commit ecd5b76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/manager/rss_generator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function rss_generator()::Nothing
<item>
<title>$(v.title)</title>
<link>$(full_link)</link>
<description><![CDATA[$(fix_relative_links(v.description, rss_link))]]></description>
<description><![CDATA[$(fix_relative_links(v.description, rss_link))</br><a href=\"$full_link\">Read more</a>]]></description>
""")
for elem in (:author, :category, :comments, :enclosure)
e = getproperty(v, elem)
Expand Down
2 changes: 1 addition & 1 deletion test/manager/rss.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ end
feed = joinpath(J.PATHS[:folder], "feed.xml")
@test isfile(feed)
fc = prod(readlines(feed, keep=true))
@test occursin("<description><![CDATA[A <strong>description</strong> done.\n]]></description>", fc)
@test occursin("<description><![CDATA[A <strong>description</strong> done.", fc)
end

0 comments on commit ecd5b76

Please sign in to comment.