mirror of
https://github.com/jlengrand/jlengrand.github.io.git
synced 2026-03-10 08:31:22 +00:00
First tests with the awesome minimal mistakes theme
This commit is contained in:
44
_layouts/home.html
Normal file
44
_layouts/home.html
Normal file
@@ -0,0 +1,44 @@
|
||||
<!doctype html>
|
||||
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
|
||||
<!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]-->
|
||||
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<![endif]-->
|
||||
<head>
|
||||
{% include _head.html %}
|
||||
</head>
|
||||
|
||||
<body class="home">
|
||||
|
||||
{% include _browser-upgrade.html %}
|
||||
|
||||
{% include _navigation.html %}
|
||||
|
||||
{% if page.image.feature %}<div class="image-wrap">
|
||||
<img src="{{ site.url }}/images/{{ page.image.feature }}" alt="{{ page.title }} feature image">
|
||||
{% if page.image.credit %}<span class="image-credit">Photo Credit: <a href="{{ page.image.creditlink }}">{{ page.image.credit }}</a></span>{% endif %}
|
||||
</div><!-- /.image-wrap -->{% endif %}
|
||||
|
||||
<div class="article-author-side">
|
||||
{% include _author-bio.html %}
|
||||
</div>
|
||||
|
||||
<div id="index">
|
||||
<h3><a href="{{ site.url}}/articles/">Articles</a></h3>
|
||||
{% for post in site.posts limit:5 %}
|
||||
<article>
|
||||
<h2><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></h2>
|
||||
<p>{% if post.description %}{{ post.description }}{% else %}{{ post.content | strip_html | strip_newlines | truncate: 120 }}{% endif %}</p>
|
||||
</article>
|
||||
{% endfor %}
|
||||
</div><!-- /#index -->
|
||||
|
||||
<div class="footer-wrap">
|
||||
<footer>
|
||||
{% include _footer.html %}
|
||||
</footer>
|
||||
</div><!-- /.footer-wrap -->
|
||||
|
||||
{% include _scripts.html %}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
42
_layouts/page.html
Normal file
42
_layouts/page.html
Normal file
@@ -0,0 +1,42 @@
|
||||
<!doctype html>
|
||||
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
|
||||
<!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]-->
|
||||
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<![endif]-->
|
||||
<head>
|
||||
{% include _head.html %}
|
||||
</head>
|
||||
|
||||
<body class="page">
|
||||
|
||||
{% include _browser-upgrade.html %}
|
||||
|
||||
{% include _navigation.html %}
|
||||
|
||||
{% if page.image.feature %}<div class="image-wrap">
|
||||
<img src="{{ site.url }}/images/{{ page.image.feature }}" alt="{{ page.title }} feature image">
|
||||
{% if page.image.credit %}<span class="image-credit">Photo Credit: <a href="{{ page.image.creditlink }}">{{ page.image.credit }}</a></span>{% endif %}
|
||||
</div><!-- /.image-wrap -->{% endif %}
|
||||
|
||||
<div id="main" role="main">
|
||||
<div class="article-author-side">
|
||||
{% include _author-bio.html %}
|
||||
</div>
|
||||
<article>
|
||||
<h1>{{ page.title }}</h1>
|
||||
<div class="article-wrap">
|
||||
{{ content }}
|
||||
</div><!-- /.article-wrap -->
|
||||
</article>
|
||||
</div><!-- /#index -->
|
||||
|
||||
<div class="footer-wrap">
|
||||
<footer>
|
||||
{% include _footer.html %}
|
||||
</footer>
|
||||
</div><!-- /.footer-wrap -->
|
||||
|
||||
{% include _scripts.html %}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
53
_layouts/post-index.html
Normal file
53
_layouts/post-index.html
Normal file
@@ -0,0 +1,53 @@
|
||||
<!doctype html>
|
||||
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
|
||||
<!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]-->
|
||||
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<![endif]-->
|
||||
<head>
|
||||
{% include _head.html %}
|
||||
</head>
|
||||
|
||||
<body class="post-index">
|
||||
|
||||
{% include _browser-upgrade.html %}
|
||||
|
||||
{% include _navigation.html %}
|
||||
|
||||
{% if page.image.feature %}<div class="image-wrap">
|
||||
<img src="{{ site.url }}/images/{{ page.image.feature }}" alt="{{ page.title }} feature image" itemprop="primaryImageOfPage">
|
||||
{% if page.image.credit %}<span class="image-credit">Photo Credit: <a href="{{ page.image.creditlink }}">{{ page.image.credit }}</a></span>{% endif %}
|
||||
</div><!-- /.image-wrap -->{% endif %}
|
||||
|
||||
<div class="article-author-side">
|
||||
{% include _author-bio.html %}
|
||||
</div>
|
||||
|
||||
<div id="index">
|
||||
<h1>{{ page.title }}</h1>
|
||||
{% for post in site.posts %}
|
||||
{% unless post.next %}
|
||||
<h3>{{ post.date | date: '%Y' }}</h3>
|
||||
{% else %}
|
||||
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
|
||||
{% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}
|
||||
{% if year != nyear %}
|
||||
<h3>{{ post.date | date: '%Y' }}</h3>
|
||||
{% endif %}
|
||||
{% endunless %}
|
||||
<article>
|
||||
<h2><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></h2>
|
||||
<p>{% if post.description %}{{ post.description }}{% else %}{{ post.content | strip_html | strip_newlines | truncate: 120 }}{% endif %}</p>
|
||||
</article>
|
||||
{% endfor %}
|
||||
</div><!-- /#index -->
|
||||
|
||||
<div class="footer-wrap">
|
||||
<footer>
|
||||
{% include _footer.html %}
|
||||
</footer>
|
||||
</div><!-- /.footer-wrap -->
|
||||
|
||||
{% include _scripts.html %}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,9 +1,69 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
<h2>{{ page.title }}</h2>
|
||||
<p class="meta">{{ page.date | date_to_string }}</p>
|
||||
<!doctype html>
|
||||
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
|
||||
<!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]-->
|
||||
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]-->
|
||||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<![endif]-->
|
||||
<head>
|
||||
{% include _head.html %}
|
||||
</head>
|
||||
|
||||
<div class="post">
|
||||
{{ content }}
|
||||
</div>
|
||||
<body class="post">
|
||||
|
||||
{% include _browser-upgrade.html %}
|
||||
|
||||
{% include _navigation.html %}
|
||||
|
||||
{% if page.image.feature %}<div class="image-wrap">
|
||||
<img src="{{ site.url }}/images/{{ page.image.feature }}" alt="{{ page.title }} feature image">
|
||||
{% if page.image.credit %}<span class="image-credit">Photo Credit: <a href="{{ page.image.creditlink }}">{{ page.image.credit }}</a></span>{% endif %}
|
||||
</div><!-- /.image-wrap -->{% endif %}
|
||||
|
||||
<div id="main" role="main">
|
||||
<div class="article-author-side">
|
||||
{% include _author-bio.html %}
|
||||
</div>
|
||||
<article>
|
||||
<div class="headline-wrap">
|
||||
<h1>{{ page.title }}</h1>
|
||||
<h2>{{ page.tagline }}</h2>
|
||||
</div><!--/ .headline-wrap -->
|
||||
<div class="article-wrap">
|
||||
{{ content }}
|
||||
<hr />
|
||||
<footer role="contentinfo">
|
||||
<div class="article-author-bottom">
|
||||
{% include _author-bio.html %}
|
||||
</div>
|
||||
<p class="byline"><strong>{{ page.title }}</strong> was published on <time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%B %d, %Y" }}</time>{% if page.modified %} and last modified on <time datetime="{{ page.modified | date: "%Y-%m-%d" }}">{{ page.modified | date: "%B %d, %Y" }}</time>{% endif %} by <a href="{{ site.url }}/about" title="About {{ site.owner.name }}">{{ site.owner.name }}</a>.</p>
|
||||
</footer>
|
||||
</div><!-- /.article-wrap -->
|
||||
</article>
|
||||
</div><!-- /#main -->
|
||||
|
||||
<div class="footer-wrap">
|
||||
{% if site.related_posts.size > 0 %}<div class="related-articles">
|
||||
<h4>You might also enjoy <small class="pull-right">(<a href="{{ site.url }}/posts/">View all posts</a>)</small></h4>
|
||||
<ul>
|
||||
{% for post in site.related_posts limit:3 %}
|
||||
{% assign match = false %}
|
||||
{% for category in post.categories %}
|
||||
{% if page.categories contains category %}
|
||||
{% assign match = true %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% if match %}
|
||||
<li><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<hr />
|
||||
</div><!-- /.related-articles -->{% endif %}
|
||||
<footer>
|
||||
{% include _footer.html %}
|
||||
</footer>
|
||||
</div><!-- /.footer-wrap -->
|
||||
|
||||
{% include _scripts.html %}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user