Display news (from a channel) on the Homepage
Hi Magnus and welcome to Craft.

Your homepage should ideally be a Single. As the Craft site says these are one-off pages that have no special requirements or hierarchy.

You would then create a Channel called News (or Blog, whatever you require) and here you would have entries for each news article on your site.

Once you have everything set up, outputting the latest news article on your homepage is a very simple process:

{% set latestNews = craft.entries.section('news').limit(1) %}

{% if latestNews|length %}

    {% for article in latestNews %}
        &lt;p&gt;{{ article.title }}&lt;/p&gt;
    {% endfor %}

{% endif %}


This code would sit in your index.twig template and grabs the 1st entry in the News section. Simple!