Browse Source

new ghost version adjustments

pull/3/head v1.1.0
Julian Ćwirko 10 years ago
parent
commit
5a3a3bd07e
  1. 8
      README.md
  2. 26
      assets/css/style.css
  3. 7
      assets/js/vendor/imagesloaded.js
  4. 3
      assets/scss/_theme-settings.scss
  5. 8
      assets/scss/style.scss
  6. 3
      author.hbs
  7. 15
      default.hbs
  8. 3
      index.hbs
  9. 2
      package.json
  10. 4
      page.hbs
  11. 16
      partials/open-graph-twitter.hbs
  12. 3
      post.hbs
  13. 3
      tag.hbs

8
README.md

@ -28,6 +28,14 @@ Your feedback will be very appreciated. You can also send feature requests by op
Thanks! Thanks!
#### Changelog
##### 1.1.0 (25.10.2014)
- Ghost 0.5.3 ready
- custom Open Graph tags removed (in Ghost 0.5.3 you have better default ones)
- removed unused imagesloaded script
- post headers color fix
#### License #### License

26
assets/css/style.css

@ -5489,14 +5489,14 @@ h1, h2, h3, h4, h5, h6 {
font-family: "Source Sans Pro", sans-serif; font-family: "Source Sans Pro", sans-serif;
font-weight: 700; font-weight: 700;
font-style: normal; font-style: normal;
color: #222222; color: black;
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
margin-top: 0.2rem; margin-top: 0.2rem;
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
line-height: 1.4; } line-height: 1.4; }
h1 small, h2 small, h3 small, h4 small, h5 small, h6 small { h1 small, h2 small, h3 small, h4 small, h5 small, h6 small {
font-size: 60%; font-size: 60%;
color: #6f6f6f; color: #595959;
line-height: 0; } line-height: 0; }
h1 { h1 {
@ -5519,7 +5519,7 @@ h6 {
.subheader { .subheader {
line-height: 1.4; line-height: 1.4;
color: #6f6f6f; color: #595959;
font-weight: normal; font-weight: normal;
margin-top: 0.2rem; margin-top: 0.2rem;
margin-bottom: 0.5rem; } margin-bottom: 0.5rem; }
@ -5631,17 +5631,17 @@ blockquote {
blockquote cite { blockquote cite {
display: block; display: block;
font-size: 0.8125rem; font-size: 0.8125rem;
color: #555555; } color: #3b3b3b; }
blockquote cite:before { blockquote cite:before {
content: "\2014 \0020"; } content: "\2014 \0020"; }
blockquote cite a, blockquote cite a,
blockquote cite a:visited { blockquote cite a:visited {
color: #555555; } color: #3b3b3b; }
blockquote, blockquote,
blockquote p { blockquote p {
line-height: 1.7; line-height: 1.7;
color: #6f6f6f; } color: #595959; }
/* Microformats */ /* Microformats */
.vcard { .vcard {
@ -6886,7 +6886,9 @@ body {
transform: translateX(-0.3125rem); } transform: translateX(-0.3125rem); }
.rborder, .lborder, .tborder, .bborder { .rborder, .lborder, .tborder, .bborder {
background: black; } background: black;
-webkit-transform: translateZ(0);
transform: translateZ(0); }
.rborder, .lborder { .rborder, .lborder {
position: fixed; position: fixed;
@ -6930,6 +6932,8 @@ body {
top: 0; top: 0;
left: 0; left: 0;
background: rgba(0, 0, 0, 0.9); background: rgba(0, 0, 0, 0.9);
-webkit-user-select: none;
user-select: none;
/* main-menu-ovrl closing cross */ /* main-menu-ovrl closing cross */
/* Menu style */ } /* Menu style */ }
.main-menu-ovrl .main-menu-ovrl-close { .main-menu-ovrl .main-menu-ovrl-close {
@ -6943,7 +6947,9 @@ body {
color: white; color: white;
outline: none; outline: none;
z-index: 100; z-index: 100;
cursor: pointer; } cursor: pointer;
-webkit-user-select: none;
user-select: none; }
.main-menu-ovrl nav { .main-menu-ovrl nav {
text-align: center; text-align: center;
position: relative; position: relative;
@ -6957,7 +6963,9 @@ body {
margin: 0 auto; margin: 0 auto;
display: inline-block; display: inline-block;
height: 100%; height: 100%;
position: relative; } position: relative;
-webkit-user-select: none;
user-select: none; }
.main-menu-ovrl ul li { .main-menu-ovrl ul li {
display: block; display: block;
height: 20%; height: 20%;

7
assets/js/vendor/imagesloaded.js vendored

File diff suppressed because one or more lines are too long

3
assets/scss/_theme-settings.scss

@ -23,9 +23,10 @@ $primary-color: $color-main-contrast;
$row-width: rem-calc(800); $row-width: rem-calc(800);
$body-font-family: $main-font; $body-font-family: $main-font;
$header-font-family: $headers-font;
$header-font-family: $headers-font;
$header-font-weight: 700; $header-font-weight: 700;
$header-font-color: $color-main-dark;
$paragraph-font-size: 1.125rem; $paragraph-font-size: 1.125rem;
$paragraph-line-height: 1.7; $paragraph-line-height: 1.7;

8
assets/scss/style.scss

@ -493,6 +493,8 @@ body {
// document borders // document borders
.rborder, .lborder, .tborder, .bborder { .rborder, .lborder, .tborder, .bborder {
background: $color-main-dark; background: $color-main-dark;
-webkit-transform: translateZ(0);
transform: translateZ(0);
} }
.rborder, .lborder { .rborder, .lborder {
position: fixed; position: fixed;
@ -544,6 +546,8 @@ body {
top: 0; top: 0;
left: 0; left: 0;
background: rgba($color-main-dark, .9); background: rgba($color-main-dark, .9);
-webkit-user-select: none;
user-select: none;
/* main-menu-ovrl closing cross */ /* main-menu-ovrl closing cross */
.main-menu-ovrl-close { .main-menu-ovrl-close {
font-size: rem-calc(60); font-size: rem-calc(60);
@ -557,6 +561,8 @@ body {
outline: none; outline: none;
z-index: 100; z-index: 100;
cursor: pointer; cursor: pointer;
-webkit-user-select: none;
user-select: none;
} }
/* Menu style */ /* Menu style */
nav { nav {
@ -574,6 +580,8 @@ body {
display: inline-block; display: inline-block;
height: 100%; height: 100%;
position: relative; position: relative;
-webkit-user-select: none;
user-select: none;
li { li {
display: block; display: block;
height: 20%; height: 20%;

3
author.hbs

@ -3,9 +3,6 @@
{{! Everything inside the #author tags pulls data from the author }} {{! Everything inside the #author tags pulls data from the author }}
{{#author}} {{#author}}
{{! facebook and twitter meta data config partial}}
{{> open-graph-twitter}}
<nav class="main-nav"> <nav class="main-nav">
<a href="{{@blog.url}}" class="header-back-btn js-bg-check left"> <a href="{{@blog.url}}" class="header-back-btn js-bg-check left">
<i class="fa fa-chevron-left"></i> Home <i class="fa fa-chevron-left"></i> Home

15
default.hbs

@ -8,25 +8,13 @@
<title>{{meta_title}}</title> <title>{{meta_title}}</title>
<meta name="description" content="{{meta_description}}"> <meta name="description" content="{{meta_description}}">
{{! Open graph }}
<!-- Open Graph Meta Tags -->
<meta property="og:type" content="website">
<meta property="og:title" content="{{meta_title}}">
<meta property="og:description" content="{{meta_description}}">
<meta property="og:site_name" content="{{@blog.title}}">
<!-- Twitter Card Meta Tags -->
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="{{meta_title}}">
<meta name="twitter:description" content="{{meta_description}}">
{{! Open Graph and Twitter image meta tags here - different for different pages (index, post, page etc.)}}
{{{block "social_meta"}}}
<meta name="HandheldFriendly" content="True"> <meta name="HandheldFriendly" content="True">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="{{asset "favicon.ico"}}"> <link rel="shortcut icon" href="{{asset "favicon.ico"}}">
{{! Styles - Foundation 5 included}} {{! Styles - Foundation 5 included}}
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css"> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900"> <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic"> <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic">
@ -74,7 +62,6 @@
{{! The main JavaScript files }} {{! The main JavaScript files }}
<script type="text/javascript" src="{{asset "js/vendor/foundation.min.js"}}"></script> <script type="text/javascript" src="{{asset "js/vendor/foundation.min.js"}}"></script>
<script type="text/javascript" src="{{asset "js/vendor/imagesloaded.js"}}"></script>
<script type="text/javascript" src="{{asset "js/vendor/background-check.js"}}"></script> <script type="text/javascript" src="{{asset "js/vendor/background-check.js"}}"></script>
<script type="text/javascript" src="{{asset "js/vendor/nice-scroll.js"}}"></script> <script type="text/javascript" src="{{asset "js/vendor/nice-scroll.js"}}"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js"></script>

3
index.hbs

@ -1,6 +1,3 @@
{{! facebook and twitter meta data config partial}}
{{> open-graph-twitter}}
{{!< default}} {{!< default}}
{{! The tag above means - insert everything in this file into the {body} of the default.hbs template }} {{! The tag above means - insert everything in this file into the {body} of the default.hbs template }}

2
package.json

@ -1,4 +1,4 @@
{ {
"name": "Abc", "name": "Abc",
"version": "1.0.1" "version": "1.1.0"
} }

4
page.hbs

@ -3,10 +3,6 @@
{{! This is a page template. A page outputs content just like any other post, and has all the same {{! This is a page template. A page outputs content just like any other post, and has all the same
attributes by default, but you can also customise it to behave differently if you prefer. }} attributes by default, but you can also customise it to behave differently if you prefer. }}
{{#post}} {{#post}}
{{! facebook and twitter meta data config partial}}
{{> open-graph-twitter}}
<nav class="main-nav"> <nav class="main-nav">
<a href="{{@blog.url}}" class="header-back-btn js-bg-check left"> <a href="{{@blog.url}}" class="header-back-btn js-bg-check left">
<i class="fa fa-chevron-left"></i> Home <i class="fa fa-chevron-left"></i> Home

16
partials/open-graph-twitter.hbs

@ -1,16 +0,0 @@
{{#contentFor "social_meta"}}
<!-- Open Graph Meta Tags -->
<meta property="og:url" content="{{@blog.url}}{{url}}">
{{#if image}}
<meta property="og:image" content="{{@blog.url}}{{image}}">
{{else}}
<meta property="og:image" content="{{@blog.url}}{{@blog.logo}}">
{{/if}}
<!-- Twitter Card Meta Tags -->
<meta property="twitter:url" content="{{@blog.url}}{{url}}">
{{#if image}}
<meta property="twitter:image" content="{{@blog.url}}{{image}}">
{{else}}
<meta property="twitter:image" content="{{@blog.url}}{{@blog.logo}}">
{{/if}}
{{/contentFor}}

3
post.hbs

@ -6,9 +6,6 @@
{{! Everything inside the #post tags pulls data from the post }} {{! Everything inside the #post tags pulls data from the post }}
{{#post}} {{#post}}
{{! facebook and twitter meta data config partial}}
{{> open-graph-twitter}}
<nav class="main-nav"> <nav class="main-nav">
<a href="{{@blog.url}}" class="header-back-btn js-bg-check left"> <a href="{{@blog.url}}" class="header-back-btn js-bg-check left">
<i class="fa fa-chevron-left"></i> Home <i class="fa fa-chevron-left"></i> Home

3
tag.hbs

@ -1,6 +1,3 @@
{{! facebook and twitter meta data config partial}}
{{> open-graph-twitter}}
{{!< default}} {{!< default}}
{{! The tag above means - insert everything in this file into the {body} of the default.hbs template }} {{! The tag above means - insert everything in this file into the {body} of the default.hbs template }}

Loading…
Cancel
Save