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

Make posts nicer

parent 128f1ec3
Branches
No related tags found
No related merge requests found
Showing
with 82 additions and 108 deletions
# Permalinks
permalink: pretty
# Setup
......@@ -29,15 +28,9 @@ author:
name: 'The KWARC Group'
url: http://kwarc.info
email: kohlhase@kwarc.info
# twitter: opendreamkit-
semester: SS17
collections:
tagpages:
output: true
permalink: /tag/:path
# Custom vars
version: 0.3.0
repository: https://gl.kwarc.info/kwarc/website
......@@ -47,7 +40,10 @@ materialize: materialize
jquery: jquery-3.2.1
fontawesome: font-awesome-4.7.0
# Menu config
menu:
- title: 'News'
url: '/news/'
- title: 'People'
folder: 'people'
items:
......@@ -57,6 +53,7 @@ menu:
url: 'https://kwarc.github.io/bibs/'
- title: 'Research'
folder: 'research'
- title: 'Systems'
folder: 'systems'
- title: 'Projects'
......@@ -65,14 +62,10 @@ menu:
folder: 'students'
- title: 'Teaching'
folder: 'teaching'
- title: 'News'
url: '/news/'
- title: 'Sub'
items:
- title: 'Contact'
url: '/contact/'
- title: 'Contact'
url: '/contact/'
# Settings for compressing everything
compress_html:
clippings: []
comments: ["<!-- ", " -->"]
......
......@@ -30,5 +30,4 @@
{% include menu_single.html %}
{% endif %}
{% endfor %}
</li>
</ul>
\ No newline at end of file
......@@ -3,17 +3,13 @@
Expects the page representing the post as a 'post' variable.
{% endcomment %}
<div class="post-link">
<h3 class="post-title">
<a href="{{ post.url }}">
{{ post.title }} {{ post.subtitle }}
</a>
</h3>
<p class="post-meta" >
{% assign firsttag = post.tags | first %}
{% assign type = site.tagpages | where:"tag", firsttag | first %}
<span class="post-type">{{ type.title }} by {{post.author}}</span> -
{% if post.location %}<span class="post-location">{{post.location}}</span> - {% endif %}
<span class="post-date">{{ post.date | date_to_string }}</span>
</p>
</div>
<li class="collection-item">
<h5>
<a href="{{post.url}}">
{{post.title}} {{post.subtitle}}
</a>
</h5>
{% assign post = page %}
{% include post_meta.html %}
</li>
\ No newline at end of file
{% 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
<div class="card-content">
<span class="card-title">{{page.title}} ({{page.taught}})</span>
{% assign person = page.instructor %}
Instructor: {% include people_chip.html person=person %}
Instructor: {% include people_chip.html %}
</div>
</div>
</div>
......
---
layout: compress
---
{% assign sorted_pages = site.pages | sort: "menu_order" %}
<!DOCTYPE html>
<html lang="en-us">
<!-- url = {{page.url}} -->
{% include head.html %}
......
......@@ -2,25 +2,22 @@
layout: default
---
<div class="post">
{% assign with_post_numbers = false %}
{% include tags_module.html %}
<p class="post-meta" >
<span class="post-type">{{ firsttag_title }} by {{page.author}}</span> -
{% if page.location %}<span class="post-location">{{page.location}}</span> - {% endif %}
<span class="post-date">{{ page.date | date_to_string }}</span>
</p>
{{ tagscontent }}
{% for tag in page.tags %}
{% if taglist contains tag %}{% else %}
<p class="error" >Tag without page: {{ tag }}</p>
{% endif %}
{% endfor %}
{{ content }}
</div>
<div class="row">
<div class="col s12 m5 right">
<div class="card">
<div class="card-content">
<span class="card-title">
{{ page.title }}
</span>
{% if post.subtitle %}<h6>{{post.subtitle}}</h6>{% endif %}
{% assign post = page %}
{% include post_meta.html %}
</div>
</div>
</div>
<p>
{{content}}
</p>
</div>
\ No newline at end of file
......@@ -53,7 +53,7 @@ layout: default
{% assign people = page.people | split: ',' %}
{% for person in people %}
{% include people_chip.html person=person %}
{% include people_chip.html %}
{% endfor %}
</div>
{% endif %}
......
......@@ -40,7 +40,7 @@ layout: default
{% assign people = page.people | split: ',' %}
{% for person in people %}
{% include people_chip.html person=person %}
{% include people_chip.html %}
{% endfor %}
</div>
{% 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
author: mkohlhase
title: Andrea Kohlhase starts Professorship at Hochschule Neu-Ulm
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.
......@@ -3,7 +3,7 @@ layout: post
author: mkohlhase
title: "Ph.D. Defense Fulya Horozal: Congratulations!"
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.
......
......@@ -3,6 +3,6 @@ layout: post
author: mkohlhase
title: "New KWARC Ph.D. Student: Dennis Müller"
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.
......@@ -3,7 +3,7 @@ layout: post
author: mkohlhase
title: OpenDreamKit H2020 Grant accepted by EU
tags:
- announcement
- Announcements
---
We are delighted to announce that the Horizon 2020 proposal ``OpenDreamKit'' was accepted by the European commission:
......
......@@ -3,7 +3,7 @@ layout: post
author: mkohlhase
title: KWARC is recruiting Ph.D. Candidates and PostDocs (multiple Projects)
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)
......
......@@ -3,6 +3,6 @@ layout: post
author: mkohlhase
title: Best Paper Award at CICM
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)
......@@ -3,7 +3,7 @@ layout: post
author: mkohlhase
title: New Demo - Text and Formula search for OEIS
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).
......
......@@ -3,6 +3,6 @@ layout: post
author: mkohlhase
title: KWARC goes FAU Erlangen-Nürnberg
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.
......@@ -3,7 +3,7 @@ layout: post
author: mkohlhase
title: Florian Rabe named Substitute Professor at Jacobs University
tags:
- announcement
- Announcements
---
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment