Implements a blog
This commit is contained in:
parent
993bd5ad3c
commit
f9662407e3
122 changed files with 9898 additions and 4224 deletions
31
_layouts/blog.html
Normal file
31
_layouts/blog.html
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
{% include head.html %}
|
||||
<body id="page-top" class="index">
|
||||
<div id="post-nav">
|
||||
{% include navigation.html %}
|
||||
</div>
|
||||
|
||||
{% for post in site.posts %}
|
||||
<section class="post">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="post-img" style="background-image: url(/img/posts/{{ post.image }});">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<h2><a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h2>
|
||||
<p class="small">
|
||||
{{ post.date | date: "%b %-d, %Y" }} by {{ post.author }}
|
||||
</span></p>
|
||||
{{ post.excerpt }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{% endfor %}
|
||||
|
||||
{% include js.html %}
|
||||
</body>
|
||||
</html>
|
||||
53
_layouts/post.html
Normal file
53
_layouts/post.html
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
{% include head.html %}
|
||||
<body id="page-top" class="post">
|
||||
<div id="post-nav">
|
||||
{% include navigation.html %}
|
||||
</div>
|
||||
|
||||
{% if page.image %}
|
||||
<section id="post-header" style="background-image: url(/img/posts/{{ page.image }});">
|
||||
{% else %}
|
||||
<section id="post-header">
|
||||
{% endif %}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div id="post-title">
|
||||
<h1>
|
||||
<span class="span-bg">{{ page.title }}</span>
|
||||
</h1>
|
||||
<p class="text-muted">
|
||||
by {{ page.author }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="post-body">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-8 col-md-offset-2">
|
||||
{{ content }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div id="post-footer">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
Footer
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% include footer.html %}
|
||||
{% include js.html %}
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
<body id="page-top" class="index">
|
||||
|
||||
{% include navigation.html %}
|
||||
{% include header.html %}
|
||||
{% include about.html %}
|
||||
{% include portfolio_grid.html %}
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
{% include css/bootstrap.min.css %}
|
||||
{% include css/agency.css %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue