mirror of
https://github.com/monero-project/monero-site.git
synced 2025-03-22 23:28:54 +00:00
fixed page title, formatted paginated blog posts page
This commit is contained in:
parent
2050e1cbc4
commit
4ec19024d0
5 changed files with 33 additions and 24 deletions
|
@ -3,7 +3,13 @@
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
|
||||||
<title>{% t index.page_title %}</title>
|
<title>
|
||||||
|
{% if page.title %}
|
||||||
|
{{ page.title }} | {% t index.page_title %}
|
||||||
|
{% else %}
|
||||||
|
{% t index.page_title %}
|
||||||
|
{% endif %}
|
||||||
|
</title>
|
||||||
<meta name="description" content="{{ site.description }}">
|
<meta name="description" content="{{ site.description }}">
|
||||||
<meta name="keywords" content="{{ site.keywords }}">
|
<meta name="keywords" content="{{ site.keywords }}">
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,6 @@
|
||||||
<li><a href="/getting-started/running">{% t menu.running %}</a></li>
|
<li><a href="/getting-started/running">{% t menu.running %}</a></li>
|
||||||
<li class="divider"></li>
|
<li class="divider"></li>
|
||||||
<li><a href="/downloads">{% t menu.downloads %}</a></li>
|
<li><a href="/downloads">{% t menu.downloads %}</a></li>
|
||||||
<li><a href="/getting-started/simplewallet">{% t menu.simplewallet %}</a></li>
|
|
||||||
<li class="divider"></li>
|
<li class="divider"></li>
|
||||||
<li><a href="/getting-started/accepting">{% t menu.accepting %}</a></li>
|
<li><a href="/getting-started/accepting">{% t menu.accepting %}</a></li>
|
||||||
<li><a href="/getting-started/merchants">{% t menu.merchants %}</a></li>
|
<li><a href="/getting-started/merchants">{% t menu.merchants %}</a></li>
|
||||||
|
@ -42,7 +41,8 @@
|
||||||
<li><a href="/knowledge-base/people">{% t menu.people %}</a></li>
|
<li><a href="/knowledge-base/people">{% t menu.people %}</a></li>
|
||||||
<li><a href="/knowledge-base/moneropedia">{% t menu.wiki %}</a></li>
|
<li><a href="/knowledge-base/moneropedia">{% t menu.wiki %}</a></li>
|
||||||
<li class="divider"></li>
|
<li class="divider"></li>
|
||||||
<li><a href="/knowledge-base/compiling">{% t menu.compiling %}</a></li>
|
<li><a href="/knowledge-base/user-guides">{% t menu.userguides %}</a></li>
|
||||||
|
<li><a href="/knowledge-base/developer-guides">{% t menu.developerguides %}</a></li>
|
||||||
<li class="divider"></li>
|
<li class="divider"></li>
|
||||||
<li><a href="/knowledge-base/openalias">{% t menu.openalias %}</a></li>
|
<li><a href="/knowledge-base/openalias">{% t menu.openalias %}</a></li>
|
||||||
<li><a href="/knowledge-base/projects">{% t menu.projects %}</a></li>
|
<li><a href="/knowledge-base/projects">{% t menu.projects %}</a></li>
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
files:
|
|
||||||
index: index.html
|
|
||||||
vocab: vocab.html
|
|
||||||
simplewallet: use-simplewallet.html
|
|
||||||
global:
|
global:
|
||||||
date: '%Y/%m/%d'
|
date: '%Y/%m/%d'
|
||||||
monero: Monero
|
monero: Monero
|
||||||
|
@ -22,13 +18,13 @@ menu:
|
||||||
choose: How to Choose a Monero Client
|
choose: How to Choose a Monero Client
|
||||||
running: How to Run a Monero Node
|
running: How to Run a Monero Node
|
||||||
downloads: All Monero Downloads
|
downloads: All Monero Downloads
|
||||||
simplewallet: How to Use SimpleWallet
|
|
||||||
accepting: How to Accept Monero Payments
|
accepting: How to Accept Monero Payments
|
||||||
merchants: Monero Merchant Directory
|
merchants: Monero Merchant Directory
|
||||||
about: About Monero
|
about: About Monero
|
||||||
people: The People Behind Monero
|
people: The People Behind Monero
|
||||||
wiki: Moneropedia
|
wiki: Moneropedia
|
||||||
compiling: Compiling Monero
|
userguides: User Guides
|
||||||
|
developerguides: Developer Guides
|
||||||
openalias: The OpenAlias Project
|
openalias: The OpenAlias Project
|
||||||
alternative: Alternative Clients
|
alternative: Alternative Clients
|
||||||
projects: External Projects
|
projects: External Projects
|
||||||
|
@ -85,4 +81,9 @@ index:
|
||||||
all_downloads: View all downloads here
|
all_downloads: View all downloads here
|
||||||
c_download: Downloads
|
c_download: Downloads
|
||||||
monero_for: Monero for
|
monero_for: Monero for
|
||||||
latest_blockchain: Latest Blockchain
|
latest_blockchain: Latest Blockchain
|
||||||
|
blog:
|
||||||
|
title_1: All
|
||||||
|
title_2: Blog
|
||||||
|
title_3: Posts
|
||||||
|
tagged: Tagged under
|
|
@ -3,19 +3,22 @@ layout: default
|
||||||
title: All Blog Posts
|
title: All Blog Posts
|
||||||
---
|
---
|
||||||
|
|
||||||
<!-- This loops through the paginated posts -->
|
<h2>{% t blog.title_1 %} <span class="purple-kicks">{% t blog.title_2 %}</span> {% t blog.title_3 %}</h2>
|
||||||
|
|
||||||
{% for post in paginator.posts %}
|
{% for post in paginator.posts %}
|
||||||
<h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
|
<h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
|
||||||
<p class="author">
|
<blockquote>
|
||||||
<span class="date">{{ post.date }}</span>
|
|
||||||
</p>
|
|
||||||
<div class="content">
|
|
||||||
{{ post.summary }}
|
{{ post.summary }}
|
||||||
</div>
|
<small>{% t blog.tagged %}:
|
||||||
|
{% for tag in post.tags %}
|
||||||
|
[{{ tag }}]
|
||||||
|
{% endfor %}
|
||||||
|
</small>
|
||||||
|
</blockquote>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% if paginator.total_pages > 1 %}
|
{% if paginator.total_pages > 1 %}
|
||||||
<div class="pagination">
|
<div class="text-center">
|
||||||
{% if paginator.previous_page %}
|
{% if paginator.previous_page %}
|
||||||
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">« Prev</a>
|
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">« Prev</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
11
home.php
11
home.php
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
layout: root
|
layout: root
|
||||||
|
Title: Home
|
||||||
---
|
---
|
||||||
|
|
||||||
<!-- Top Boxes -->
|
<!-- Top Boxes -->
|
||||||
|
@ -18,14 +19,12 @@ layout: root
|
||||||
<!-- Icon is based on work by Icomoon (http://www.icomoon.io) and is licensed under Creative Commons BY 3.0 -->
|
<!-- Icon is based on work by Icomoon (http://www.icomoon.io) and is licensed under Creative Commons BY 3.0 -->
|
||||||
<img src="//static.monero.cc/images/icon_news.svg" class="inline-icon" style="height: 60px;"><h2>{% t index.the_latest %} <span class="announcements">{% t index.news %}</span></h2>
|
<img src="//static.monero.cc/images/icon_news.svg" class="inline-icon" style="height: 60px;"><h2>{% t index.the_latest %} <span class="announcements">{% t index.news %}</span></h2>
|
||||||
<ul>
|
<ul>
|
||||||
|
{% for post in site.posts limit:3 %}
|
||||||
<li>
|
<li>
|
||||||
<a href="https://bitcointalk.org/index.php?topic=583449.msg7708137#msg7708137">[{% t index.date_1 %} - <span class="news-title">{% t index.news_1 %}</span>]</a><br>
|
<a href="post.url">[{{ post.date | date: "%B %d" }} - <span class="news-title">{{ post.title }}</span>]</a><br>
|
||||||
{% t index.news_text_1 %}
|
{{ post.summary }}
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="https://bitcointalk.org/index.php?topic=583449.msg7542304#msg7542304">[{% t index.date_2 %} - <span class="news-title">{% t index.news_2 %}</span>]</a><br>
|
|
||||||
{% t index.news_text_2 %}
|
|
||||||
</li>
|
</li>
|
||||||
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue