Skip to content

Commit

Permalink
Merge branch 'release/1.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviocopes committed Jul 14, 2016
2 parents 722cb52 + d955964 commit 4205148
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 12 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# v1.3.0
## 07/14/2016

1. [](#improved)
* Remove unneeded streams from Theme YAML
1. [](#bugfix)
* Fix setting the page language in the html tag
* Fixed pagination
* Updated the logo link url

# v1.2.0
## 09/04/2015

Expand Down
2 changes: 1 addition & 1 deletion blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Notepad
version: 1.2.0
version: 1.3.0
description: "Notepad theme by HOSSAIN MOHD FAYSAL ported to **Grav**"
icon: pencil-square
author:
Expand Down
7 changes: 0 additions & 7 deletions notepad.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
enabled: true

streams:
scheme:
theme:
type: ReadOnlyStream
paths:
- user/themes/notepad
4 changes: 2 additions & 2 deletions templates/partials/base.html.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="{{ grav.language.getLanguage ?: 'en' }}">
<head>
<meta charset="utf-8">
<!-- (1) Optimize for mobile versions: http://goo.gl/EOpFl -->
Expand Down Expand Up @@ -54,7 +54,7 @@
{% block header %}
<header class="summer-site-head">
<div class="summer-site-head-menu">
<a class="summer-blog-logo" href="{{ base_url_absolute }}"><img src="{{ base_url_relative }}{{ site.logo }}" alt="Blog Logo" /></a>
<a class="summer-blog-logo" href="{{ base_url == '' ? '/' : base_url }}"><img src="{{ base_url_relative }}{{ site.logo }}" alt="Blog Logo" /></a>
{% include 'partials/navigation.html.twig' %}
<div class="clearfix"></div>
</div>
Expand Down
9 changes: 7 additions & 2 deletions templates/partials/pagination.html.twig
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
{% if base_url == '' %}
{% set base_url = '/' %}
{% endif %}
<nav class="pagination" role="navigation">
{% if pagination.hasNext %}
<a class="older-posts" href="{{ base_url }}{{ pagination.params }}{{ pagination.nextUrl }}">&larr; Older posts</a>
{% set url = (base_url ~ pagination.params ~ pagination.nextUrl)|replace({'//':'/'}) %}
<a class="older-posts" href="{{ url }}">&larr; Older posts</a>
{% endif %}
<span class="page-number">Page {{ uri.currentPage }} of {{ pagination|length }}</span>
{% if pagination.hasPrev %}
<a class="newer-posts" href="{{ base_url }}{{ pagination.params }}{{ pagination.prevUrl }}">Newer posts &rarr;</a>
{% set url = (base_url ~ pagination.params ~ pagination.prevUrl)|replace({'//':'/'}) %}
<a class="newer-posts" href="{{ url }}">Newer posts &rarr;</a>
{% endif %}
</nav>

0 comments on commit 4205148

Please sign in to comment.