212 lines
11 KiB
Twig
212 lines
11 KiB
Twig
{% spaceless %}
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<title>Blog - {% block meta_title %}{{ page.seoTitle|pp(page.object)|pp(page)|e }}{% endblock %}</title>
|
|
{% block metas %}
|
|
<meta name="keywords" content="{{ page.metaKeywords|pp(page.object)|pp(page)|e }}">
|
|
<meta name="description" content="{% block meta_description %}{{ page.metaDescription|pp(page)|pp(page.object)|e }}{% endblock %}">
|
|
<link rel="openid.server" href="https://id.deblan.org/" />
|
|
<link rel="openid.delegate" href="https://id.deblan.org/simon/" />
|
|
<link rel="openid2.provider" href="https://id.deblan.org/" />
|
|
<link rel="openid2.local_id" href="https://id.deblan.org/simon/" />
|
|
{% endblock %}
|
|
{% block stylesheets %}
|
|
<link rel="stylesheet" href="{{ asset('bundles/deblanblog/css/cleanblog/bootstrap.css') }}" />
|
|
<link rel="stylesheet" href="{{ asset('bundles/deblanblog/css/cleanblog/clean-blog.css') }}" />
|
|
<link rel="stylesheet" href="{{ asset('bundles/deblanblog/syntaxhighlighter/styles/shThemeEclipse.css') }}" />
|
|
<link rel="stylesheet" href="{{ asset('bundles/deblanblog/css/cleanblog/main.css') }}?v=2" />
|
|
{% endblock %}
|
|
{{ get_var('CssBlock')|raw }}
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<link rel="alternate" type="application/rss+xml" title="Flux RSS" href="https://{{ app.request.host ~ cms_path('rss') }}">
|
|
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
|
|
</head>
|
|
<body>
|
|
<nav class="navbar navbar-default navbar-custom navbar-fixed-top">
|
|
<div class="container-fluid">
|
|
<div class="navbar-header page-scroll">
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-1">
|
|
<span class="sr-only">Menu</span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
<a class="navbar-brand" href="{{ path('homepage') }}">Deblan</a>
|
|
</div>
|
|
|
|
<!-- Collect the nav links, forms, and other content for toggling -->
|
|
<div class="collapse navbar-collapse" id="navbar-collapse-1">
|
|
<ul class="nav navbar-nav navbar-right">
|
|
<li>
|
|
<div class="dropdown">
|
|
<a href="#" data-toggle="dropdown">Catégories</a>
|
|
|
|
<ul class="dropdown-menu">
|
|
{% for node in manager.menu('categories_menu').nodes %}
|
|
{% if node.isVisible %}
|
|
{% for category in node.dataModelsCollection %}
|
|
<li class="{% if has_current_node(node) and page.object.id == category.id %}active{% endif %}">
|
|
<a href="{{ page_url(node, node.getCleanedDefaultParams, category) }}">{{ category }}</a>
|
|
</li>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
</li>
|
|
{% for node in manager.menu('main_menu').nodes %}
|
|
{% if node.level == 1 and node.isVisible %}
|
|
<li>
|
|
{% set has_children = node.children|length > 0 %}
|
|
{% set is_active = has_current_node(node) %}
|
|
|
|
{% if has_children %}<div class="dropdown">{% endif %}
|
|
|
|
<a {% if is_active %}class="active" {% endif %} {% if has_children %}data-toggle="dropdown" href="#" {% else %}href="{{ page_url(node) }}" {% endif %}>{{ node.title|upper }} {% if has_children %}{% endif %}</a>
|
|
|
|
<ul class="dropdown-menu">
|
|
{% for child in node.children %}
|
|
{% if child.isVisible %}
|
|
{% if child.title == '<sep>' %}
|
|
<li class="divider"></li>
|
|
{% else %}
|
|
<li {% if is_current_node(child) %}class="active"{% endif %}>{{ page_link(child.title, child) }}</li>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
</ul>
|
|
|
|
{% if has_children %}</div>{% endif %}
|
|
</li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
<li>
|
|
<div class="dropdown">
|
|
<a href="#" data-toggle="dropdown">Amis</a>
|
|
|
|
<ul class="dropdown-menu">
|
|
{% for node in manager.menu('links_menu').nodes %}
|
|
{% if node.isVisible %}
|
|
<li>
|
|
<a target="_blank" href="{{ page_url(node) }}">{{ node.title }}</a>
|
|
</li>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<header class="intro-header" style="background-image: url('{{ asset('bundles/deblanblog/img/home-bg.jpg') }}')">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
|
<div class="site-heading">
|
|
<h1>{% block header_title %}Simon Vieille{% endblock %}</h1>
|
|
<hr class="small">
|
|
<span class="subheading">{% block header_subtitle %}Software developer and sysadmin at web&design (symfony expert), casual worker at IUT-BM. Debian addict.{% endblock %}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<ul id="social">
|
|
<li class="social social-rss"><a target="_blank" href="{{ cms_path('rss') }}">RSS</a></li>
|
|
<li class="social social-github"><a target="_blank" href="https://github.com/simmstein/">Github</a></li>
|
|
<li class="social social-linkedin"><a target="_blank" href="https://www.linkedin.com/profile/view?id=68981845&trk=tab_pro">LinkedIn</a></li>
|
|
<li class="social social-diaspora"><a target="_blank" href="https://framasphere.org/people/cf7f5710e85d013117ae2a0000053625">Diaspora</a></li>
|
|
<li class="social social-twitter"><a target="_blank" href="https://twitter.com/SimonVieille">Twitter</a></li>
|
|
<li class="social social-facebook"><a target="_blank" href="https://www.facebook.com/simon.vieille">Facebook</a></li>
|
|
</ul>
|
|
</div>
|
|
</header>
|
|
|
|
|
|
{% spaceless %}
|
|
{% if session_user.hasFlash('message') %}
|
|
{% set flash = session_user.flash('message') %}
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
|
{{ include(flash.template, {message: flash.message}) }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endspaceless %}
|
|
|
|
{% block body %}{% endblock %}
|
|
|
|
{#
|
|
<header id="top">
|
|
<div id="header">
|
|
<div class="ctn">
|
|
<div id="search">
|
|
<form action="{{ path('search') }}">
|
|
<div><input type="text" name="query" value="" /></div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<div class="ctn">
|
|
<div id="nav">
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
<div id="breadcrumb">
|
|
<div class="ctn">
|
|
|
|
<ul>
|
|
<li><span class="glyphicon glyphicon-home"></span></li>
|
|
{% block breadcrumb %}{% endblock %}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
#}
|
|
|
|
<footer>
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
|
{% set defaultFooter %}
|
|
<p class="copyright text-muted">
|
|
Simon Vieille / Hébergement personnel / Textes libres sauf indication(s) contraire(s) /
|
|
<a href="{{ path('private_life') }}">Vie privée</a> /
|
|
<a href="https://lab.deblan.org/client/projects/deblan-trinity/repository">Sources</a>
|
|
</p>
|
|
{% endset %}
|
|
|
|
{{ get_var('FooterContent', defaultFooter)|transform_url }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
|
|
<div id="cookie" class="alert alert-info hide">
|
|
<a class="close" data-dismiss="alert" href="#" aria-hidden="true">×</a>
|
|
<p>Ce site utilise des cookies. <strong><a href="{{ path('private_life') }}">Gérer mes paramètres de confidentalité</a></strong>.</p>
|
|
</div>
|
|
|
|
{% block javascripts %}
|
|
<script src="{{ asset('bundles/deblanblog/js/cleanblog/jquery.js') }}"></script>
|
|
<script src="{{ asset('bundles/deblanblog/js/cleanblog/bootstrap.min.js') }}"></script>
|
|
<script src="{{ asset('bundles/deblanblog/js/cleanblog/clean-blog.js') }}"></script>
|
|
<script src="{{ asset('bundles/deblanblog/syntaxhighlighter/scripts/shCore.js') }}"></script>
|
|
<script src="{{ asset('bundles/deblanblog/syntaxhighlighter/scripts/shAutoloader.js') }}"></script>
|
|
<script src="{{ asset('bundles/deblanblog/js/main.js?v=7') }}"></script>
|
|
<noscript><p><img src="https://piwik.deblan.org/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript>
|
|
|
|
<!--[if lte IE 8]>
|
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
|
<![endif]-->
|
|
{% endblock %}
|
|
|
|
{{ get_var('JavascriptBlock')|raw }}
|
|
</body>
|
|
</html>
|
|
{% endspaceless %}
|