Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roryg/ghostwriter.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRory Gibson <rg.rorygibson@gmail.com>2014-11-19 13:56:30 +0300
committerRory Gibson <rg.rorygibson@gmail.com>2014-11-19 13:56:30 +0300
commitd4ce8ed12ff6f6e61bb5ecacb498a9c1c830face (patch)
treed31d42b30c24a72f6c8bb1e64f92a0e62fed4d50
parent6456699439f7fc34dbf336ab31ecd98a33054e4b (diff)
parent2b7877d5d4b6bd0a45eb1bbba7672bac1446d67c (diff)
Merge pull request #65 from roryg/issue-59
Fixed multi line code block indention
-rw-r--r--changelog.txt6
-rw-r--r--index.hbs3
-rw-r--r--package.json2
-rw-r--r--page.hbs4
-rw-r--r--post.hbs3
5 files changed, 14 insertions, 4 deletions
diff --git a/changelog.txt b/changelog.txt
index 6d282c4..e4b80a6 100644
--- a/changelog.txt
+++ b/changelog.txt
@@ -1,4 +1,10 @@
------------------------------
+Ghostwriter Version 1.8.2
+------------------------------
+
+- Fixed multiline code block indention
+
+------------------------------
Ghostwriter Version 1.8.1
------------------------------
diff --git a/index.hbs b/index.hbs
index 8daaab1..51ac862 100644
--- a/index.hbs
+++ b/index.hbs
@@ -3,7 +3,8 @@
<div id="latest-post" class="container">
{{#foreach posts}}
{{#if @first}}
- {{> post-content}}
+{{! No indention to prevent handlebars indenting <pre> tag content}}
+{{> post-content}}
{{/if}}
{{/foreach}}
</div>
diff --git a/package.json b/package.json
index 8453327..7d191f7 100644
--- a/package.json
+++ b/package.json
@@ -1,4 +1,4 @@
{
"name": "Ghostwriter",
- "version": "1.8.1"
+ "version": "1.8.2"
} \ No newline at end of file
diff --git a/page.hbs b/page.hbs
index 5f694b7..7c30ba8 100644
--- a/page.hbs
+++ b/page.hbs
@@ -13,7 +13,9 @@
{{#if image}}
<img class="post-featured-image" src="{{image}}">
{{/if}}
- {{{content}}}
+
+{{! No indention to prevent handlebars indenting <pre> tag content}}
+{{{content}}}
{{#if tags}}
<p class="post-tags"><span>Tagged:</span> {{tags}}</p>
diff --git a/post.hbs b/post.hbs
index 4331107..b31b8c3 100644
--- a/post.hbs
+++ b/post.hbs
@@ -2,6 +2,7 @@
<div class="container">
{{#post}}
- {{> post-content}}
+{{! No indention to prevent handlebars indenting <pre> tag content}}
+{{> post-content}}
{{/post}}
</div> \ No newline at end of file