Initial commit (stolen from https://gitlab.utc.fr/jrda-2021/website)
This commit is contained in:
12
_themes/prologue/_includes/footer.html
Normal file
12
_themes/prologue/_includes/footer.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<!-- Footer -->
|
||||
<div id="footer">
|
||||
|
||||
<!-- Copyright -->
|
||||
<ul class="copyright">
|
||||
{% if site.author %}
|
||||
<li>© {{- site.author -}} 2023</li>
|
||||
<li>Built using <a href="https://jekyllrb.com/">Jekyll</a> and the <a href="https://github.com/chrisbobbe/jekyll-theme-prologue">Prologue</a> theme.</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
0
_themes/prologue/_includes/google_analytics.html
Normal file
0
_themes/prologue/_includes/google_analytics.html
Normal file
49
_themes/prologue/_includes/head.html
Normal file
49
_themes/prologue/_includes/head.html
Normal file
@@ -0,0 +1,49 @@
|
||||
<head>
|
||||
{%- if site.google_analytics and jekyll.environment == 'production' -%}
|
||||
{%- include google_analytics.html -%}
|
||||
{%- endif -%}
|
||||
|
||||
<!-- Robots -->
|
||||
<meta name="robots" content="{{- page.robots | default: 'index, follow' -}}" />
|
||||
{%- unless page.canonical == false -%}<link rel="canonical" href="{{- page.url | absolute_url -}}" />{%- endunless -%}
|
||||
|
||||
<!-- Title, description, author -->
|
||||
{%- capture _page_title -%}
|
||||
{%- if page.title -%}{{- page.title | append: ' | ' -}}{%- endif -%}
|
||||
{{- site.title | default: "Untitled Website" -}}
|
||||
{%- if site.subtitle -%}{{- site.subtitle | prepend: ' - ' -}}{%- endif -%}
|
||||
{%- endcapture -%}
|
||||
{%- assign _page_title = _page_title | escape -%}
|
||||
{%- assign _page_description = page.description | default: site.description | default: _page_title | escape -%}
|
||||
|
||||
<title>{{- _page_title -}}</title>
|
||||
<meta name="description" content="{{- _page_description -}}" />
|
||||
<meta name="author" content="{{- site.author -}}" />
|
||||
|
||||
<!-- Open Graph -->
|
||||
<meta property="og:title" content="{{- _page_title -}}" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:image" content="{{- site.avatar | absolute_url -}}" />
|
||||
<meta property="og:url" content="{{- page.url | absolute_url -}}" />
|
||||
<meta property="og:site_name" content="{{- site.title | escape -}}" />
|
||||
<meta property="og:description" content="{{- _page_description -}}" />
|
||||
|
||||
<!-- Styles -->
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<!--[if lte IE 8]><script src="{{- 'assets/js/ie/html5shiv.js' | relative_url -}}" defer></script><![endif]-->
|
||||
<link rel="stylesheet" href="{{- 'assets/css/main.css' | relative_url -}}" />
|
||||
<!--[if lte IE 8]><link rel="stylesheet" href="{{- 'assets/css/ie8.css' | relative_url -}}" /><![endif]-->
|
||||
<!--[if lte IE 9]><link rel="stylesheet" href="{{- 'assets/css/ie9.css' | relative_url -}}" /><![endif]-->
|
||||
<link rel="stylesheet" href="{{- 'assets/css/fontawesome.css' | relative_url -}}">
|
||||
|
||||
<!-- Scripts -->
|
||||
<script src="{{- 'assets/js/jquery.min.js' | relative_url -}}" defer></script>
|
||||
<script src="{{- 'assets/js/jquery.scrolly.min.js' | relative_url -}}" defer></script>
|
||||
<script src="{{- 'assets/js/jquery.scrollzer.min.js' | relative_url -}}" defer></script>
|
||||
<script src="{{- 'assets/js/skel.min.js' | relative_url -}}" defer></script>
|
||||
<script src="{{- 'assets/js/util.js' | relative_url -}}" defer></script>
|
||||
<!--[if lte IE 8]><script src="{{- 'assets/js/ie/respond.min.js' | relative_url -}}" defer></script><![endif]-->
|
||||
<script src="{{- 'assets/js/main.js' | relative_url -}}" defer></script>
|
||||
|
||||
</head>
|
||||
16
_themes/prologue/_includes/header.html
Normal file
16
_themes/prologue/_includes/header.html
Normal file
@@ -0,0 +1,16 @@
|
||||
{%- comment -%}
|
||||
Include vars:
|
||||
scrolly_nav
|
||||
{%- endcomment -%}
|
||||
|
||||
<!-- Header -->
|
||||
<div id="header">
|
||||
<div class="top">
|
||||
{%- include logo.html -%}
|
||||
{%- include nav.html section_items=include.scrolly_nav -%}
|
||||
</div>
|
||||
<div class="bottom">
|
||||
{%- include logos.html -%}
|
||||
{%- include social_icons.html -%}
|
||||
</div>
|
||||
</div>
|
||||
8
_themes/prologue/_includes/logo.html
Normal file
8
_themes/prologue/_includes/logo.html
Normal file
@@ -0,0 +1,8 @@
|
||||
<!-- Logo -->
|
||||
<div id="logo">
|
||||
<a href="{{- '/' | absolute_url -}}" id="home-link">
|
||||
<span class="image avatar48"><img src="{{- site.avatar | relative_url -}}" alt="{{- site.author | default: 'unknown author' | prepend: 'Avatar of ' -}}" /></span>
|
||||
<h1 id="title">{{- site.title -}}</h1>
|
||||
<p>{{- site.subtitle -}}</p>
|
||||
</a>
|
||||
</div>
|
||||
25
_themes/prologue/_includes/logos.html
Normal file
25
_themes/prologue/_includes/logos.html
Normal file
@@ -0,0 +1,25 @@
|
||||
<!-- Social Icons -->
|
||||
<!--<style>
|
||||
.col3 {
|
||||
max-width: 20%;
|
||||
margin-left: 3%;
|
||||
margin-right: 3%;
|
||||
}
|
||||
.col2 {
|
||||
max-width: 35%;
|
||||
margin-left: 5%;
|
||||
margin-right: 5%;
|
||||
}
|
||||
.testdiv {
|
||||
display: flex;
|
||||
text-align: center;
|
||||
display: inline-block;
|
||||
}
|
||||
</style>
|
||||
<ul class="testdiv">
|
||||
<a href="http://cnrs.fr/"><img src="assets/images/logos/cnrs.png" class="col3"/></a>
|
||||
<a href="https://www.uphf.fr/graisyhm/"><img src="assets/images/logos/graisyhm.png" class="col3"/></a>
|
||||
<a href="https://www.hautsdefrance.fr/"><img src="assets/images/logos/hdf.png" class="col3"/></a>
|
||||
<a href="https://www.hds.utc.fr/"><img src="assets/images/logos/hds.png" class="col2"/></a>
|
||||
<a href="https://www.utc.fr/"><img src="assets/images/logos/utc.png" class="col2"/></a>
|
||||
</ul>-->
|
||||
57
_themes/prologue/_includes/nav.html
Normal file
57
_themes/prologue/_includes/nav.html
Normal file
@@ -0,0 +1,57 @@
|
||||
{%- comment -%}
|
||||
Include vars:
|
||||
section_items
|
||||
{%- endcomment -%}
|
||||
|
||||
<!-- Nav -->
|
||||
<nav id="nav">
|
||||
<ul>
|
||||
{%- assign _pages = site.html_pages | where_exp: "page", "page.hide != true" -%}
|
||||
{%- unless _pages == null -%}
|
||||
{%- assign _pages = _pages | sort: 'order' -%}
|
||||
{%- for _page in _pages -%}
|
||||
{%- assign _title = _page.navtitle | default: _page.title -%}
|
||||
{%- assign _slug = _title | slugify -%}
|
||||
{%- assign _icon = _page.icon | default: 'fa-link' -%}
|
||||
{%- if _page.icon-style == 'regular' -%}
|
||||
{%- assign _class = 'icon-r' -%}
|
||||
{%- elsif _page.icon-style == 'brands' -%}
|
||||
{%- assign _class = 'icon-b' -%}
|
||||
{%- else -%}
|
||||
{%- assign _class = 'icon' -%}
|
||||
{%- endif -%}
|
||||
{%- comment -%}<!-- page.url (no underscore) is the url of the current page-->{%- endcomment -%}
|
||||
{%- if _page.url == page.url -%}
|
||||
<li><a href="#" id="{{- _slug -}}" class="active">
|
||||
<span class="{{ _class }} {{ _icon }}">{{- _title -}}</span>
|
||||
</a></li>
|
||||
{%- elsif _page.url -%}
|
||||
<li><a href="{{- _page.url | absolute_url -}}" id="{{- _slug -}}-link">
|
||||
<span class="{{ _class }} {{ _icon }}">{{- _title -}}</span>
|
||||
</a></li>
|
||||
{%- else -%}
|
||||
<li><a href="{{- '/' | absolute_url -}}" id="broken-link"><span class="icon fa-unlink">[broken link]</span></a></li>
|
||||
{%- endif -%}
|
||||
{%- endfor -%}
|
||||
{%- endunless -%}
|
||||
{%- assign _sections = include.section_items | where_exp: "section", "section.hide != true" -%}
|
||||
{%- if false -%}
|
||||
{%- if _pages[0] and _sections[0] -%}<hr>{%- endif -%}
|
||||
{%- unless _sections == null -%}
|
||||
{%- for _sect in _sections -%}
|
||||
{%- assign _title = _sect.title | default: _sect.layout | default: 'Untitled' -%}
|
||||
{%- assign _slug = _title | slugify -%}
|
||||
{%- assign _icon = _sect.icon | default: 'fa-file' -%}
|
||||
{%- if _sect.icon-style == 'regular' -%}
|
||||
{%- assign _class = 'icon-r' -%}
|
||||
{%- elsif _sect.icon-style == 'brands' -%}
|
||||
{%- assign _class = 'icon-b' -%}
|
||||
{%- else -%}
|
||||
{%- assign _class = 'icon' -%}
|
||||
{%- endif -%}
|
||||
<li><a href="#{{- _slug -}}" id="{{- _slug -}}-link" class="scrolly"><span class="{{ _class }} {{ _icon }}">{{- _title -}}</span></a></li>
|
||||
{%- endfor -%}
|
||||
{%- endunless -%}
|
||||
{%- endif -%}
|
||||
</ul>
|
||||
</nav>
|
||||
47
_themes/prologue/_includes/section.html
Normal file
47
_themes/prologue/_includes/section.html
Normal file
@@ -0,0 +1,47 @@
|
||||
{%- comment -%}
|
||||
Include vars:
|
||||
title
|
||||
subtitle
|
||||
photo
|
||||
photo-alt
|
||||
auto-header
|
||||
content
|
||||
{%- endcomment -%}
|
||||
|
||||
{%- assign _title = include.title | default: 'Untitled' -%}
|
||||
{%- assign _slug = include.title | strip_html | slugify | default: 'untitled' -%}
|
||||
|
||||
{%- if include.photo and include.photo-alt -%}
|
||||
{%- capture _photo -%}
|
||||
<img src="{{- include.photo | relative_url -}}" alt="{{- include.photo-alt -}}" class="back">
|
||||
{%- endcapture -%}
|
||||
{%- assign _class = 'shade-one cover dark' -%}
|
||||
{%- else -%}
|
||||
{%- assign _photo = '' -%}
|
||||
{%- capture _class -%}shade-{%- cycle 'two', 'three', 'four', 'three' -%}{%- endcapture -%}
|
||||
{%- endif -%}
|
||||
|
||||
{%- if include.auto-header == 'none' -%}
|
||||
{%- assign _heading = "" -%}
|
||||
{%- else -%}
|
||||
{%- capture _heading -%}
|
||||
<header>
|
||||
<h2>
|
||||
{%- if include.auto-header == null or include.auto-header == 'use-title' -%}
|
||||
{{- _title -}}
|
||||
{%- else -%}
|
||||
{{- include.auto-header -}}
|
||||
{%- endif -%}
|
||||
</h2>
|
||||
{%- if include.subtitle -%}<p>{{- include.subtitle -}}</p>{%- endif -%}
|
||||
</header>
|
||||
{%- endcapture -%}
|
||||
{%- endif -%}
|
||||
|
||||
<section id="{{- _slug -}}" class="{{- _class -}}">
|
||||
<div class="container">
|
||||
{{- _photo -}}
|
||||
{{- _heading -}}
|
||||
{{- include.content -}}
|
||||
</div>
|
||||
</section>
|
||||
36
_themes/prologue/_includes/social_icons.html
Normal file
36
_themes/prologue/_includes/social_icons.html
Normal file
@@ -0,0 +1,36 @@
|
||||
<!-- Social Icons -->
|
||||
<ul class="icons">
|
||||
{%- if site.twitter_url -%}
|
||||
<li><a href="{{- site.twitter_url -}}" class="icon-b fa-twitter"><span class="label">Twitter</span></a></li>
|
||||
{%- endif -%}
|
||||
{%- if site.facebook_url -%}
|
||||
<li><a href="{{- site.facebook_url -}}" class="icon-b fa-facebook-f"><span class="label">Facebook</span></a></li>
|
||||
{%- endif -%}
|
||||
{%- if site.googleplus_url -%}
|
||||
<li><a href="{{- site.googleplus_url -}}" class="icon-b fa-google-plus-g"><span class="label">Google Plus</span></a></li>
|
||||
{%- endif -%}
|
||||
{%- if site.instagram_url -%}
|
||||
<li><a href="{{- site.instagram_url -}}" class="icon-b fa-instagram"><span class="label">Instagram</span></a></li>
|
||||
{%- endif -%}
|
||||
{%- if site.linkedin_url -%}
|
||||
<li><a href="{{- site.linkedin_url -}}" class="icon-b fa-linkedin-in"><span class="label">LinkedIn</span></a></li>
|
||||
{%- endif -%}
|
||||
{%- if site.github_url -%}
|
||||
<li><a href="{{- site.github_url -}}" class="icon-b fa-github"><span class="label">GitHub</span></a></li>
|
||||
{%- endif -%}
|
||||
{%- if site.stackoverflow_url -%}
|
||||
<li><a href="{{- site.stackoverflow_url -}}" class="icon-b fa-stack-overflow"><span class="label">StackOverflow</span></a></li>
|
||||
{%- endif -%}
|
||||
{%- if site.pinterest_url -%}
|
||||
<li><a href="{{- site.pinterest_url -}}" class="icon-b fa-pinterest"><span class="label">Pinterest</span></a></li>
|
||||
{%- endif -%}
|
||||
{%- if site.slack_url -%}
|
||||
<li><a href="{{- site.slack_url -}}" class="icon-b fa-slack-hash"><span class="label">Slack</span></a></li>
|
||||
{%- endif -%}
|
||||
{%- if site.dribbble_url -%}
|
||||
<li><a href="{{- site.dribbble_url -}}" class="icon-b fa-dribbble"><span class="label">Dribbble</span></a></li>
|
||||
{%- endif -%}
|
||||
{%- if site.email -%}
|
||||
<li><a href="mailto:{{- site.email -}}" class="icon fa-envelope"><span class="label">Email</span></a></li>
|
||||
{%- endif -%}
|
||||
</ul>
|
||||
Reference in New Issue
Block a user