Skip to content
Snippets Groups Projects
Commit 663bb46a authored by Julien Taquet's avatar Julien Taquet
Browse files

fix image apparition and remove required

parent 58ee675b
No related branches found
No related tags found
No related merge requests found
{% extends "base.njk" %}
{% block background %}
{% if assets.background %}
<div class="background">{{assets.background | safe}}</div>
{% endif %}
{% if assets.background %}<div class="background">{{ assets.background | safe }}</div>{% endif %}
{% endblock %}
{% block topbar %}
{% include "_partials/menu-home.njk" %}
{% include "_partials/menu-home.njk" %}
{% endblock %}
{% block content %}
{# <section class="section-latest">
<h2 class="section-title">Latest articles</h2>
</section> #}
</section> #}
<section class="section-blog">
{# <h2 class="section-title">latest news</h2> #}
{% for article in collections.blog | reverse %}
{% if loop.index0 < 2 %}
<div class="posts">
<figure class="introImg"><a href="{{article.url}}">
<img src="{{article.data.icon}}" alt="{{article.data.title}}"></a>
</figure>
<p class="meta">
<time datetime="{{article.date}}">{{article.data.date | postDate}}</time>
<!-- <span>#{{article.data.tags}}</span> -->
{% if loop.index0 < 2 %}
<div class="posts">
<figure class="introImg">
<a href="{{ article.url }}">
<img src="{{ article.data.icon | replace('/static', "")}}" alt="{{ article.data.title }}">
</a>
</figure>
<p class="meta">
<time datetime="{{ article.date }}">{{ article.data.date | postDate }}</time>
<!-- <span>#{{article.data.tags}}</span> -->
</p>
<h2><a href="{{article.url}}">{{article.data.title}}</a></h2>
{% if article.data.intro %}
{{article.data.intro | markdownify | safe }}
{% endif %}
{# {{article.templateContent | markdownify | safe}} #}
<h2>
<a href="{{ article.url }}">{{ article.data.title }}</a>
</h2>
{% if article.data.intro %}{{ article.data.intro | markdownify | safe }}{% endif %}
{# {{article.templateContent | markdownify | safe}} #}
</div>
{% endif %}
{% endif %}
{% endfor %}
<h3 class="linkToPrevious"><a href="/blog/">Earlier posts</a></h3>
<h3 class="linkToPrevious">
<a href="/blog/">Earlier posts</a>
</h3>
</section>
<section class="section-partners">
<h2 class="section-title">Our Community</h2>
<ul class="sponsors">
{% for item in sponsors.entities %}
<li class="sponsorLogo">
<a target="_blank" href="{{item.url}}">
<img src="{{item.logo | replace('/static', '')}}" alt="Logo of {{item.name}}"/>
</a>
</li>
{% endfor %}
</ul>
{# <img src="/images/uploads/{{partnersImage}}" alt="Logo of the different partners of Coko"> #}
<ul class="sponsors">
{% for item in sponsors.entities %}
<li class="sponsorLogo">
<a target="_blank" href="{{ item.url }}">
<img src="{{ item.logo | replace('/static', '')}}"
alt="Logo of {{ item.name }}"/>
</a>
</li>
{% endfor %}
</ul>
{# <img src="/images/uploads/{{partnersImage}}"
alt="Logo of the different partners of Coko"> #}
</section>
{# <section class="cokoverse">
{% for item in homepage.cokoverse %}
<h2 class="section-title">{{item.title}}</h2>
<img src="{{item.image}}">
{% endfor %}
</section> #}
</section> #}
{% endblock %}
......@@ -12,22 +12,25 @@ backend:
base_url: https://gitlab.coko.foundation
auth_endpoint: oauth/authorize
site_domain: https://coko.foundation/
# local_backend: true # for local update
publish_mode: editorial_workflow #remove editorial workflow as its in beta for gitlab
media_folder: "static/images/uploads" # Media files will be stored in the repo under images/uploads
# local_backend: true # for local update
# publish_mode: editorial_workflow #remove editorial workflow as its in beta for gitlab
media_folder: 'static/images/uploads' # Media files will be stored in the repo under images/uploads
collections:
- name: "blog"
label: "blog entry" # Used in the UI
folder: "src/blog/posts/" # The path to the folder where the documents are stored
slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
create: true
- name: 'blog'
label: 'blog entry' # Used in the UI
folder: 'src/blog/posts/' # The path to the folder where the documents are stored
slug: '{{year}}-{{month}}-{{day}}-{{slug}}'
create: true
fields:
- {label: "Title", name: "title", widget: "string"}
- {label: "Date", name: "date", widget: "date"}
- {label: "Intro", name: "intro", widget: "markdown"}
- {label: "The content", name: "body", widget: "markdown"}
- {label: "Custom class (leave empty)", name: "class", widget: "string"}
- {label: "Video", name: "video", widget: "string"}
- {label: "image", name: "icon", widget: "file"}
- { label: 'Title', name: 'title', widget: 'string' }
- { label: 'Date', name: 'date', widget: 'date' }
- { label: 'Intro', required:false, name: 'intro', widget: 'markdown' }
- { label: 'The content', name: 'body', widget: 'markdown' }
- {
label: 'Custom class (leave empty)',
required:false,
name: 'class',
widget: 'string',
}
- { label: 'Video', required: false, name: 'video', widget: 'string' }
- { label: 'image', required:false, name: 'icon', widget: 'file' }
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