[config] mise à jour jekyll 3.x

This commit is contained in:
Gaspard 2018-03-19 22:46:27 +01:00
parent 1743778af0
commit 31588c8000
2 changed files with 16 additions and 17 deletions

View file

@ -3,20 +3,19 @@ destination: ./_site
markdown: kramdown markdown: kramdown
port: 8080
safe: true safe: true
pygments: true highlighter: rouge
style: light style: light
title: 'Gaspard Jankowiak · RICAM · ÖAW' title: 'Gaspard Jankowiak · TU Wien'
header-title-fr: 'Page personnelle de Gaspard Jankowiak' header-title-fr: 'Page personnelle de Gaspard Jankowiak'
header-subtitle-fr: 'Postdoc l´Université de Vienne<br><span>gaspard</span>.<span>jankowiak</span>@<span>math.cnrs.fr</span>' header-subtitle-fr: 'Postdoc l´Université Technique de Vienne<br><span>gaspard</span>.<span>jankowiak</span>@<span>math.cnrs.fr</span>'
header-homelink-fr: '/' header-homelink-fr: '/'
header-title-en: "Gaspard Jankowiak's homepage" header-title-en: "Gaspard Jankowiak's homepage"
header-subtitle-en: 'Postdoctoral fellow at the University of Vienna<br><span>gaspard</span>.<span>jankowiak</span>@<span>math.cnrs.fr</span>' header-subtitle-en: 'Postdoctoral fellow at the TU Vienna<br><span>gaspard</span>.<span>jankowiak</span>@<span>math.cnrs.fr</span>'
header-homelink-en: '/en' header-homelink-en: '/en'
pretty: permalinks pretty: permalinks

View file

@ -1,16 +1,16 @@
<!doctype html> <!doctype html>
{% if page:lang %} {% if page.lang %}
<html lang="{{ page:lang }}"> <html lang="{{ page.lang }}">
{% else %} {% else %}
<html lang="fr"> <html lang="fr">
{% endif %} {% endif %}
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title> <title>
{% if page:title %} {% if page.title %}
{{ page:title }} {{ page.title }}
{% else %} {% else %}
{{ site:title }} {{ site.title }}
{% endif %} {% endif %}
</title> </title>
<link rel="icon" href="/images/favicon.png"> <link rel="icon" href="/images/favicon.png">
@ -46,13 +46,13 @@
<div id="wrapper"> <div id="wrapper">
<header> <header>
{% assign homelink = site:header-homelink-fr %} {% assign homelink = site.header-homelink-fr %}
{% assign title = site:header-title-fr %} {% assign title = site.header-title-fr %}
{% assign subtitle = site:header-subtitle-fr %} {% assign subtitle = site.header-subtitle-fr %}
{% if page:lang == 'en' %} {% if page.lang == 'en' %}
{% assign homelink = site:header-homelink-en %} {% assign homelink = site.header-homelink-en %}
{% assign title = site:header-title-en %} {% assign title = site.header-title-en %}
{% assign subtitle = site:header-subtitle-en %} {% assign subtitle = site.header-subtitle-en %}
{% endif %} {% endif %}
<h1><a href="{{ homelink }}">{{ title }}</a></h1> <h1><a href="{{ homelink }}">{{ title }}</a></h1>
<p>{{ subtitle }}</p> <p>{{ subtitle }}</p>