mirror of
https://github.com/seigler/dash-website
synced 2025-07-27 07:16:10 +00:00
Blog section
The blog is driven by the _posts directory nested in each language.
This commit is contained in:
parent
8374114bc0
commit
01c297d5e7
18 changed files with 166 additions and 11 deletions
|
@ -1,8 +1,5 @@
|
|||
{% if page.author %}
|
||||
<div class="author">
|
||||
<div class="divider">
|
||||
<img src="/assets/images/divider-logo-mark.png">
|
||||
</div>
|
||||
{% assign author = site.data.people[page.author] %}
|
||||
<img src="{{ author.image }}" class="author-icon img-circle"><br />
|
||||
<a rel="author"
|
||||
|
|
|
@ -12,8 +12,17 @@
|
|||
|
||||
{% capture basenav %}{{ base }}{% if site.lang != "en" %}/{{ site.lang }}{% endif %}{% endcapture %}
|
||||
|
||||
<!--
|
||||
To change the logo color, pass the parameter in the include.
|
||||
include nav-desktop.html logo-color="blue"
|
||||
-->
|
||||
{% assign logo-color = 'white' %}
|
||||
{% if include.logo-color %}
|
||||
{% assign logo-color = include.logo-color %}
|
||||
{% endif %}
|
||||
|
||||
<div id="top" class="content">
|
||||
<a href="#"><img src="{{ base }}/assets/img/logo-white.png" alt="Dash" class="logo"></a>
|
||||
<a href="#"><img src="{{ base }}/assets/img/logo-{{ logo-color }}.png" alt="Dash" class="logo"></a>
|
||||
|
||||
<nav class="desktop">
|
||||
<ul class="menu">
|
||||
|
@ -21,8 +30,8 @@
|
|||
<li><a href="{{ basenav }}/get-dash/">{% t nav.get-dash %}</a></li>
|
||||
<li><a href="{{ basenav }}/participate/">{% t nav.participate %}</a></li>
|
||||
<li><a href="{{ basenav }}/currency/">{% t nav.currency %}</a></li>
|
||||
<li><a href="{{ basenav }}/community">{% t nav.community %}</a></li>
|
||||
<li><a href="{{ basenav }}">{% t nav.blog %}</a></li>
|
||||
<li><a href="{{ basenav }}/community/">{% t nav.community %}</a></li>
|
||||
<li><a href="{{ basenav }}/blog/">{% t nav.blog %}</a></li>
|
||||
<li><a href="{{ basenav }}">{% t nav.project %}</a></li>
|
||||
|
||||
<li><a href="{{ base }}{{ page.url }}">{% t global.english %}</a></li>
|
||||
|
|
|
@ -18,8 +18,8 @@
|
|||
<li><a href="{{ basenav }}/get-dash/">{% t nav.get-dash %}</a></li>
|
||||
<li><a href="{{ basenav }}/participate/">{% t nav.participate %}</a></li>
|
||||
<li><a href="{{ basenav }}/currency/">{% t nav.currency %}</a></li>
|
||||
<li><a href="{{ basenav }}/community">{% t nav.community %}</a></li>
|
||||
<li><a href="{{ basenav }}">{% t nav.blog %}</a></li>
|
||||
<li><a href="{{ basenav }}/community/">{% t nav.community %}</a></li>
|
||||
<li><a href="{{ basenav }}/blog/">{% t nav.blog %}</a></li>
|
||||
<li><a href="{{ basenav }}">{% t nav.project %}</a></li>
|
||||
|
||||
<li><a href="{{ base }}{{ page.url }}">{% t global.english %}</a></li>
|
||||
|
|
10
_includes/pagination_navigation.html
Normal file
10
_includes/pagination_navigation.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
<!-- Pagination links -->
|
||||
<div class="pagination">
|
||||
{% if paginator.previous_page %}
|
||||
<a href="{{ paginator.previous_page_path }}" class="previous">« Previous</a>
|
||||
{% endif %}
|
||||
<span class="page_number ">Page {{ paginator.page }} of {{ paginator.total_pages }}</span>
|
||||
{% if paginator.next_page %}
|
||||
<a href="{{ paginator.next_page_path }}" class="next">Next »</a>
|
||||
{% endif %}
|
||||
</div>
|
21
_includes/pagination_navigation_all.html
Normal file
21
_includes/pagination_navigation_all.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
{% if paginator.total_pages > 1 %}
|
||||
<div class="pagination">
|
||||
{% if paginator.previous_page %}
|
||||
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">« Prev</a>
|
||||
{% endif %}
|
||||
|
||||
{% for page in (1..paginator.total_pages) %}
|
||||
{% if page == paginator.page %}
|
||||
<em>{{ page }}</em>
|
||||
{% elsif page == 1 %}
|
||||
<a href="/blog">{{ page }}</a>
|
||||
{% else %}
|
||||
<a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% if paginator.next_page %}
|
||||
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next »</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
Loading…
Add table
Add a link
Reference in a new issue