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:
authorTyler Fontaine <tyler@tylerfontaine.com>2019-01-21 10:25:07 +0300
committerRory Gibson <rg.rorygibson@gmail.com>2019-01-21 10:25:07 +0300
commitea480adc1d0afab241e2a4d3008d5a1cb4900920 (patch)
treeebeccd242aeff30cfe81ed3a8098e5bc7c5b47b3
parent817e6ad1bc14c8b988dba8ed7791f71c54388cbf (diff)
Adds Ghost 2.x compatibility (#105)
* fixes post-content.hbs * fixes package.json * adds styles for koenig elements * fixes packages.json syntax * fixes styles for koenig elements * fixes minor css issue
-rw-r--r--assets/css/style.css33
-rw-r--r--package.json7
-rw-r--r--partials/post-content.hbs4
3 files changed, 39 insertions, 5 deletions
diff --git a/assets/css/style.css b/assets/css/style.css
index 5d5c2f7..c83dd83 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -622,3 +622,36 @@ table {
padding: 0 10px; } }
/*# sourceMappingURL=style.css.map */
+
+/* ============================================================ */
+/* Koenig Element Styles */
+/* ============================================================ */
+
+.kg-width-wide img {
+ max-width: 85vw;
+}
+
+.kg-width-full img {
+ max-width: 100vw;
+}
+
+.post-content.kg-gallery-container {
+ display: flex;
+ flex-direction: column;
+ margin: 1.5em auto;
+ max-width: 1040px;
+ width: 100vw;
+}
+
+.kg-gallery-row {
+ display: flex;
+ flex-direction: row;
+ justify-content: center;
+}
+
+.kg-gallery-image img {
+ display: block;
+ margin: 0;
+ width: 100%;
+ height: 100%;
+}
diff --git a/package.json b/package.json
index 5269755..6bd6eb0 100644
--- a/package.json
+++ b/package.json
@@ -1,10 +1,11 @@
{
"name": "ghostwriter",
- "version": "1.9.3",
+ "version": "1.9.4",
"author": {
"email": "rg.rorygibson+ghost@gmail.com"
},
"config": {
"posts_per_page": 5
- }
-} \ No newline at end of file
+ },
+ "keywords": ["ghost-theme"]
+}
diff --git a/partials/post-content.hbs b/partials/post-content.hbs
index 66cdc2e..078e4f9 100644
--- a/partials/post-content.hbs
+++ b/partials/post-content.hbs
@@ -2,7 +2,7 @@
<header class="post-header">
<h1 class="post-title">{{title}}</h1>
- <p class="post-date">Published <time datetime="{{published_at}}">{{date format="MMMM Do YYYY"}}</time> <strong>by {{author}}</strong></p>
+ <p class="post-date">Published <time datetime="{{published_at}}">{{date format="MMMM Do YYYY"}}</time> <strong>by {{authors}}</strong></p>
</header>
<div class="post-content clearfix">
@@ -38,4 +38,4 @@
</a>
</div>
</footer>
-</article> \ No newline at end of file
+</article>