Skip to content

Commit d89825a

Browse files
committed
🚀 Release 1.1.0.
1 parent 9eff1ab commit d89825a

File tree

12 files changed

+401
-12
lines changed

12 files changed

+401
-12
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,19 @@ version released to date for the Jekyll Heroku Starter Kit.
77

88
- [#new](#new)
99
- Added security headers for the Ruby Static Buildpack [^note-id]
10+
- Added a number of new gems to the `Gemfile`:
11+
- `memcachier 0.0.2`
12+
- `rack-cache`
13+
- `dalli`
14+
- `kgio`
15+
- Configured and added the settings for `@jekyll-seo-tag` to `_config.yml`
16+
- Configured and added the settings for `@jekyll-seo-tag` to `index.md`
17+
- Configured and added the settings for `@jekyll-sitemap` to `index.md`
18+
- Defined collections for use in `_config.yml`
1019
- [#enhancement](#enhancement)
1120
- Updated `README.md` and `index.md`.
1221
- Various enhancements with `static.json` edits.
22+
- Major enhancement to the `Procfile`.
1323

1424
## Version 1.0.1 (26/05/2018)
1525

Gemfile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ gem 'bundler', '1.16.1'
44
gem 'jekyll'
55
gem 'rack-jekyll'
66
gem 'rake'
7-
gem 'rack-cache'
8-
gem 'dalli'
9-
gem 'kgio'
10-
gem "memcachier"
117
gem 'jekyll-theme-minimal'
128
group :jekyll_plugins do
139
gem 'jekyll-feed'

_config.yml

Lines changed: 55 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,25 @@ title: Jekyll Heroku Starter Kit
33
description: Minimum boilerplate code for setting up and running a Jekyll site on Heroku.
44
timezone: Africa/Johannesburg
55
locale: en_ZA
6-
# url:
7-
# baseurl:
6+
## Set the url to your site below ##
7+
url:
8+
baseurl:
9+
## Enabling Collections for the Site. ##
10+
collections:
11+
posts:
12+
title : Posts
13+
output : true # Set this to false to prevent from appearing on site.
14+
permalink : /:categories/:title.html
15+
pages:
16+
title : Pages
17+
output : true
18+
permalink : /:categories/:title.html
19+
## Theme settings ##
20+
theme: jekyll-theme-minimal
821
logo: https://via.placeholder.com/250x100.png/E8117F/fff?text=Logo+Placeholder
922
show_downloads: true
1023
google_analytics: UA-100937492-4
11-
theme: jekyll-theme-minimal
24+
## Exclude files from the build ##
1225
exclude:
1326
- '_site'
1427
- '.bundle'
@@ -29,6 +42,7 @@ exclude:
2942
- 'README.md'
3043
- 'starter-kit.code-workspace'
3144
- 'static.json'
45+
## Configure and setup plugins for the site. ##
3246
plugins:
3347
- jekyll-feed
3448
- jekyll-seo-tag
@@ -37,4 +51,42 @@ plugins:
3751
- jekyll-include-cache
3852
- jekyll-last-modified-at
3953
- jekyll-redirect-from
54+
## All the Settings for the @jekyll-seo-tag ##
55+
# Your twitter details
56+
twitter:
57+
username: justinhartman
58+
card: summary
59+
# Facebook App ID. You need to create an app at:
60+
# https://developers.facebook.com/apps
61+
facebook:
62+
app_id: 1234
63+
publisher: 1234
64+
admins: 1234
65+
# URL to a site-wide logo. Need this field for publisher meta-tag.
66+
logo: /assets/your-company-logo.png
67+
# Links to other social profiles or websites that relate to you.
68+
social:
69+
name: Justin Hartman
70+
links:
71+
- https://twitter.com/justinhartman
72+
- https://www.facebook.com/justin.hartman.me
73+
- https://www.linkedin.com/in/justinhartman
74+
- https://plus.google.com/+iamjustinhartman
75+
- https://github.com/justinhartman
76+
# When you verify with either of the Webmaster Tools below, enter the
77+
# verification key below.
78+
webmaster_verifications:
79+
google: 1234
80+
bing: 1234
81+
alexa: 1234
82+
yandex: 1234
83+
baidu: 1234
84+
# Setting a default image:
85+
# Settings to provide a default Twitter Card or OGP image to all of your
86+
# posts and pages.
87+
defaults:
88+
- scope:
89+
path: ""
90+
values:
91+
image: /assets/default-card.png # change this to a Generic image.
4092
---

_data/authors.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
justinhartman:
2+
picture: /assets/justinhartman.png
3+
twitter: justinhartman
4+
5+
anotherauthor:
6+
picture:
7+
twitter:

_layouts/blank.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{{ content | strip_html }}

_layouts/default.html

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<!DOCTYPE html>
2+
<html lang="{{ site.lang | default: "en-US" }}">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
8+
{% seo %}
9+
<!-- Adding Feed Metadata from @jekyll-feed -->
10+
{% feed_meta %}
11+
<link rel="stylesheet" href="{{ "/assets/css/style.css?v=" | append: site.github.build_revision | relative_url }}">
12+
<!--[if lt IE 9]>
13+
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
14+
<![endif]-->
15+
</head>
16+
<body>
17+
<div class="wrapper">
18+
<header>
19+
<h1><a href="{{ "/" | absolute_url }}">{{ site.title | default: site.github.repository_name }}</a></h1>
20+
21+
{% if site.logo %}
22+
<img src="{{site.logo | relative_url}}" alt="Logo" />
23+
{% endif %}
24+
25+
<p>{{ site.description | default: site.github.project_tagline }}</p>
26+
27+
{% if site.github.is_project_page %}
28+
<p class="view"><a href="{{ site.github.repository_url }}">View the Project on GitHub <small>{{ site.github.repository_nwo }}</small></a></p>
29+
{% endif %}
30+
31+
{% if site.github.is_user_page %}
32+
<p class="view"><a href="{{ site.github.owner_url }}">View My GitHub Profile</a></p>
33+
{% endif %}
34+
35+
{% if site.show_downloads %}
36+
<ul>
37+
<li><a href="{{ site.github.zip_url }}">Download <strong>ZIP File</strong></a></li>
38+
<li><a href="{{ site.github.tar_url }}">Download <strong>TAR Ball</strong></a></li>
39+
<li><a href="{{ site.github.repository_url }}">View On <strong>GitHub</strong></a></li>
40+
</ul>
41+
{% endif %}
42+
</header>
43+
<section>
44+
45+
{{ content }}
46+
47+
</section>
48+
<footer>
49+
{% if site.github.is_project_page %}
50+
<p>This project is maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a></p>
51+
{% endif %}
52+
<p><small>Hosted on GitHub Pages &mdash; Theme by <a href="https://github.com/orderedlist">orderedlist</a></small></p>
53+
</footer>
54+
</div>
55+
<script src="{{ "/assets/js/scale.fix.js" | relative_url }}"></script>
56+
{% if site.google_analytics %}
57+
<script>
58+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
59+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
60+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
61+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
62+
ga('create', '{{ site.google_analytics }}', 'auto');
63+
ga('send', 'pageview');
64+
</script>
65+
{% endif %}
66+
</body>
67+
</html>

config/database.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<%
2+
3+
require 'cgi'
4+
require 'uri'
5+
6+
begin
7+
uri = URI.parse(ENV["DATABASE_URL"])
8+
rescue URI::InvalidURIError
9+
raise "Invalid DATABASE_URL"
10+
end
11+
12+
raise "No RACK_ENV or RAILS_ENV found" unless ENV["RAILS_ENV"] || ENV["RACK_ENV"]
13+
14+
def attribute(name, value, force_string = false)
15+
if value
16+
value_string =
17+
if force_string
18+
'"' + value + '"'
19+
else
20+
value
21+
end
22+
"#{name}: #{value_string}"
23+
else
24+
""
25+
end
26+
end
27+
28+
adapter = uri.scheme
29+
adapter = "postgresql" if adapter == "postgres"
30+
31+
database = (uri.path || "").split("/")[1]
32+
33+
username = uri.user
34+
password = uri.password
35+
36+
host = uri.host
37+
port = uri.port
38+
39+
params = CGI.parse(uri.query || "")
40+
41+
%>
42+
43+
<%= ENV["RAILS_ENV"] || ENV["RACK_ENV"] %>:
44+
<%= attribute "adapter", adapter %>
45+
<%= attribute "database", database %>
46+
<%= attribute "username", username %>
47+
<%= attribute "password", password, true %>
48+
<%= attribute "host", host %>
49+
<%= attribute "port", port %>
50+
51+
<% params.each do |key, value| %>
52+
<%= key %>: <%= value.first %>
53+
<% end %>

feed.xml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
layout: blank
3+
permalink: /feed.xml
4+
sitemap:
5+
changefreq: weekly
6+
priority: 1.0
7+
---
8+
<?xml version="1.0" encoding="utf-8"?>
9+
<?xml-stylesheet type="text/xml" href="{{ '/feed.xslt.xml' | absolute_url }}"?>
10+
<feed xmlns="http://www.w3.org/2005/Atom" >
11+
<link href="{{ '/feed.xml' | absolute_url }}" rel="self" type="application/atom+xml" />
12+
<link href="{{ site.url | absolute_url }}" rel="alternate" type="text/html" />
13+
<title type="html">{{ site.title }}</title>
14+
<subtitle>{{ site.description }}</subtitle>
15+
<updated>{{ site.time | date_to_xmlschema }}</updated>
16+
<id>{{ site.url | absolute_url }}</id>
17+
<author>
18+
<name>{{ site.author.name }}</name>
19+
<email>{{ site.author.email }}</email>
20+
<uri>{{ site.author.uri }}</uri>
21+
</author>
22+
{%- for collection in site.collections -%}
23+
{%- for post in collection.docs -%}
24+
{% unless collection.output == false or collection.label == "pages" %}
25+
<entry>
26+
<title type="html">{{ post.title }}</title>
27+
<link href="{{ post.url | absolute_url }}" rel="alternate" type="text/html" title="{{ post.title }}" />
28+
<published>{{ post.date | date_to_xmlschema }}</published>
29+
<updated>{{ post.last_modified_at | date_to_xmlschema }}</updated>
30+
<id>{{ post.url | absolute_url }}</id>
31+
<content type="html" xml:base="{{ post.url | absolute_url }}">{{ post.excerpt | xml_escape | strip_newlines }}</content>
32+
</entry>
33+
{%- endunless -%}
34+
{%- endfor -%}
35+
{% endfor %}
36+
</feed>

feed.xslt.xml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
layout: atom
3+
permalink: /feed.xslt.xml
4+
last_modified_at: 2018-04-19 23:48:22 +02:00
5+
sitemap:
6+
changefreq: yearly
7+
priority: 0.1
8+
---
9+
<?xml version="1.0" encoding="utf-8"?>
10+
<xsl:transform version="1.0" xmlns:a="http://www.w3.org/2005/Atom" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
11+
<xsl:strip-space elements="*"/>
12+
<xsl:output method="text"/>
13+
<xsl:template match="*"/>
14+
<xsl:template match="a:feed">
15+
<xsl:text>Atom Feed: </xsl:text>
16+
<xsl:value-of select="a:id"/>
17+
<xsl:text>&#10;</xsl:text>
18+
<xsl:apply-templates/>
19+
</xsl:template>
20+
<xsl:template match="a:entry">
21+
<xsl:text> /** -------------- Feed Entry --------------- **/</xsl:text>
22+
<xsl:text> URL: </xsl:text>
23+
<xsl:value-of select="a:id"/>
24+
<xsl:text>&#10;</xsl:text>
25+
<xsl:apply-templates/>
26+
</xsl:template>
27+
<xsl:template match="a:title">
28+
<xsl:if test="parent::a:entry">
29+
<xsl:value-of select="' '"/>
30+
</xsl:if>
31+
<xsl:value-of select="local-name()"/>: <xsl:apply-templates/>
32+
<xsl:text>&#10;</xsl:text>
33+
</xsl:template>
34+
<xsl:template match="a:published|a:updated">
35+
<xsl:if test="parent::a:entry">
36+
<xsl:value-of select="' '"/>
37+
</xsl:if>
38+
<xsl:value-of select="local-name()"/>: <xsl:apply-templates/>
39+
<xsl:text>&#10;</xsl:text>
40+
</xsl:template>
41+
</xsl:transform>

index.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
---
2-
title: Jekyll Heroku Starter Kit
32
layout: default
4-
seo:
5-
title: ""
6-
description: ""
7-
keywords: "Hello World"
3+
# Settings for @jekyll-seo-tag
4+
title: Jekyll Heroku Starter Kit
5+
description: "This project will setup a minimum boilerplate template for running a Jekyll site on Heroku."
6+
image: /assets/post-pic.jpg
7+
author: justinhartman
8+
lang: en_ZA
9+
# Settings for @jekyll-sitemap
10+
sitemap:
11+
changefreq: weekly
12+
priority: 1.0
13+
# Set categories for the site and URL structure
14+
categories:
15+
- blog
816
---
917
## Features
1018

0 commit comments

Comments
 (0)