Skip to content

Commit a3f96ca

Browse files
Merge pull request #285 from jekyll/release
Release v0.3.0
2 parents 3f26e98 + fee9166 commit a3f96ca

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

lib/jekyll-admin/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module JekyllAdmin
2-
VERSION = "0.2.0".freeze
2+
VERSION = "0.3.0".freeze
33
end

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jekyll-admin",
3-
"version": "0.2.0",
3+
"version": "0.3.0",
44
"description": "Admin Panel for Jekyll",
55
"private": true,
66
"scripts": {

src/constants/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
export const VERSION = 'v0.3.0';
12
export const ADMIN_PREFIX = '/admin';

src/containers/Header.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { connect } from 'react-redux';
33
import { bindActionCreators } from 'redux';
44
import { Link } from 'react-router';
55
import { fetchConfig } from '../actions/config';
6+
import { VERSION } from '../constants';
67

78
export class Header extends Component {
89

@@ -17,9 +18,11 @@ export class Header extends Component {
1718
<div className="header">
1819
<h3 className="title">
1920
<Link target="_blank" to={`/`}>
20-
<i className="fa fa-home"></i> <span>{config.title || 'You have no title!'}</span>
21+
<i className="fa fa-home"></i>
22+
<span>{config.title || 'You have no title!'}</span>
2123
</Link>
2224
</h3>
25+
<span className="version">{VERSION}</span>
2326
</div>
2427
);
2528
}

src/styles/header.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
.header {
22
display: flex;
33
align-items: center;
4+
justify-content: space-between;
45
height: 75px;
56
background-color: white;
7+
padding: 0 40px;
68
@include box-shadow(0 2px 4px 0 rgba(204, 204, 204, 0.4));
79
.title {
810
font-weight: normal;
9-
margin: 0 0 0 40px;
1011
a {
1112
color: #444444;
1213
&:hover {
1314
color: black;
1415
}
1516
}
1617
}
18+
.version {
19+
color: $inactive-gray;
20+
}
1721
}

0 commit comments

Comments
 (0)