Skip to content

Latest commit

 

History

History
113 lines (86 loc) · 3.95 KB

index.md

File metadata and controls

113 lines (86 loc) · 3.95 KB
layout permalink
default
/index.html

{% comment %} ################################################################################

The template for the index page is thought to provide both the option for custom content, as well as a mechanism for the automated adding of excerpt page links for other pages labeled for the "index" category.

Please add your content in Markdown or HTML below.

################################################################################ {% endcomment %}

Progenetix Jekyll Website Template

Welcome to the Progenetix Jekyll Template.

This is a minimal repository which can be used to build static but "update on modification" websites using the Ruby based "Jekyll" framework.

A typical application here would be to have the root directory as a Github project, in which case Github will process the pages, create the corresponding website and handle updates upon changes. Examples here are e.g. several websites related to the Global Alliance for Genomics and Health (GA4H):

Alternatively, the site can be build locally (requiring some Ruby gems etc.), for either testing purposes or to serve the compiled site from your own hosting space. Examples here are our sites:

External Information


{% comment %} ################################################################################

Below this will page excerpts for pages with the "index" category appear.

################################################################################ {% endcomment %}

{%- assign this_name = "index" -%} {%- assign this_category = "index" -%}

{%- assign cat_posts = site.emptyArray -%} {%- for post in site.documents -%} {%- if post.categories contains this_category -%} {%- assign cat_posts = cat_posts | push: post -%} {%- endif -%} {%- endfor -%}

{%- assign cat_posts = cat_posts | sort: 'date' | reverse -%}

{%- comment -%}

  • special posts for prepending content to the listing pages
  • they are processed first, so separate loops are needed
    {%- endcomment -%}

{% comment %} ################################################################################ Please keep this for an HTML break... ################################################################################ {% endcomment %}

{%- for post in cat_posts -%} {%- if post.tags contains '.prepend' -%}

{{ post.content | markdownify }}
{%- endif -%} {%- endfor -%}

{%- comment -%}

  • no separate treatment of featured posts {%- endcomment -%}

{%- for post in cat_posts -%} {% unless post.tags contains '.prepend' or post.tags contains '.append' %} {%- assign post_author = post.author | downcase -%} {%- assign excerpt_link = post.url | relative_url -%} {%- if post.excerpt_link contains '/' -%} {%- assign excerpt_link = post.excerpt_link -%} {%- endif -%}

{{ post.excerpt }}

{%- if post.author -%}{{ post.author | join: " | " }} {%- endif -%} {%- if post.date -%}{{ post.date | date: "%Y-%m-%d" }}: {% endif %} more ...

{% endunless %} {%- endfor -%}

{%- for post in cat_posts -%} {%- if post.tags contains '.append' -%}

{{ post.content | markdownify }}
{%- endif -%} {%- endfor -%}