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-01-22 00:00:13 +0400
committerRory Gibson <rg.rorygibson@gmail.com>2014-01-22 00:00:13 +0400
commit97964fcae204242c7d7d122e0a2eaa8846207bdc (patch)
tree673ab846920a45fa9a45f07fd6221f9518b3c0a1
parentb92534aed8eaa744408c4f2de576719bdcb4805e (diff)
Added support for featured posts
-rw-r--r--assets/css/style.css15
-rw-r--r--assets/sass/.sass-cache/4c0f184ddf523d9e41705de4a1576d5b51e21674/style.scsscbin38489 -> 39864 bytes
-rw-r--r--assets/sass/style.scss15
-rw-r--r--changelog.txt4
-rw-r--r--index.hbs6
5 files changed, 37 insertions, 3 deletions
diff --git a/assets/css/style.css b/assets/css/style.css
index 6a73f67..81fe76f 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -252,7 +252,8 @@ pre {
.post-stub {
border-bottom: 1px dotted #303030;
- margin: 0; }
+ margin: 0;
+ position: relative; }
.post-stub:first-child {
padding-top: 0; }
.post-stub a {
@@ -266,6 +267,18 @@ pre {
background: #FCF5F5;
color: #f03838;
padding: 20px 12px; }
+ .post-stub a:hover .post-stub-tag {
+ background: #f03838; }
+
+.post-stub-tag {
+ background: #303030;
+ border-radius: 3px;
+ color: #FFF;
+ float: right;
+ font-size: 10px;
+ margin: 7px 0 0;
+ padding: 0 5px;
+ text-transform: uppercase; }
.post-stub-title {
display: inline-block;
diff --git a/assets/sass/.sass-cache/4c0f184ddf523d9e41705de4a1576d5b51e21674/style.scssc b/assets/sass/.sass-cache/4c0f184ddf523d9e41705de4a1576d5b51e21674/style.scssc
index 83660db..3340385 100644
--- a/assets/sass/.sass-cache/4c0f184ddf523d9e41705de4a1576d5b51e21674/style.scssc
+++ b/assets/sass/.sass-cache/4c0f184ddf523d9e41705de4a1576d5b51e21674/style.scssc
Binary files differ
diff --git a/assets/sass/style.scss b/assets/sass/style.scss
index 9daad3e..5449b35 100644
--- a/assets/sass/style.scss
+++ b/assets/sass/style.scss
@@ -68,7 +68,6 @@ blockquote {
margin: 0;
width: 100%;
}
-
}
img {
@@ -287,6 +286,7 @@ pre {
.post-stub {
border-bottom: 1px dotted $secondary;
margin: 0;
+ position: relative;
&:first-child { padding-top: 0; }
@@ -302,10 +302,23 @@ pre {
background: #FCF5F5;
color: $primary;
padding: 20px 12px;
+
+ .post-stub-tag { background: $primary; }
}
}
}
+.post-stub-tag {
+ background: $secondary;
+ border-radius: 3px;
+ color: #FFF;
+ float: right;
+ font-size: 10px;
+ margin: 7px 0 0;
+ padding: 0 5px;
+ text-transform: uppercase;
+}
+
.post-stub-title {
display: inline-block;
margin: 0;
diff --git a/changelog.txt b/changelog.txt
index 1b10d44..d2d2b41 100644
--- a/changelog.txt
+++ b/changelog.txt
@@ -4,6 +4,7 @@ Ghostwriter Version 1.4.0
- Added a simple navigation menu
- Added font awesome for icons
+- Added support for featured posts
- Removed image icons
- Replaced the browse posts button with a Browse Posts text link in
the new navigation menu. This should make finding the posts list
@@ -11,6 +12,9 @@ Ghostwriter Version 1.4.0
- Tidied up nested lists
- Set up assets to load with the new asset helper
+fitvid.js
+add support for tables
+
------------------------------
Ghostwriter Version 1.3.0
------------------------------
diff --git a/index.hbs b/index.hbs
index f2c47d9..53a1da4 100644
--- a/index.hbs
+++ b/index.hbs
@@ -25,11 +25,15 @@
<div id="post-index" class="container">
<ol class="post-list">
{{#foreach posts}}
- <li class="post-stub">
+ <li class="post-stub {{post_class}}" >
<a class="js-ajax-link" title="{{title}}" href="{{url}}">
<h4 class="post-stub-title">{{title}}</h4>
<time class="post-stub-date" datetime="{{published_at}}">Published {{date format="MMMM Do YYYY"}}</time>
+
+ {{#if featured}}
+ <span class="post-stub-tag">Featured</span>
+ {{/if}}
</a>
</li>
{{/foreach}}