update
This commit is contained in:
@@ -5,62 +5,45 @@
|
||||
{% block content %}
|
||||
|
||||
|
||||
<div class="tile is-ancestor">
|
||||
<div class="tile is-vertical is-8">
|
||||
<div class="columns is-multiline mt-6">
|
||||
{% set blog = get_section(path="blog/_index.md") %}
|
||||
{% for page in blog.pages %}
|
||||
{% if loop.index0 == 3 %}{% break %}{% endif %}
|
||||
{{ macro_card::create_card(link=page.permalink, img=page.extra.image, title=page.title, abstract=page.summary, tags=page.taxonomies.tags, date=page.date) }}
|
||||
{{ macro_card::create_card(link=page.permalink, img=page.extra.image, title=page.title, subtitle="la génèse", abstract=page.summary, tags=page.taxonomies.tags, date=page.date) }}
|
||||
|
||||
{% endfor %}
|
||||
|
||||
|
||||
<div class="plus-articles">
|
||||
<a href="#" class="title is-4" style="width: 6em; text-align: center;">
|
||||
Plus
|
||||
<i class="computer fas fa-chevron-right"></i>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<nav class="pagination is-centered is-rounded" role="navigation" aria-label="pagination">
|
||||
<ul class="pagination-list">
|
||||
</div>
|
||||
|
||||
<section class="section">
|
||||
<h1 class="title">Notes diverses</h1>
|
||||
<h2 class="subtitle">
|
||||
Des sujets qui ne méritent pas un article complet mais dont j'ai envie de parler.
|
||||
</h2>
|
||||
<div class="columns is-gapless" style="box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);">
|
||||
{% set notes = get_section(path="notes/_index.md") %}
|
||||
{% for page in notes.pages %}
|
||||
<div class="column is-one-fifth ">
|
||||
{% if loop.index0 == 5 %}{% break %}{% endif %}
|
||||
{{ macro_media::create_media(link=page.permalink, img=page.extra.image, title=page.title, subtitle="la génèse", abstract=page.summary, tags=page.taxonomies.tags, date=page.date) }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
<div class="overlay">
|
||||
<a href="#" class="title is-4" style="width: 6em; text-align: center;">
|
||||
Plus
|
||||
<i class="computer fas fa-chevron-right"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<ul class="pagination-list">
|
||||
<li><a class="pagination-link" href="{{ paginator.first }}">1</a></li>
|
||||
<li><span class="pagination-ellipsis">…</span></li>
|
||||
{% if paginator.previous %}
|
||||
<li><a class="pagination-link" href="{{ paginator.previous }}">{{ paginator.current_index - 1 }}</a></li>
|
||||
{% endif %}
|
||||
<li><a class="pagination-link is-current" aria-label="Page 46" >{{ paginator.current_index }}</a></li>
|
||||
{% if paginator.next %}
|
||||
<li><a class="pagination-link" href="{{ paginator.next }}">{{ paginator.current_index + 1 }}</a></li>
|
||||
{% endif %}
|
||||
<li><span class="pagination-ellipsis">…</span></li>
|
||||
<li><a class="pagination-link" href="{{ paginator.last }}">{{ paginator.number_pagers }}</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
<div class="tile mt-6 ml-3 columns">
|
||||
<div class="column">
|
||||
<div class="card">
|
||||
<div class="card-image" >
|
||||
<section class="hero is-info is-light">
|
||||
<div class="hero-body">
|
||||
<p class="title">
|
||||
Tips et découvertes
|
||||
</p>
|
||||
<p class="subtitle">
|
||||
Des trouvailles rapides
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<div class="card-content" >
|
||||
{% set notes = get_section(path="notes/_index.md") %}
|
||||
{% for page in notes.pages %}
|
||||
{% if loop.index0 == 4 %}{% break %}{% endif %}
|
||||
{{ macro_media::create_media(link=page.permalink, img=page.extra.image, title=page.title, abstract=page.summary, tags=page.taxonomies.tags, date=page.date) }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</div> </div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
{% endblock content %}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{% macro create_card(link, img, title, abstract, tags, date) %}
|
||||
{% macro create_card(link, img, title, subtitle, abstract, tags, date) %}
|
||||
<div class="column is-one-third">
|
||||
<div class="card has-equal-height">
|
||||
<a href="{{ link | safe }}">
|
||||
<div class="card-image" >
|
||||
<a href="{{ link | safe }}" style="height:100%">
|
||||
<!-- <div class="card-image" >
|
||||
<figure class="image is-3by2">
|
||||
{% if img is not starting_with("/") %}
|
||||
<img src={{ link }}{{ img }} alt="Placeholder image">
|
||||
@@ -11,9 +11,10 @@
|
||||
<img src="{{ get_url(path=img, trailing_slash=false) }}" alt="Placeholder image">
|
||||
{% endif %}
|
||||
</figure>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
</div>-->
|
||||
<div class="card-content" style="height:100%">
|
||||
<div class="title is-3 has-text-centered">{{ title }}</div>
|
||||
<div class="title is-5 has-text-centered">{{ subtitle }}</div>
|
||||
<div class="media">
|
||||
<div class="content">
|
||||
<hr/>
|
||||
|
||||
@@ -1,36 +1,18 @@
|
||||
{% macro create_media(link, img, title, abstract, tags, date) %}
|
||||
|
||||
<article class="media"><!--
|
||||
<figure class="media-left">
|
||||
<p class="image is-128x128">
|
||||
{% if img is not starting_with("/") %}
|
||||
<img src={{ link }}{{ img }} alt="Placeholder image">
|
||||
{% endif %}
|
||||
{% if img isstarting_with("/") %}
|
||||
<img src="{{ get_url(path=img, trailing_slash=false) }}" alt="Placeholder image">
|
||||
{% endif %}
|
||||
</p>-->
|
||||
</figure>
|
||||
<div class="media-content">
|
||||
<a href="{{ link | safe }}">
|
||||
<div class="content">
|
||||
<p>
|
||||
<strong class="title is-3">{{ title }}</strong>
|
||||
<br>
|
||||
{{ abstract | markdown | safe }}
|
||||
</p>
|
||||
</div>
|
||||
</a>
|
||||
<nav class="level is-mobile">
|
||||
<div class="level-left">
|
||||
{% for tag in tags %}
|
||||
<article class="media has-equal-height divide note p-4" >
|
||||
<div class="media-content media-flex" style="overflow-y: clip;">
|
||||
<a href="#" class="has-equal-height" style="width: 100%">
|
||||
<h4 class="title is-4">{{ title }}</h4>
|
||||
<div class="content has-text-justified">
|
||||
{{ abstract | markdown | safe }}
|
||||
</div>
|
||||
</a>
|
||||
<div class="buttons mt-1">
|
||||
{% for tag in tags %}
|
||||
<a class="button is-small is-info is-light is-rounded" href="{{ get_url(path="tags/") }}/{{ tag }}"> {{ tag }}</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
{% endfor %}</a>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
|
||||
{% endmacro %}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<div class="columns is-vcentered mt-6">
|
||||
{{ macro_card::create_card_tag(link=current_url, title=taxo.name) }}
|
||||
{% for page in taxo.pages %}
|
||||
{{ macro_card::create_card(link=page.permalink, img=page.extra.image, title=page.title, abstract=page.summary, tags=page.taxonomies.tags, date=page.date) }}
|
||||
{{ macro_card::create_card(link=page.permalink, img=page.extra.image, title=page.title, subtitle="la génèse", abstract=page.summary, tags=page.taxonomies.tags, date=page.date) }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
{% for page in term.pages %}
|
||||
|
||||
{{ macro_card::create_card(link=page.permalink, img=page.extra.image, title=page.title, abstract=page.summary, tags=page.taxonomies.tags, date=page.date) }}
|
||||
{{ macro_card::create_card(link=page.permalink, img=page.extra.image, title=page.title, subtitle="la génèse", abstract=page.summary, tags=page.taxonomies.tags, date=page.date) }}
|
||||
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user