Initial commit (stolen from https://gitlab.utc.fr/jrda-2021/website)
This commit is contained in:
25
_themes/prologue/_layouts/blog.html
Normal file
25
_themes/prologue/_layouts/blog.html
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
{%- assign _posts = site.posts | sort: 'date' | reverse -%}
|
||||
{%- include header.html scrolly_nav=_posts -%}
|
||||
<!-- Main -->
|
||||
<div id="main">
|
||||
{%- if page.content != "" -%}
|
||||
{%- include section.html title=page.title photo=page.cover-photo photo-alt=page.cover-photo-alt auto-header=page.auto-header content=page.content -%}
|
||||
{%- endif -%}
|
||||
<!-- Posts List -->
|
||||
{%- for _post in _posts -%}
|
||||
{%- capture _title -%}
|
||||
<a href="{{- _post.url | absolute_url -}}">{{- _post.title -}}</a>
|
||||
{%- endcapture -%}
|
||||
{%- capture _subtitle -%}
|
||||
{% if _post.author -%}{{- _post.author }} | {% endif %}
|
||||
{{- _post.date | date_to_long_string -}}
|
||||
{%- endcapture -%}
|
||||
{%- capture _excerpt -%}<p>{{- _post.excerpt | strip_html | truncatewords: 100 -}}</p>{%- endcapture -%}
|
||||
{%- capture _link -%}<a href="{{- _post.url | absolute_url -}}">read more</a>{%- endcapture -%}
|
||||
{%- assign _content = _excerpt | append: _link -%}
|
||||
{%- include section.html title=_title subtitle=_subtitle content=_content -%}
|
||||
{%- endfor -%}
|
||||
</div>
|
||||
14
_themes/prologue/_layouts/default.html
Normal file
14
_themes/prologue/_layouts/default.html
Normal file
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE HTML>
|
||||
<!--
|
||||
Prologue by HTML5 UP
|
||||
html5up.net | @ajlkn
|
||||
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
Jekyll integration by Chris Bobbe | chrisbobbe.github.io
|
||||
-->
|
||||
<html>
|
||||
{%- include head.html -%}
|
||||
<body>
|
||||
{{- content -}}
|
||||
{%- include footer.html -%}
|
||||
</body>
|
||||
</html>
|
||||
15
_themes/prologue/_layouts/home.html
Normal file
15
_themes/prologue/_layouts/home.html
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
{%- assign _sections = site.sections | sort: 'order' -%}
|
||||
{%- include header.html scrolly_nav=_sections -%}
|
||||
<!-- Main -->
|
||||
<div id="main">
|
||||
{%- if page.content != "" -%}
|
||||
{%- include section.html title=page.title photo=page.cover-photo photo-alt=page.cover-photo-alt auto-header=page.auto-header content=page.content -%}
|
||||
{%- endif -%}
|
||||
<!-- Sections -->
|
||||
{%- for _section in _sections -%}
|
||||
{%- include section.html title=_section.title photo=_section.cover-photo photo-alt=_section.cover-photo-alt auto-header=_section.auto-header content=_section.content -%}
|
||||
{%- endfor -%}
|
||||
</div>
|
||||
18
_themes/prologue/_layouts/page.html
Normal file
18
_themes/prologue/_layouts/page.html
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
{%- include header.html -%}
|
||||
|
||||
<!-- Main -->
|
||||
<div id="main">
|
||||
<!-- Page -->
|
||||
<article class="shade-two">
|
||||
<div class="container">
|
||||
<header>
|
||||
<h2>{{- page.title -}}</h2>
|
||||
{%- if page.subtitle -%}<p>{{- page.subtitle -}}</p>{%- endif -%}
|
||||
</header>
|
||||
{{- content -}}
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
18
_themes/prologue/_layouts/post.html
Normal file
18
_themes/prologue/_layouts/post.html
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
{%- include header.html -%}
|
||||
|
||||
<!-- Main -->
|
||||
<div id="main">
|
||||
<!-- Post -->
|
||||
<article class="shade-two">
|
||||
<div class="container">
|
||||
<header>
|
||||
<h2>{{- page.title -}}</h2>
|
||||
<p>{% if page.author %}{{ page.author }}, {% endif %}{{- page.date | date_to_long_string -}}</p>
|
||||
</header>
|
||||
{{- content -}}
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
Reference in New Issue
Block a user