diff --git a/_includes/dynamic.html b/_includes/dynamic.html new file mode 100644 index 00000000..90f0ffd6 --- /dev/null +++ b/_includes/dynamic.html @@ -0,0 +1,47 @@ +{% if include.index %} + {% assign i = include.index %} +{% endif %} + +{% if include.id %} + {% assign f = site.[include.id][i] %} +{% endif %} + +{% if include.category %} + {% assign cat = include.category %} +{% endif %} + + + +
+
+
+ {% if include.category %} +

{{ cat }}

+ {% endif %} + + + + {% if f.title %} +

{{ f.title }}

+ {% endif %} + +
+ + {% if f.image_url %} +
+ {% capture url %}{{ f.image_url }}{% endcapture %} + {% assign split_url = url | split: '.' %} + {% capture thumb_url %}{{split_url[0]}}-thumb.{{split_url[1]}}{% endcapture %} + +
+ {% endif %} + + {% if f.excerpt %} +
+ {{ f.excerpt | markdownify }} +
+ {% endif %} + +
+
+
diff --git a/index.html b/index.html index fa036fbb..43925502 100644 --- a/index.html +++ b/index.html @@ -10,23 +10,11 @@ caption: excerpt: 'Η δράση του Τμήματος Πληροφορικής είναι προσανατολισμένη σε καινοτόμες εφαρμογές στις κατευθύνσεις των:
Ανθρωπιστικών-Κοινωνικών Επιστημών
Πληροφοριακών Συστημάτων

' feature_row: - - image_path: /assets/images/mm-customizable-feature.png - alt: "news" - title: "Ανακοινώσεις" - excerpt: "Ενημερωθείτε για τα τελευταία νέα του τμήματος Πληροφορικής." - url: "/posts/" + - url: "/posts/" btn_label: "Learn More" - - image_path: /assets/images/mm-responsive-feature.png - alt: "projects" - title: "Ερευνητικά Προγράμματα" - excerpt: "Δείτε όλα τα ερευνητικά προγράμματα του τμήματος Πληροφορικής." - url: "/projects/" + - url: "/projects/" btn_label: "Learn More" - - image_path: /assets/images/mm-free-feature.png - alt: "labs" - title: "Εργαστήρια" - excerpt: "Τα εργαστήρια του τμήματος παρέχουν έρευνα και διδασκαλία στην περιοχή της Πληροφορικής" - url: "/groups/" + - url: "/groups/" btn_label: "Learn More" github: - excerpt: '' @@ -35,6 +23,28 @@ --- + + {% include feature_row id="intro" type="center" %} -{% include feature_row %} +
+ + {% assign random = site.time | date: "%s%N" | modulo: site.posts.size %} + + {% include dynamic.html id="posts" category="Posts" index=random %} + + {% assign random = site.time | date: "%s%N" | modulo: site.projects.size %} + + {% include dynamic.html id="projects" category="Projects" index=random %} + + {% assign random = site.time | date: "%s%N" | modulo: site.groups.size %} + + {% include dynamic.html id="groups" category="Groups" index=random %} + + {% include feature_row %} + + +
+ + +