Skip to content

Commit

Permalink
Update posts
Browse files Browse the repository at this point in the history
  • Loading branch information
ljcc0930 committed Feb 12, 2024
1 parent 88e9cbd commit e402702
Showing 1 changed file with 49 additions and 24 deletions.
73 changes: 49 additions & 24 deletions _pages/posts.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,38 +12,63 @@ Authors marked in <span style="color:blue">blue</span> indicate our group member

{% assign number_printed = 0 %}
{% for publi in site.data.publist %}
{% assign even_odd = number_printed | modulo: 2 %}
{% if publi.highlight == 1 %}
{% if even_odd == 0 %}
<div class="row">
{% endif %}

{% assign even_odd = number_printed | modulo: 2 %}
{% if publi.highlight == 1 %}
<div class="col-sm-6 clearfix">
<div class="well">
<pubtit>{{ publi.title }}</pubtit>
<img src="{{ site.url }}{{ site.baseurl }}/images/pubpic/{{ publi.image }}" class="img-responsive" width="100%" style="float: left" />
<p>{{ publi.description }}</p>
<p><em>{{ publi.authors }}</em></p>
<p><strong><a href="{{ publi.link.url }}">{{ publi.link.display }}</a></strong></p>
<p class="text-danger"><strong> {{ publi.news1 }}</strong></p>
<p> {{ publi.news2 }}</p>
<p><a href="{{ site.url }}{{ site.baseurl }}/posts/{{ publi.post }}">Click here to read the full article.</a></p>
</div>
</div>

{% if even_odd == 0 %}
<div class="row">
{% endif %}
{% assign number_printed = number_printed | plus: 1 %}

<div class="col-sm-6 clearfix">
<div class="well">
<pubtit>{{ publi.title }}</pubtit>
<img src="{{ site.url }}{{ site.baseurl }}/images/pubpic/{{ publi.image }}" class="img-responsive" width="100%" style="float: left" />
<p>{{ publi.description }}</p>
<p><em>{{ publi.authors }}</em></p>
<p><strong><a href="{{ publi.link.url }}">{{ publi.link.display }}</a></strong></p>
<p class="text-danger"><strong> {{ publi.news1 }}</strong></p>
<p> {{ publi.news2 }}</p>
<p><a href="{{ site.url }}{{ site.baseurl }}/posts/{{ publi.post }}">Click here to read the full article.</a></p>
</div>
</div>

{% assign number_printed = number_printed | plus: 1 %}
{% if even_odd == 1 %}
</div>
{% endif %}
{% endif %}
{% endfor %}

{% if even_odd == 1 %}
</div>
{% endif %}
{% for publi in site.data.preprints %}
{% assign even_odd = number_printed | modulo: 2 %}
{% if publi.highlight == 1 %}
{% if even_odd == 0 %}
<div class="row">
{% endif %}

{% endif %}
<div class="col-sm-6 clearfix">
<div class="well">
<pubtit>{{ publi.title }}</pubtit>
<img src="{{ site.url }}{{ site.baseurl }}/images/pubpic/{{ publi.image }}" class="img-responsive" width="100%" style="float: left" />
<p>{{ publi.description }}</p>
<p><em>{{ publi.authors }}</em></p>
<p><strong><a href="{{ publi.link.url }}">{{ publi.link.display }}</a></strong></p>
<p class="text-danger"><strong> {{ publi.news1 }}</strong></p>
<p> {{ publi.news2 }}</p>
<p><a href="{{ site.url }}{{ site.baseurl }}/posts/{{ publi.post }}">Click here to read the full article.</a></p>
</div>
</div>

{% assign number_printed = number_printed | plus: 1 %}

{% if even_odd == 1 %}
</div>
{% endif %}
{% endif %}
{% endfor %}

{% assign even_odd = number_printed | modulo: 2 %}
{% if even_odd == 1 %}
</div>
</div>
{% endif %}

0 comments on commit e402702

Please sign in to comment.