diff options
Diffstat (limited to 'app/helpers')
| -rw-r--r-- | app/helpers/content_helper.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/helpers/content_helper.rb b/app/helpers/content_helper.rb index d9ec5db..5a288ed 100644 --- a/app/helpers/content_helper.rb +++ b/app/helpers/content_helper.rb | |||
| @@ -20,6 +20,11 @@ module ContentHelper | |||
| 20 | render :partial => 'content/tags' | 20 | render :partial => 'content/tags' |
| 21 | end | 21 | end |
| 22 | 22 | ||
| 23 | def featured_articles | ||
| 24 | @featured_articles = FeaturedArticle.all | ||
| 25 | render :partial => 'content/featured_articles' | ||
| 26 | end | ||
| 27 | |||
| 23 | def headline_image | 28 | def headline_image |
| 24 | image = @page.assets.images.first | 29 | image = @page.assets.images.first |
| 25 | if image | 30 | if image |
