Mercurial > web-octave
changeset 42:ecee119c2378
index.html: show more RSS-feeds and minor changes.
author | Kai T. Ohlhus <k.ohlhus@gmail.com> |
---|---|
date | Sun, 28 Aug 2016 23:18:12 +0200 |
parents | 95d942976057 |
children | a1cb50997055 |
files | index.html |
diffstat | 1 files changed, 14 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/index.html Sun Aug 28 23:17:13 2016 +0200 +++ b/index.html Sun Aug 28 23:18:12 2016 +0200 @@ -36,7 +36,7 @@ <div class="row"> <div class="columns medium-12"> <p> - The Octave syntax is largely compatible with <a href="http://www.mathworks.com/matlab">Matlab</a>. The Octave interpreter can be run in GUI mode, as a console, or invoked as part of a shell script. + The Octave syntax is largely compatible with <a href="https://www.mathworks.com/matlab">Matlab</a>. The Octave interpreter can be run in GUI mode, as a console, or invoked as part of a shell script. </p> </div> </div> @@ -85,7 +85,7 @@ </div> <div class="columns medium-4"> <a href="#" data-reveal-id="guiModal"> - <img src="https://www.gnu.org/software/octave/images/screenshot-2016-small.png" title="GNU Octave 4.0.3 - Licensed under CC BY-SA 3.0"/> + <img src="{{ "/img/screenshot-2016-small.png" | prepend: site.baseurl }}" title="GNU Octave 4.0.3 - Licensed under CC BY-SA 3.0"/> </a> </div> </div> @@ -121,23 +121,23 @@ </section> <section id="latest"> + <a class="right" href="{{ "/feed.xml" | prepend: site.baseurl }}"> + <span class="label warning"> + RSS + </span> + </a> + <h3>News</h3> <div class="row"> <div class="columns small-12"> - {% assign latest_post = site.posts.first %} - {% if latest_post %} + {% for post in site.posts limit:3 %} <div class="panel callout"> - <a class="right" href="{{ "/feed.xml" | prepend: site.baseurl }}"> - <span class="label warning"> - RSS - </span> - </a> <h3 class="entry-title"> - <a href="{{ root_url }}{{ latest_post.url }}">{{ latest_post.title }}</a> + <a href="{{ root_url }}{{ post.url }}">{{ post.title }}</a> </h3> - <p class="post-meta">{{ latest_post.date | date: "%b %-d, %Y" }}</p> - <div class="entry-content">{{ latest_post.content }}</div> + <p class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</p> + <div class="entry-content">{{ post.content }}</div> </div> - {% endif %} + {% endfor %} </div> </div> </section> @@ -148,6 +148,6 @@ </div> <div id="guiModal" class="reveal-modal" data-reveal aria-hidden="true" role="dialog"> - <img src="https://upload.wikimedia.org/wikipedia/en/4/48/Octave-4.0.0-rc1-Qt5.4-Linux.png" title="Octave-4.0.0-rc1-Qt5.4-Linux by Qtguy00 - Own work. Licensed under CC BY-SA 3.0 via Wikipedia"/> + <img src="{{ "/img/screenshot-2016.png" | prepend: site.baseurl }}" title="GNU Octave 4.0.3 - Licensed under CC BY-SA 3.0"/> <a class="close-reveal-modal" aria-label="Close">×</a> </div>