Skip to content
Snippets Groups Projects
blog.html 3.95 KiB
Newer Older
Augustin Lemesle's avatar
Augustin Lemesle committed
---
layout: default
title: Blog - Frama-C
css: blog
---

<div id="wrapper" class="hfeed">

  <!-- TODO after new website is online: uncomment below and comment after
	{% include headers.html header=4 title=Blog %}
-->
	{% include blog-headers-standalone.html %}
Augustin Lemesle's avatar
Augustin Lemesle committed

<div id="container" class="mainContainer">
  <div class="defaultPage blogsPage" id="content" role="main">
	<div class="contentWrap">
  <!-- TODO after new website is online: uncomment below and comment equivalent code -->
  <!--	  <h1><strong>Blog</strong></h1> -->
  <h1><strong>Frama-C Blog</strong></h1>
Augustin Lemesle's avatar
Augustin Lemesle committed

Augustin Lemesle's avatar
Augustin Lemesle committed
	  <!-- <form class="searchForm mobileOnly" action="../index.html"> -->
		<!-- <button type="submit" class="submit searchLink pull-left disabled" title="Search"><i class= -->
		<!-- "icon icon-search"></i></button><input type="text" name="s" value="" required="" placeholder= -->
		<!-- "Search for the post here"><input type="hidden" name="post_type" value="post"> -->

		<!-- <div class="error" id="top_search_error" style="display: none;" role="alert"> -->
		  <!-- Enter Search Term -->
		<!-- </div> -->
	  <!-- </form> -->
Augustin Lemesle's avatar
Augustin Lemesle committed
	</div>

	<div class="contentWrap">
	  <div class="blogsSection">
		<div class="blogsSectionContent">
		{% if page.paginator %}
		  {% assign paginator = page.paginator %}
Augustin Lemesle's avatar
Augustin Lemesle committed
		  <div class="goBackBtn">
Augustin Lemesle's avatar
Augustin Lemesle committed
            <a class="goBack2" href="/blog/index.html"><i class="icon-arrow-left"></i>Back</a>
Augustin Lemesle's avatar
Augustin Lemesle committed
          </div>
Augustin Lemesle's avatar
Augustin Lemesle committed
          <h2 class="searchTitle"><span>Tag Archives:</span> <span class="search-terms">{{ page.title }}</span></h2>
		{% endif %}
		
		  <div class="postLists">
		  {% for post in paginator.posts %}
			<article>
			  <figure>
				<a href="{{ post.url }}" class="img" style=
				"background-image: url({% if post.image %}{{ post.image }}{% else %}/assets/img/default-blog.jpg{% endif %});"></a>
Augustin Lemesle's avatar
Augustin Lemesle committed
			  </figure>

			  <div class="content">
				<h3><a href="{{ post.url }}">{{ post.title }}</a>

				<address>
				  {{ post.author }} on {{ post.date | date: "%-d %B %Y" }}
				</address></h3>

				<p>{{ post.content | strip_html | truncatewords: 50 }}</p><a href="{{ post.url }}">Read More</a>
			  </div>
			</article>
		  {% endfor %}
		  </div>

		  {% if paginator.total_pages > 1 %}
Augustin Lemesle's avatar
Augustin Lemesle committed
		  {% if page.category %}
Augustin Lemesle's avatar
Augustin Lemesle committed
			{% assign path = "/category/:cat/page:num.html" | replace: ":cat", page.category | downcase %}
			{% assign index = "/category/:cat/index.html" | replace: ":cat", page.category | downcase %}
Augustin Lemesle's avatar
Augustin Lemesle committed
		  {% else %}
			{% assign path = site.paginate_path %}
			{% assign index = "/blog/index.html"%}			
		  {% endif %}
		  
Augustin Lemesle's avatar
Augustin Lemesle committed
		  <div class="pagination clearfix">
			{% if paginator.previous_page %}
Augustin Lemesle's avatar
Augustin Lemesle committed
			    <a class="prev page-numbers" href="{{ paginator.previous_page_path }}">« Previous</a>
				{% if paginator.previous_page != 1 %}
Augustin Lemesle's avatar
Augustin Lemesle committed
					<a class='page-numbers' href="{{ index }}">{{ 1 }}</a>
Augustin Lemesle's avatar
Augustin Lemesle committed
					...
				{% if paginator.previous_page == 1%}
Augustin Lemesle's avatar
Augustin Lemesle committed
					<a class='page-numbers' href="{{ index }}">{{ 1 }}</a>
Augustin Lemesle's avatar
Augustin Lemesle committed
					<a class='page-numbers' href="{{ path | replace: ':num', paginator.previous_page }}">{{ paginator.previous_page }}</a>
Augustin Lemesle's avatar
Augustin Lemesle committed
				{% endif %}
Augustin Lemesle's avatar
Augustin Lemesle committed
			{% endif %}
			<span class='page-numbers current'>{{ paginator.page }}</span>
Augustin Lemesle's avatar
Augustin Lemesle committed
			{% if paginator.next_page %}
Augustin Lemesle's avatar
Augustin Lemesle committed
			    <a class='page-numbers' href="{{ path | replace: ':num', paginator.next_page }}">{{ paginator.next_page }}</a>
				{% if paginator.next_page != paginator.total_pages %}
Augustin Lemesle's avatar
Augustin Lemesle committed
					...
Augustin Lemesle's avatar
Augustin Lemesle committed
					<a class='page-numbers' href="{{ path | replace: ':num', paginator.total_pages }}">{{ paginator.total_pages }}</a>
Augustin Lemesle's avatar
Augustin Lemesle committed
				{% endif %}
			    <a class="next page-numbers" href="{{ paginator.next_page_path }}">Next »</a>
Augustin Lemesle's avatar
Augustin Lemesle committed
			{% endif %}
		  </div>
		  {% endif %}
		</div>

Augustin Lemesle's avatar
Augustin Lemesle committed
		
            {% include sidebar_blog.html %}
Augustin Lemesle's avatar
Augustin Lemesle committed
	  </div>
	</div>
  </div>
  <!-- TODO after new website is online: uncomment below and comment after
Augustin Lemesle's avatar
Augustin Lemesle committed
{% include footer.html %}
-->
{% include blog-footer-standalone.html %}
Augustin Lemesle's avatar
Augustin Lemesle committed
      <div class="clear"></div>
Augustin Lemesle's avatar
Augustin Lemesle committed
</div>
</div>
Augustin Lemesle's avatar
Augustin Lemesle committed