Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasbuschmann committed Jul 14, 2019
1 parent 6651c36 commit 3bf18bc
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 15 deletions.
5 changes: 2 additions & 3 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ description: "Really cool blog about ... something"
permalink: /:title/
lang: "en"

# style: minimal # use a simpler style inspired by the minima theme
hide_title: false # remove site heading in the header
hide_footer: true # hide the "previous" and "next" links at the end of each post
show_footer: false # show the "previous" and "next" links at the end of each post
dark_theme: false # use the dark mode as default
dark_header: true # keep the header dark
dark_footer: false # keep the footer dark
# style: minimal # use a simpler style inspired by the minima theme

navigation: # site navigation in the header
- index.html
Expand Down
11 changes: 8 additions & 3 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
{% if site.comments.isso %}<script data-isso="http://{{ site.comments.isso }}" src="//{{ site.comments.isso }}/js/embed.min.js"></script>{% endif %}

<header>
{% unless site.hide_title %}
<h1><a href="{{ "/" | relative_url }}">{{ site.title | escape }}</a></h1>
{% endunless %}
<h1><a href="{{ "/" | relative_url }}">{{ site.title | escape }}</a></h1>
{% if site.navigation %}
<nav>
{% for path in site.navigation %}
Expand All @@ -45,4 +43,11 @@ <h1><a href="{{ "/" | relative_url }}">{{ site.title | escape }}</a></h1>

{{ content }}

{% if site.show_footer and page.previous.url or page.next.url %}
<footer>
{% if page.next.url %}<a class="gray" href="{{ page.next.url | relative_url }}">« {{ page.next.title }}</a>{% else %}<span></span>{% endif %}
{% if page.previous.url %}<a class="gray" href="{{ page.previous.url | relative_url }}">{{ page.previous.title }} »</a>{% else %}<span></span>{% endif %}
</footer>
{% endif %}

</html>
8 changes: 0 additions & 8 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,3 @@ <h1><a href="{{ page.url | relative_url }}">{{ page.title }}</a></h1>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
{% endif %}
</article>
{% unless site.hide_footer %}
{% if page.previous.url or page.next.url %}
<footer>
{% if page.next.url %}<a class="gray" href="{{ page.next.url | relative_url }}">« {{ page.next.title }}</a>{% else %}<span></span>{% endif %}
{% if page.previous.url %}<a class="gray" href="{{ page.previous.url | relative_url }}">{{ page.previous.title }} »</a>{% else %}<span></span>{% endif %}
</footer>
{% endif %}
{% endunless %}
8 changes: 7 additions & 1 deletion assets/css/theme.sass
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
---

@import index, anchor
@import index

body > header, article, body > footer
padding: 1.5em calc(34% - 12rem)
Expand Down Expand Up @@ -29,6 +29,12 @@ article

{% endif %}

{% if site.show_footer %}

@import anchor

{% endif %}

{% if site.dark_footer %}

body > footer
Expand Down

0 comments on commit 3bf18bc

Please sign in to comment.