Skip to content
Snippets Groups Projects
Unverified Commit 177c2a52 authored by Tom Wiesing's avatar Tom Wiesing
Browse files

Make posts nicer

parent 128f1ec3
No related branches found
No related tags found
No related merge requests found
Showing
with 82 additions and 108 deletions
# Permalinks
permalink: pretty permalink: pretty
# Setup # Setup
...@@ -29,15 +28,9 @@ author: ...@@ -29,15 +28,9 @@ author:
name: 'The KWARC Group' name: 'The KWARC Group'
url: http://kwarc.info url: http://kwarc.info
email: kohlhase@kwarc.info email: kohlhase@kwarc.info
# twitter: opendreamkit-
semester: SS17 semester: SS17
collections:
tagpages:
output: true
permalink: /tag/:path
# Custom vars # Custom vars
version: 0.3.0 version: 0.3.0
repository: https://gl.kwarc.info/kwarc/website repository: https://gl.kwarc.info/kwarc/website
...@@ -47,7 +40,10 @@ materialize: materialize ...@@ -47,7 +40,10 @@ materialize: materialize
jquery: jquery-3.2.1 jquery: jquery-3.2.1
fontawesome: font-awesome-4.7.0 fontawesome: font-awesome-4.7.0
# Menu config
menu: menu:
- title: 'News'
url: '/news/'
- title: 'People' - title: 'People'
folder: 'people' folder: 'people'
items: items:
...@@ -57,6 +53,7 @@ menu: ...@@ -57,6 +53,7 @@ menu:
url: 'https://kwarc.github.io/bibs/' url: 'https://kwarc.github.io/bibs/'
- title: 'Research' - title: 'Research'
folder: 'research' folder: 'research'
- title: 'Systems' - title: 'Systems'
folder: 'systems' folder: 'systems'
- title: 'Projects' - title: 'Projects'
...@@ -65,14 +62,10 @@ menu: ...@@ -65,14 +62,10 @@ menu:
folder: 'students' folder: 'students'
- title: 'Teaching' - title: 'Teaching'
folder: 'teaching' folder: 'teaching'
- title: 'News' - title: 'Contact'
url: '/news/' url: '/contact/'
- title: 'Sub'
items:
- title: 'Contact'
url: '/contact/'
# Settings for compressing everything
compress_html: compress_html:
clippings: [] clippings: []
comments: ["<!-- ", " -->"] comments: ["<!-- ", " -->"]
......
...@@ -30,5 +30,4 @@ ...@@ -30,5 +30,4 @@
{% include menu_single.html %} {% include menu_single.html %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</li>
</ul> </ul>
\ No newline at end of file
...@@ -3,17 +3,13 @@ ...@@ -3,17 +3,13 @@
Expects the page representing the post as a 'post' variable. Expects the page representing the post as a 'post' variable.
{% endcomment %} {% endcomment %}
<div class="post-link"> <li class="collection-item">
<h3 class="post-title"> <h5>
<a href="{{ post.url }}"> <a href="{{post.url}}">
{{ post.title }} {{ post.subtitle }} {{post.title}} {{post.subtitle}}
</a> </a>
</h3> </h5>
<p class="post-meta" >
{% assign firsttag = post.tags | first %} {% assign post = page %}
{% assign type = site.tagpages | where:"tag", firsttag | first %} {% include post_meta.html %}
<span class="post-type">{{ type.title }} by {{post.author}}</span> - </li>
{% if post.location %}<span class="post-location">{{post.location}}</span> - {% endif %} \ No newline at end of file
<span class="post-date">{{ post.date | date_to_string }}</span>
</p>
</div>
{% comment %}
Shows meta information about a post.
Expects the 'post' to show as an argument.
{% endcomment %}
by
{% assign person = post.author %}
{% include people_chip.html %}
on
<div class="chip">
{{ post.date | date_to_string }}
</div>
{% if post.location %}
at
<div class="chip">
{{post.location}}
</div>
{% endif %}
<br />
in
{% for tag in post.tags %}
<div class="chip">
{{tag}}
</div>
{% endfor %}
\ No newline at end of file
{% capture taglinks %}
{% if page.tags %}
{% assign firsttag = page.tags | first %}
{% endif %}
{% for node in site.tagpages %}
{% assign tag_size = site.tags[node.tag] | size %}
{% if firsttag == node.tag %}
{% assign firsttag_title = node.title %}
{% endif %}
{% if page.alltags or page.tags contains node.tag %}
||{{ tag_size | prepend: '0000' | slice: -4, 4 }}|<span class="tag" ><a class="btn btn-default {% if node.class %}btn-{{ node.class }}{% endif %}" href="{{ node.url }}">{{ node.title }} {% if with_post_numbers %}<span class="badge">{{ tag_size }}</span>{% endif %}</a></span>
{% endif %}
{% endfor %}
{% endcapture %}
{% capture tags %}{% for node in site.tagpages %}|{{ node.tag }}{% endfor %}{% endcapture %}
{% assign split_list = taglinks | split:'||' | sort | reverse %}
{% assign taglist = tags | split:'|' %}
{% capture tagscontent %}
{% for tag_string in split_list %}
{% assign tag_string_parts = tag_string | split:'|' %}
{% assign nb_parts = tag_string_parts | size %}
{% if nb_parts > 1 %}
{{ tag_string_parts[1] }}
{% endif %}
{% endfor %}
{% endcapture %}
...@@ -8,7 +8,7 @@ layout: default ...@@ -8,7 +8,7 @@ layout: default
<div class="card-content"> <div class="card-content">
<span class="card-title">{{page.title}} ({{page.taught}})</span> <span class="card-title">{{page.title}} ({{page.taught}})</span>
{% assign person = page.instructor %} {% assign person = page.instructor %}
Instructor: {% include people_chip.html person=person %} Instructor: {% include people_chip.html %}
</div> </div>
</div> </div>
</div> </div>
......
---
layout: compress
---
{% assign sorted_pages = site.pages | sort: "menu_order" %} {% assign sorted_pages = site.pages | sort: "menu_order" %}
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en-us"> <html lang="en-us">
<!-- url = {{page.url}} -->
{% include head.html %} {% include head.html %}
......
...@@ -2,25 +2,22 @@ ...@@ -2,25 +2,22 @@
layout: default layout: default
--- ---
<div class="post"> <div class="row">
{% assign with_post_numbers = false %} <div class="col s12 m5 right">
{% include tags_module.html %} <div class="card">
<p class="post-meta" > <div class="card-content">
<span class="post-type">{{ firsttag_title }} by {{page.author}}</span> - <span class="card-title">
{% if page.location %}<span class="post-location">{{page.location}}</span> - {% endif %} {{ page.title }}
<span class="post-date">{{ page.date | date_to_string }}</span> </span>
</p> {% if post.subtitle %}<h6>{{post.subtitle}}</h6>{% endif %}
{{ tagscontent }} {% assign post = page %}
{% for tag in page.tags %} {% include post_meta.html %}
{% if taglist contains tag %}{% else %}
<p class="error" >Tag without page: {{ tag }}</p> </div>
{% endif %} </div>
{% endfor %} </div>
<p>
{{content}}
{{ content }} </p>
</div>
\ No newline at end of file
</div>
...@@ -53,7 +53,7 @@ layout: default ...@@ -53,7 +53,7 @@ layout: default
{% assign people = page.people | split: ',' %} {% assign people = page.people | split: ',' %}
{% for person in people %} {% for person in people %}
{% include people_chip.html person=person %} {% include people_chip.html %}
{% endfor %} {% endfor %}
</div> </div>
{% endif %} {% endif %}
......
...@@ -40,7 +40,7 @@ layout: default ...@@ -40,7 +40,7 @@ layout: default
{% assign people = page.people | split: ',' %} {% assign people = page.people | split: ',' %}
{% for person in people %} {% for person in people %}
{% include people_chip.html person=person %} {% include people_chip.html %}
{% endfor %} {% endfor %}
</div> </div>
{% endif %} {% endif %}
......
---
layout: default
---
<h1>Posts: {{ page.title }}</h1>
<p><a href="{{ site.baseurl }}/news/posts/" >All posts</a></p>
{{ content }}
{% for post in site.tags[page.tag] %}
{% include post_link.html %}
{% endfor %}
...@@ -3,6 +3,6 @@ layout: post ...@@ -3,6 +3,6 @@ layout: post
author: mkohlhase author: mkohlhase
title: Andrea Kohlhase starts Professorship at Hochschule Neu-Ulm title: Andrea Kohlhase starts Professorship at Hochschule Neu-Ulm
tags: tags:
- announcement - Announcements
--- ---
Today, [Andrea Kohlhase](https://kwarc.info/people/akohlhase) starts her new position as a [Professor for Web Engineering and HCI](https://www.hs-neu-ulm.de/en/andrea-kohlhase/) at [Hochschule Neu-Ulm](https://www.hs-neu-ulm.de/). She retains her position as a guest researcher at KWARC. We are very proud of her and wish her the best at her new position. Today, [Andrea Kohlhase](https://kwarc.info/people/akohlhase) starts her new position as a [Professor for Web Engineering and HCI](https://www.hs-neu-ulm.de/en/andrea-kohlhase/) at [Hochschule Neu-Ulm](https://www.hs-neu-ulm.de/). She retains her position as a guest researcher at KWARC. We are very proud of her and wish her the best at her new position.
...@@ -3,7 +3,7 @@ layout: post ...@@ -3,7 +3,7 @@ layout: post
author: mkohlhase author: mkohlhase
title: "Ph.D. Defense Fulya Horozal: Congratulations!" title: "Ph.D. Defense Fulya Horozal: Congratulations!"
tags: tags:
- announcement - Announcements
--- ---
With great pleasure we announce that Fulya Horozal has just defended her Dissertation [A Framework for Defining Declarative Languages](https://svn.kwarc.info/repos/fhorozal/pubs/phd-thesis.pdf) today. With great pleasure we announce that Fulya Horozal has just defended her Dissertation [A Framework for Defining Declarative Languages](https://svn.kwarc.info/repos/fhorozal/pubs/phd-thesis.pdf) today.
......
...@@ -3,6 +3,6 @@ layout: post ...@@ -3,6 +3,6 @@ layout: post
author: mkohlhase author: mkohlhase
title: "New KWARC Ph.D. Student: Dennis Müller" title: "New KWARC Ph.D. Student: Dennis Müller"
tags: tags:
- announcement - Announcements
--- ---
We are happy to welcome [Dennis Müller](https://kwarc.info/people/dmueller) to the KWARC group as a new Ph.D. student. Dennis received a Masters degree in Mathematics from Freiburg University and will be working on the [OAF Project](http://kwarc.info/projects/OAF), initially importing the PVS library into MathHub. We are happy to welcome [Dennis Müller](https://kwarc.info/people/dmueller) to the KWARC group as a new Ph.D. student. Dennis received a Masters degree in Mathematics from Freiburg University and will be working on the [OAF Project](http://kwarc.info/projects/OAF), initially importing the PVS library into MathHub.
...@@ -3,7 +3,7 @@ layout: post ...@@ -3,7 +3,7 @@ layout: post
author: mkohlhase author: mkohlhase
title: OpenDreamKit H2020 Grant accepted by EU title: OpenDreamKit H2020 Grant accepted by EU
tags: tags:
- announcement - Announcements
--- ---
We are delighted to announce that the Horizon 2020 proposal ``OpenDreamKit'' was accepted by the European commission: We are delighted to announce that the Horizon 2020 proposal ``OpenDreamKit'' was accepted by the European commission:
......
...@@ -3,7 +3,7 @@ layout: post ...@@ -3,7 +3,7 @@ layout: post
author: mkohlhase author: mkohlhase
title: KWARC is recruiting Ph.D. Candidates and PostDocs (multiple Projects) title: KWARC is recruiting Ph.D. Candidates and PostDocs (multiple Projects)
tags: tags:
- recruiting - Recruiting
--- ---
The KWARC group at Jacobs University Bremen is looking for Ph.D. candidates and PostDocs in multiple MKM-related projects: e.g. OAF, OpenDreamKit (others are in the pipeline) The KWARC group at Jacobs University Bremen is looking for Ph.D. candidates and PostDocs in multiple MKM-related projects: e.g. OAF, OpenDreamKit (others are in the pipeline)
......
...@@ -3,6 +3,6 @@ layout: post ...@@ -3,6 +3,6 @@ layout: post
author: mkohlhase author: mkohlhase
title: Best Paper Award at CICM title: Best Paper Award at CICM
tags: tags:
- announcement - Announcements
--- ---
Mihnea Iancu and Michael Kohlhase received the best paper award at [CICM 2015](http://cicm-conference.org/2015/cicm.php) in Washington DC, USA (MKM/DML tracks) for their paper Math [Literate Knowledge Management via Induced Material](http://kwarc.info/kohlhase/papers/cicm15-induced.pdf) Mihnea Iancu and Michael Kohlhase received the best paper award at [CICM 2015](http://cicm-conference.org/2015/cicm.php) in Washington DC, USA (MKM/DML tracks) for their paper Math [Literate Knowledge Management via Induced Material](http://kwarc.info/kohlhase/papers/cicm15-induced.pdf)
...@@ -3,7 +3,7 @@ layout: post ...@@ -3,7 +3,7 @@ layout: post
author: mkohlhase author: mkohlhase
title: New Demo - Text and Formula search for OEIS title: New Demo - Text and Formula search for OEIS
tags: tags:
- demo - Demos
--- ---
Search engine for the [On-line Encyclopedia of Integer Sequences](https://oeis.org) based on [MathWebSearch](https://search.mathweb.org) and [MMT](https://trac.kwarc.info/MMT). Search engine for the [On-line Encyclopedia of Integer Sequences](https://oeis.org) based on [MathWebSearch](https://search.mathweb.org) and [MMT](https://trac.kwarc.info/MMT).
......
...@@ -3,6 +3,6 @@ layout: post ...@@ -3,6 +3,6 @@ layout: post
author: mkohlhase author: mkohlhase
title: KWARC goes FAU Erlangen-Nürnberg title: KWARC goes FAU Erlangen-Nürnberg
tags: tags:
- announcement - Announcements
--- ---
Michael Kohlhase has accepted an offer for the Professorship for Knowledge Representation and Processing at [FAU Erlangen-Nürnberg](http://cs.fau.de) starting September 1. 2016. He will be an adjunct professor at [Jacobs University](http://jacobs-university.de) for another year; the actual move of the group will be over fall. Michael Kohlhase has accepted an offer for the Professorship for Knowledge Representation and Processing at [FAU Erlangen-Nürnberg](http://cs.fau.de) starting September 1. 2016. He will be an adjunct professor at [Jacobs University](http://jacobs-university.de) for another year; the actual move of the group will be over fall.
...@@ -3,7 +3,7 @@ layout: post ...@@ -3,7 +3,7 @@ layout: post
author: mkohlhase author: mkohlhase
title: Florian Rabe named Substitute Professor at Jacobs University title: Florian Rabe named Substitute Professor at Jacobs University
tags: tags:
- announcement - Announcements
--- ---
PD Dr. Florian Rabe (the KWARC PostDoc of many years) has been named a substitute PD Dr. Florian Rabe (the KWARC PostDoc of many years) has been named a substitute
professor at [Jacobs University](http://www.jacobs-univesity.de) for the Spring professor at [Jacobs University](http://www.jacobs-univesity.de) for the Spring
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment