Initial commit
This commit is contained in:
13
spec/fixtures/_layouts/category_index.html
vendored
Normal file
13
spec/fixtures/_layouts/category_index.html
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
---
|
||||
layout: page
|
||||
---
|
||||
<div class="page-content wc-container">
|
||||
<table>
|
||||
{% for post in site.categories[page.category] %}
|
||||
<tr>
|
||||
<td><i class="icon-clock"></i><time datetime="{{post.date|date:"%F"}}">{{post.date|date:"%b %d, %Y"}}</time></td>
|
||||
<td><a href="{{ post.url | prepend: site.baseurl | prepend: site.url }}">{{ post.title }}</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
64
spec/fixtures/_layouts/default.html
vendored
Normal file
64
spec/fixtures/_layouts/default.html
vendored
Normal file
@ -0,0 +1,64 @@
|
||||
---
|
||||
layout: null
|
||||
---
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en-us">
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>
|
||||
{% if page.title == "Home" %}
|
||||
{{ site.title }} · {{ site.tagline }}
|
||||
{% else %}
|
||||
{% if page.title != "" %}{{ page.title }} · {% endif %}{{ site.title }}
|
||||
{% endif %}
|
||||
</title>
|
||||
<link rel="stylesheet" href="//cdn.jsdelivr.net/g/bootstrap@3.3(css/bootstrap-theme.min.css+css/bootstrap.min.css)" crossorigin="anonymous">
|
||||
<!--[if lt IE 9]><script src="//cdn.jsdelivr.net/g/html5shiv@3.7.3,respond@1.4.2" crossorigin="anonymous"></script><![endif]-->
|
||||
<link rel="stylesheet" href="{{ site.baseurl | prepend: site.url }}/assets/css/style.css">
|
||||
<link rel="alternate" type="application/atom+xml" title="Example.com" href="{{ site.baseurl | prepend: site.url }}/atom.xml">
|
||||
<script type="text/javascript" src="{{ site.baseurl | prepend: site.url }}/assets/js/script.js"></script>
|
||||
</head>
|
||||
<body class="layout-reverse sidebar-overlay">
|
||||
{% include sidebar.html %}
|
||||
<div class="wrap">
|
||||
<div class="masthead">
|
||||
<div class="container">
|
||||
<h3 class="masthead-title">
|
||||
<a href="/" title="Home">Example.com</a>
|
||||
<small>Example!</small>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container content">
|
||||
{{ content }}
|
||||
</div>
|
||||
</div>
|
||||
<label for="sidebar-checkbox" class="sidebar-toggle"></label>
|
||||
<footer class="footer">
|
||||
<div class="container">
|
||||
<p class="text-muted text-center">© Copyright {{ site.time | date: '%Y' }} Example. All rights reserved.</p>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script>
|
||||
(function(document) {
|
||||
var toggle = document.querySelector('.sidebar-toggle');
|
||||
var sidebar = document.querySelector('#sidebar');
|
||||
var checkbox = document.querySelector('#sidebar-checkbox');
|
||||
|
||||
document.addEventListener('click', function(e) {
|
||||
var target = e.target;
|
||||
|
||||
if(!checkbox.checked ||
|
||||
sidebar.contains(target) ||
|
||||
(target === checkbox || target === toggle)) return;
|
||||
|
||||
checkbox.checked = false;
|
||||
}, false);
|
||||
})(document);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
8
spec/fixtures/_layouts/page.html
vendored
Normal file
8
spec/fixtures/_layouts/page.html
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
|
||||
<div class="page">
|
||||
<h1 class="page-title">{{ page.title | capitalize }}</h1>
|
||||
{{ content }}
|
||||
</div>
|
25
spec/fixtures/_layouts/post.html
vendored
Normal file
25
spec/fixtures/_layouts/post.html
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
|
||||
<div class="post">
|
||||
<h1 class="post-title">{{ page.title }}</h1>
|
||||
<span class="post-date">{{ page.date | date_to_string }}</span>
|
||||
{{ content }}
|
||||
</div>
|
||||
|
||||
<div class="related">
|
||||
<h2>Related Posts</h2>
|
||||
<ul class="related-posts">
|
||||
{% for post in site.related_posts limit:3 %}
|
||||
<li>
|
||||
<h3>
|
||||
<a href="{{ post.url | prepend: site.baseurl | prepend: site.url }}">
|
||||
{{ post.title }}
|
||||
<small>{{ post.date | date_to_string }}</small>
|
||||
</a>
|
||||
</h3>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
Reference in New Issue
Block a user