Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
coko-website
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
coko-material
coko-website
Commits
663bb46a
Commit
663bb46a
authored
2 years ago
by
Julien Taquet
Browse files
Options
Downloads
Patches
Plain Diff
fix image apparition and remove required
parent
58ee675b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/layouts/home.njk
+35
-42
35 additions, 42 deletions
src/layouts/home.njk
static/admin/config.yml
+20
-17
20 additions, 17 deletions
static/admin/config.yml
with
55 additions
and
59 deletions
src/layouts/home.njk
+
35
−
42
View file @
663bb46a
{% 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 %}
This diff is collapsed.
Click to expand it.
static/admin/config.yml
+
20
−
17
View file @
663bb46a
...
...
@@ -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'
}
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment