From 4ec19024d05b19bf36d9dfe671eea8d6e665cfb1 Mon Sep 17 00:00:00 2001 From: Riccardo Spagni Date: Sun, 15 Feb 2015 12:30:34 +0200 Subject: [PATCH] fixed page title, formatted paginated blog posts page --- _includes/head.html | 8 +++++++- _includes/header.html | 4 ++-- _strings_en.yml | 15 ++++++++------- blog/index.html | 19 +++++++++++-------- home.php | 11 +++++------ 5 files changed, 33 insertions(+), 24 deletions(-) diff --git a/_includes/head.html b/_includes/head.html index 88aad444..6d2afab4 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -3,7 +3,13 @@ - {% t index.page_title %} + +{% if page.title %} +{{ page.title }} | {% t index.page_title %} +{% else %} +{% t index.page_title %} +{% endif %} + diff --git a/_includes/header.html b/_includes/header.html index 859ab792..75e3d80a 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -29,7 +29,6 @@
  • {% t menu.running %}
  • {% t menu.downloads %}
  • -
  • {% t menu.simplewallet %}
  • {% t menu.accepting %}
  • {% t menu.merchants %}
  • @@ -42,7 +41,8 @@
  • {% t menu.people %}
  • {% t menu.wiki %}
  • -
  • {% t menu.compiling %}
  • +
  • {% t menu.userguides %}
  • +
  • {% t menu.developerguides %}
  • {% t menu.openalias %}
  • {% t menu.projects %}
  • diff --git a/_strings_en.yml b/_strings_en.yml index 7d57dcf3..21cf9b40 100644 --- a/_strings_en.yml +++ b/_strings_en.yml @@ -1,7 +1,3 @@ -files: - index: index.html - vocab: vocab.html - simplewallet: use-simplewallet.html global: date: '%Y/%m/%d' monero: Monero @@ -22,13 +18,13 @@ menu: choose: How to Choose a Monero Client running: How to Run a Monero Node downloads: All Monero Downloads - simplewallet: How to Use SimpleWallet accepting: How to Accept Monero Payments merchants: Monero Merchant Directory about: About Monero people: The People Behind Monero wiki: Moneropedia - compiling: Compiling Monero + userguides: User Guides + developerguides: Developer Guides openalias: The OpenAlias Project alternative: Alternative Clients projects: External Projects @@ -85,4 +81,9 @@ index: all_downloads: View all downloads here c_download: Downloads monero_for: Monero for - latest_blockchain: Latest Blockchain \ No newline at end of file + latest_blockchain: Latest Blockchain +blog: + title_1: All + title_2: Blog + title_3: Posts + tagged: Tagged under \ No newline at end of file diff --git a/blog/index.html b/blog/index.html index b7eb7a98..2f1540e0 100644 --- a/blog/index.html +++ b/blog/index.html @@ -3,19 +3,22 @@ layout: default title: All Blog Posts --- - +

    {% t blog.title_1 %} {% t blog.title_2 %} {% t blog.title_3 %}

    + {% for post in paginator.posts %} -

    {{ post.title }}

    -

    - {{ post.date }} -

    -
    +

    {{ post.title }}

    +
    {{ post.summary }} -
    + {% t blog.tagged %}: + {% for tag in post.tags %} + [{{ tag }}] + {% endfor %} + + {% endfor %} {% if paginator.total_pages > 1 %} -