Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
feat: improve style & add paging links
Browse files Browse the repository at this point in the history
  • Loading branch information
castarco committed Oct 22, 2020
1 parent 1c881a3 commit 4b0521c
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sass/_markdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
font-family: monospace;
}

.content pre>code {
.content pre>code, .content h2>code {
background-color: unset;
}

Expand Down
13 changes: 12 additions & 1 deletion sass/_text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,15 @@ h3, .subtitle-text {

.content h3+p {
margin: 5px 0 18px 0;
}
}

.pager_links {
text-align: center;
width: fit-content;
padding: 40px;
}

.text.content.documentation p {
margin-top: 8px;
margin-bottom: 10px;
}
3 changes: 3 additions & 0 deletions static/images/paypal.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions templates/blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ <h1 style="display: none; visibility: hidden;">Blog</h1>
{% endblock content %}
</div>
</main>
{% if paginator.previous or paginator.next %}
<div class="text pager_links">
{% if paginator.previous %}<a href="{{ paginator.previous | safe }}">Previous</a>{% endif %}
{% if paginator.previous and paginator.next %}&nbsp;···&nbsp;{% endif %}
{% if paginator.next %}<a href="{{ paginator.next | safe }}">Next</a>{% endif %}
</div>
{% endif %}

{% block footer %}
<footer>
Expand Down
7 changes: 7 additions & 0 deletions templates/blog_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,11 @@
{% block content %}
<h1>{{ page.title }}<br/><span class="subtitle-date">{{ page.date }}</span></h1>
{{ page.content | safe }}
{% if page.earlier or page.later %}
<div class="text pager_links">
{% if page.earlier %}<a href="{{ page.earlier.permalink | safe }}">Previous</a>{% endif %}
{% if page.earlier and page.later %}&nbsp;···&nbsp;{% endif %}
{% if page.later %}<a href="{{ page.later.permalink | safe }}">Next</a>{% endif %}
</div>
{% endif %}
{% endblock content %}
2 changes: 1 addition & 1 deletion templates/doc_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
</div>
{% endblock toc %}

<div class="content text">
<div class="content text documentation">
{% block content %}
<h1>{{ page.title }}<br/><span class="subtitle-date">{{ page.date }}</span></h1>
{{ page.content | safe }}
Expand Down

0 comments on commit 4b0521c

Please sign in to comment.