{% extends 'layouts/base.html' %}
{% block title %}Welcome{% endblock %}
{% block main %}
    <article v-for="item in news">
        <h2><span>[[ item.votes ]]</span> - [[ item.title ]]</h2>
        <p>
            <a :href="item.url" target="_blank">Ver completo</a>
            <button @click.prevent="votar(item.id)">Votar</button>
        </p>
    </article>
{% endblock %}