jekyll-theme-primer 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +80 -11
- data/_layouts/default.html +1 -1
- data/assets/{style.scss → css/style.scss} +0 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3b452d47d638be3abac53846a7a047c495e28ca
|
4
|
+
data.tar.gz: d80f3109f2b4f9d7949567c80e5ef9ebd3b51a25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66ac9e53030e8344836f313ac0366f55a8dfe5cf6e1622b189cc683634affb384957ec817ee4307d7f4991bc17346187fcccf15bf593d5cd7e1cbc91f6e1829b
|
7
|
+
data.tar.gz: 5d2a8f8bdd71e7037c4c7c17a59db85dd45a99eedd6bbca3410d035734928065cfe3328ee59cfdb37233e3df0572d22defaa496ec5212947661157f4363fb750
|
data/README.md
CHANGED
@@ -1,21 +1,90 @@
|
|
1
|
-
#
|
1
|
+
# The Primer theme
|
2
2
|
|
3
|
-
|
3
|
+
[![Build Status](https://travis-ci.org/pages-themes/jekyll-theme-primer.svg?branch=master)](https://travis-ci.org/pages-themes/jekyll-theme-primer) [![Gem Version](https://badge.fury.io/rb/jekyll-theme-primer.svg)](https://badge.fury.io/rb/jekyll-theme-primer)
|
4
4
|
|
5
|
-
|
5
|
+
*Primer is a Jekyll theme for GitHub Pages. You can [preview the theme to see what it looks like](http://pages-themes.github.io/primer), or even [use it today](#usage).*
|
6
6
|
|
7
|
-
|
7
|
+
## Usage
|
8
8
|
|
9
|
-
|
10
|
-
|
9
|
+
To use the Primer theme:
|
10
|
+
|
11
|
+
1. Add the following to your site's `_config.yml`:
|
12
|
+
|
13
|
+
```yml
|
14
|
+
theme: jekyll-theme-primer
|
15
|
+
```
|
16
|
+
|
17
|
+
2. Optionally, if you'd like to preview your site on your computer, add the following to your site's `Gemfile`:
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
gem "github-pages", group: :jekyll_plugins
|
21
|
+
```
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
## Customizing
|
26
|
+
|
27
|
+
### Configuration variables
|
28
|
+
|
29
|
+
Primer will respect the following variables, if set in your site's `_config.yml`:
|
30
|
+
|
31
|
+
```yml
|
32
|
+
title: [The title of your site]
|
33
|
+
description: [A short description of your site's purpose]
|
11
34
|
```
|
12
35
|
|
13
|
-
|
36
|
+
Additionally, you may choose to set the following optional variables:
|
14
37
|
|
15
|
-
```
|
16
|
-
|
38
|
+
```yml
|
39
|
+
show_downloads: ["true" or "false" to indicate whether to provide a download URL]
|
40
|
+
google_analytics: [Your Google Analytics tracking ID]
|
17
41
|
```
|
18
42
|
|
19
|
-
|
43
|
+
### Stylesheet
|
44
|
+
|
45
|
+
If you'd like to add your own custom styles:
|
46
|
+
|
47
|
+
1. Create a file called `/assets/css/style.css` in your site
|
48
|
+
2. Add the following content to the top of the file, exactly as shown:
|
49
|
+
```scss
|
50
|
+
---
|
51
|
+
---
|
52
|
+
|
53
|
+
@import "{{ site.theme }}";
|
54
|
+
```
|
55
|
+
3. Add any custom CSS (or Sass, including imports) you'd like immediately after the `@import` line
|
56
|
+
|
57
|
+
### Layouts
|
58
|
+
|
59
|
+
If you'd like to change the theme's HTML layout:
|
60
|
+
|
61
|
+
1. [Copy the original template](https://github.com/pages-themes/primer/blob/master/_layouts/default.html) from the theme's repository<br />(*Pro-tip: click "raw" to make copying easier*)
|
62
|
+
2. Create a file called `/_layouts/default.html` in your site
|
63
|
+
3. Paste the default layout content copied in the first step
|
64
|
+
4. Customize the layout as you'd like
|
65
|
+
|
66
|
+
## Roadmap
|
67
|
+
|
68
|
+
See the [open issues](https://github.com/pagse-themes/primer/issues) for a list of proposed features (and known issues).
|
69
|
+
|
70
|
+
## Project philosophy
|
71
|
+
|
72
|
+
The Primer theme is intended to make it quick and easy for GitHub Pages users to create their first (or 100th) website. The theme should meet the vast majority of users' needs out of the box, erring on the side of simplicity rather than flexibility, and provide users the opportunity to opt-in to additional complexity if they have specific needs or wish to further customize their experience (such as adding custom CSS or modifying the default layout). It should also look great, but that goes without saying.
|
73
|
+
|
74
|
+
## Contributing
|
75
|
+
|
76
|
+
Interested in contributing to Primer? We'd love your help. Primer is an open source project, built one contribution at a time by users like you. See [the CONTRIBUTING file](CONTRIBUTING.md) for instructions on how to contribute.
|
77
|
+
|
78
|
+
### Previewing the theme locally
|
79
|
+
|
80
|
+
If you'd like to preview the theme locally (for example, in the process of proposing a change):
|
81
|
+
|
82
|
+
1. Clone down the theme's repository (`git clone https://github.com/pages-themes/primer`)
|
83
|
+
2. `cd` into the theme's directory
|
84
|
+
3. Run `script/bootstrap` to install the necessary dependencies
|
85
|
+
4. Run `bundle exec jekyll serve` to start the preview server
|
86
|
+
5. Visit [`localhost:4000`](http://localhost:4000) in your browser to preview the theme
|
87
|
+
|
88
|
+
### Running tests
|
20
89
|
|
21
|
-
|
90
|
+
The theme contains a minimal test suite, to ensure a site with the theme would build successfully. To run the tests, simply run `script/cibuild`. You'll need to run `script/bootstrap` one before the test script will work.
|
data/_layouts/default.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<meta charset="UTF-8">
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
6
6
|
<title>{{ page.title | default: site.title }}</title>
|
7
|
-
<link href="{{ "assets/style.css" | absolute_url }}" rel="stylesheet">
|
7
|
+
<link href="{{ "assets/css/style.css" | absolute_url }}" rel="stylesheet">
|
8
8
|
</head>
|
9
9
|
<body>
|
10
10
|
<div class="container">
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-primer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- GitHub, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -110,10 +110,10 @@ files:
|
|
110
110
|
- _sass/primer-utilities/lib/typography.scss
|
111
111
|
- _sass/primer-utilities/package.json
|
112
112
|
- _sass/rouge.scss
|
113
|
-
- assets/style.scss
|
113
|
+
- assets/css/style.scss
|
114
114
|
homepage: https://github.com/benbalter/jekyll-theme-primer
|
115
115
|
licenses:
|
116
|
-
-
|
116
|
+
- None
|
117
117
|
metadata: {}
|
118
118
|
post_install_message:
|
119
119
|
rdoc_options: []
|
@@ -134,5 +134,5 @@ rubyforge_project:
|
|
134
134
|
rubygems_version: 2.5.2
|
135
135
|
signing_key:
|
136
136
|
specification_version: 4
|
137
|
-
summary:
|
137
|
+
summary: Primer is a Jekyll theme for GitHub Pages based on GitHub's Primer styles
|
138
138
|
test_files: []
|