Mercurial > web-octave
changeset 205:585fc24ed727
Adapt news system to foundation 6.
author | Kai T. Ohlhus <k.ohlhus@gmail.com> |
---|---|
date | Thu, 09 Jul 2020 23:01:48 +0900 |
parents | 899288d58c0e |
children | 68d54c6d397a |
files | index.md news.md |
diffstat | 2 files changed, 33 insertions(+), 47 deletions(-) [+] |
line wrap: on
line diff
--- a/index.md Thu Jul 09 23:00:55 2020 +0900 +++ b/index.md Thu Jul 09 23:01:48 2020 +0900 @@ -104,25 +104,19 @@ [Get involved]({{ "/get-involved.html" | relative_url }}) in Octave development. -<div class="grid-x grid-margin-x"> - <div class="cell small-12"> - {% assign latest_post = site.posts.first %} - {% if latest_post %} - <div class="panel callout"> - <a class="right" href="{{ "/feed.xml" | relative_url }}"> - <span class="label warning"> - RSS - </span> - </a> - <h3 class="entry-title"> - <a href="{{ latest_post.url | relative_url }}">{{ latest_post.title }}</a> - </h3> - <p class="post-meta">{{ latest_post.date | date: "%b %-d, %Y" }}</p> - <div class="entry-content">{{ latest_post.excerpt }}</div> - </div> - {% endif %} +{% assign latest_post = site.posts.first %} +{% if latest_post %} + <div class="primary callout"> + <a class="float-right button tiny warning" href="{{ "/feed.xml" | relative_url }}"> + RSS + </a> + <h3 class="entry-title"> + <a href="{{ latest_post.url | relative_url }}">{{ latest_post.title }}</a> + </h3> + <p class="post-meta">{{ latest_post.date | date: "%b %-d, %Y" }}</p> + <div class="entry-content">{{ latest_post.excerpt }}</div> </div> -</div> +{% endif %} <div class="large reveal" id="meshModal" data-reveal> <img src="{{ "/img/example-mesh.svg" | relative_url }}" alt="Example mesh">
--- a/news.md Thu Jul 09 23:00:55 2020 +0900 +++ b/news.md Thu Jul 09 23:01:48 2020 +0900 @@ -4,33 +4,25 @@ menu: true --- -<section> - <div class="row"> - <div class="columns small-12"> - {% for post in site.posts %} - <div class="panel callout"> - {% if post == site.posts.first %} - <a class="right" href="{{ "/feed.xml" | relative_url }}"> - <span class="label warning"> - RSS - </span> - </a> - {% endif %} - {% if post.title == "News Archive" %} - <h3 class="entry-title"> - <a href="{{ post.url | relative_url }}">{{ post.title }}</a> - </h3> - {% else %} - <h3 class="entry-title"> - <a href="{{ post.url | relative_url }}">{{ post.title }}</a> - </h3> - <p class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</p> - <div class="entry-content"> - {{ post.excerpt }} - </div> - {% endif %} - </div> - {% endfor %} - </div> +{% for post in site.posts %} +<div class="primary callout"> + {% if post == site.posts.first %} + <a class="float-right button tiny warning" href="{{ "/feed.xml" | relative_url }}"> + RSS + </a> + {% endif %} + {% if post.title == "News Archive" %} + <h3 class="entry-title"> + <a href="{{ post.url | relative_url }}">{{ post.title }}</a> + </h3> + {% else %} + <h3 class="entry-title"> + <a href="{{ post.url | relative_url }}">{{ post.title }}</a> + </h3> + <p class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</p> + <div class="entry-content"> + {{ post.excerpt }} </div> -</section> + {% endif %} +</div> +{% endfor %}