Commit 38d245ce authored by Joern Schneeweisz's avatar Joern Schneeweisz Committed by Brandon Lyon

Add an Atom feed for security releases.

parent cb4f4412
......@@ -16,4 +16,7 @@ suppress_header: true
- if categories.include?("unfiltered")
.categories-intro-copy
= partial "includes/blog/unfiltered-intro-copy.html.md"
- if categories.include?("security")
.categories-intro-copy
= partial "includes/blog/security-intro-copy.html.md"
= partial "includes/blog/list"
For timely security news please subscribe to our [security RSS feed](/security-releases.xml).
\ No newline at end of file
!!! XML
%feed{:xmlns => "http://www.w3.org/2005/Atom"}
- site_url = "https://about.gitlab.com/blog/categories/releases/"
%title GitLab Security Releases
%id= URI.join(site_url, blog.options.prefix.to_s)
%link{:href => site_url}
- unless blog.articles.empty?
%updated= blog.articles.first.date.to_datetime.rfc3339
%author
%name The GitLab Team
- blog.articles.each do |article|
- if article.metadata[:page][:categories] == 'releases' && article.metadata[:page][:tags] == 'security'
%entry
%title= h(article.title)
%release= article.metadata[:page][:release_number]
%link{:rel => "alternate", :href => URI.join(site_url, article.url)}
%id= URI.join(site_url, article.url)
%published= article.date.to_datetime.rfc3339
%author
%name= h(article.data.author)
%content{:type => "html"}= xml_feed_content(article)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment