Merge pull request #49 from prodingerd/master

Clean up project
This commit is contained in:
Chester How 2018-10-05 12:05:35 +08:00 committed by GitHub
commit 8a6912e309
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 16 deletions

View file

@ -12,6 +12,8 @@ author:
# Build settings # Build settings
markdown: kramdown markdown: kramdown
include:
- _pages
# Assets # Assets
sass: sass:

5
_includes/footer.html Normal file
View file

@ -0,0 +1,5 @@
<footer>
<span>
&copy; <time datetime="{{ site.time }}">{{ site.time | date: '%Y' }}</time> {{ site.author.name }}. Made with Jekyll using the <a href="https://github.com/chesterhow/tale/">Tale</a> theme.
</span>
</footer>

11
_includes/navigation.html Normal file
View file

@ -0,0 +1,11 @@
<nav class="nav">
<div class="nav-container">
<a href="{{ site.baseurl }}/">
<h2 class="nav-title">{{ site.title }}</h2>
</a>
<ul>
<li><a href="{{ '/about' | prepend: site.baseurl }}">About</a></li>
<li><a href="{{ site.baseurl }}/">Posts</a></li>
</ul>
</div>
</nav>

View file

@ -4,26 +4,13 @@
{% include head.html %} {% include head.html %}
<body> <body>
<nav class="nav">
<div class="nav-container"> {% include navigation.html %}
<a href="{{ site.baseurl }}/">
<h2 class="nav-title">{{ site.title }}</h2>
</a>
<ul>
<li><a href="{{ '/about' | prepend: site.baseurl }}">About</a></li>
<li><a href="{{ site.baseurl }}/">Posts</a></li>
</ul>
</div>
</nav>
<main> <main>
{{ content }} {{ content }}
</main> </main>
<footer> {% include footer.html %}
<span>
&copy; <time datetime="{{ site.time }}">{{ site.time | date: '%Y' }}</time> {{ site.author.name }}. Made with Jekyll using the <a href="https://github.com/chesterhow/tale/">Tale</a> theme.
</span>
</footer>
</body> </body>
</html> </html>