update
This commit is contained in:
@@ -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 %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user