-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add pixyll.gemspec * Move pixyll.scss to assets/css/main.scss * Move index.html to _layouts/home.html * Move favicons to assets/img * Move contact.html to _layouts/contact.html Co-authored-by: Aaron S. Hawley <[email protected]>
- Loading branch information
1 parent
ae260b5
commit 9c81b4b
Showing
30 changed files
with
213 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ _site | |
_config.gh-pages.yml | ||
|
||
Gemfile.lock | ||
*.gem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
source 'https://rubygems.org' | ||
|
||
# A simple Ruby Gem to bootstrap dependencies for setting up and | ||
# maintaining a local Jekyll environment in sync with GitHub Pages | ||
# https://github.com/github/pages-gem | ||
gemspec | ||
gem 'github-pages' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,12 +18,29 @@ This Jekyll theme was crafted with <3 by [John Otander](http://johnotander.com) | |
If you're completely new to Jekyll, I recommend checking out the documentation at <http://jekyllrb.com> or there's a tutorial by [Smashing Magazine](http://www.smashingmagazine.com/2014/08/01/build-blog-jekyll-github-pages/). | ||
|
||
``` | ||
$ git clone [email protected]:johnotander/pixyll.git | ||
$ git clone -o upstream [email protected]:johnotander/pixyll.git | ||
$ cd pixyll | ||
$ gem install bundler # If you don't have bundler installed | ||
$ bundle install | ||
``` | ||
|
||
Alternatively, if want to install the theme as a Gem, you can add this | ||
line to your Gemfile: | ||
|
||
```ruby | ||
gem "pixyll" | ||
``` | ||
|
||
Then, add this line to your Jekyll site: | ||
|
||
```yaml | ||
theme: pixyll | ||
``` | ||
And then execute: | ||
$ bundle install | ||
#### Verify your Jekyll version | ||
It's important to also check your version of Jekyll since this project uses new `baseurl` features that are [only supported in 3.3+](https://jekyllrb.com/news/2016/10/06/jekyll-3-3-is-here/). | ||
|
@@ -32,6 +49,13 @@ It's important to also check your version of Jekyll since this project uses new | |
|
||
Fork the repo, and then clone it so you've got the code locally. | ||
|
||
If `git remote -v` doesn't have your fork listed, you can do the following to add it: | ||
|
||
``` | ||
git remote add origin [email protected]:USER/pixyll.git | ||
``` | ||
|
||
Where `USER` above is your GitHub user name. | ||
|
||
### Modify the `_config.yml` | ||
|
||
|
@@ -67,6 +91,21 @@ Now you can navigate to `localhost:4000` in your browser to see the site. | |
You can host your Jekyll site for free with Github Pages. [Click here](https://pages.github.com/) for more information. | ||
If you are using the gem (see above), then you need to add the the | ||
github-pages gem to your Gemfile: | ||
```ruby | ||
gem 'github-pages' | ||
``` | ||
|
||
Alternatively, you can enable Pixyll on Githug Pages using the `remote_theme` feature, by adding this line to your `_config.yml`: | ||
|
||
```yml | ||
remote_theme: johno/pixyll | ||
``` | ||
See [Adding a Jekyll theme to your GitHub pages](https://help.github.com/articles/adding-a-jekyll-theme-to-your-github-pages-site). | ||
#### A configuration tweak if you're using a gh-pages sub-folder | ||
In addition to your github-username.github.io repo that maps to the root url, you can serve up sites by using a gh-pages branch for other repos so they're available at github-username.github.io/repo-name. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,3 +129,5 @@ exclude: | |
- README.md | ||
- screenshot.png | ||
- vendor | ||
- pixyll.gemspec | ||
- '*.gem' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
layout: page | ||
--- | ||
|
||
<div class="py2"> | ||
{% if site.ajaxify_contact_form %} | ||
<form class="form-stacked"> | ||
<label> | ||
<input type="text" name="email" class="field-light" placeholder="{{ site.text.contact.email | default: "Email Address" }}"> | ||
</label> | ||
|
||
<label> | ||
Content | ||
<textarea type="text" name="content" class="field-light" rows="5" placeholder="{{ site.text.contact.content | default: "What would you like to say?" }}" style="resize: vertical"></textarea> | ||
</label> | ||
|
||
<input type="text" name="_gotcha" style="display:none" /> | ||
|
||
<button type='submit' class="button button-blue button-big mobile-block">{{ site.text.contact.submit | default: "Say Hello" }}</button> | ||
</form> | ||
{% else %} | ||
<form action="https://formspree.io/{{ site.email }}" method="POST" class="form-stacked"> | ||
<label> | ||
<input type="text" name="email" class="field-light" placeholder="{{ site.text.contact.email | default: "Email Address" }}"> | ||
</label> | ||
<label> | ||
Content | ||
<textarea type="text" name="content" class="field-light" rows="5" placeholder="{{ site.text.contact.content | default: "What would you like to say?" }}" style="resize: vertical"></textarea> | ||
</label> | ||
|
||
<input type="hidden" name="_next" value="{{ site.baseurl }}/thanks/" /> | ||
<input type="hidden" name="_subject" value="{{ site.text.contact.subject | default: "New submission!" }}" /> | ||
<input type="text" name="_gotcha" style="display:none" /> | ||
|
||
<input type="submit" class="button button-blue button-big mobile-block" value="{{ site.text.contact.submit | default: "Say Hello" }}"> | ||
</form> | ||
{% endif %} | ||
</div> | ||
|
||
{% if site.ajaxify_contact_form %} | ||
{% include ajaxify_content_form.html %} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
layout: default | ||
--- | ||
{% assign posts_count = paginator.posts | size %} | ||
|
||
<div class="home"> | ||
{% if posts_count > 0 %} | ||
<div class="posts"> | ||
{% for post in paginator.posts %} | ||
<div class="post py3"> | ||
<p class="post-meta"> | ||
{% if site.date_format %} | ||
{{ post.date | date: site.date_format }} | ||
{% else %} | ||
{{ post.date | date: "%b %-d, %Y" }} | ||
{% endif %} | ||
</p> | ||
<a href="{{ post.url | relative_url }}" class="post-link"><h3 class="h1 post-title">{{ post.title }}</h3></a> | ||
<span class="post-summary"> | ||
{% if post.summary %} | ||
{{ post.summary }} | ||
{% else %} | ||
{{ post.excerpt }} | ||
{% endif %} | ||
</span> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
|
||
{% include pagination.html %} | ||
{% else %} | ||
<h1 class='center'>{{ site.text.index.coming_soon | default: "Coming soon..." }}</h1> | ||
{% endif %} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,6 @@ | ||
--- | ||
layout: page | ||
layout: contact | ||
title: Say Hello | ||
permalink: /contact/ | ||
tags: contact | ||
--- | ||
|
||
<div class="py2"> | ||
{% if site.ajaxify_contact_form %} | ||
<form class="form-stacked"> | ||
<label> | ||
<input type="text" name="email" class="field-light" placeholder="{{ site.text.contact.email | default: "Email Address" }}"> | ||
</label> | ||
|
||
<label> | ||
Content | ||
<textarea type="text" name="content" class="field-light" rows="5" placeholder="{{ site.text.contact.content | default: "What would you like to say?" }}" style="resize: vertical"></textarea> | ||
</label> | ||
|
||
<input type="text" name="_gotcha" style="display:none" /> | ||
|
||
<button type='submit' class="button button-blue button-big mobile-block">{{ site.text.contact.submit | default: "Say Hello" }}</button> | ||
</form> | ||
{% else %} | ||
<form action="https://formspree.io/{{ site.email }}" method="POST" class="form-stacked"> | ||
<label> | ||
<input type="text" name="email" class="field-light" placeholder="{{ site.text.contact.email | default: "Email Address" }}"> | ||
</label> | ||
<label> | ||
Content | ||
<textarea type="text" name="content" class="field-light" rows="5" placeholder="{{ site.text.contact.content | default: "What would you like to say?" }}" style="resize: vertical"></textarea> | ||
</label> | ||
|
||
<input type="hidden" name="_next" value="{{ site.baseurl }}/thanks/" /> | ||
<input type="hidden" name="_subject" value="{{ site.text.contact.subject | default: "New submission!" }}" /> | ||
<input type="text" name="_gotcha" style="display:none" /> | ||
|
||
<input type="submit" class="button button-blue button-big mobile-block" value="{{ site.text.contact.submit | default: "Say Hello" }}"> | ||
</form> | ||
{% endif %} | ||
</div> | ||
|
||
{% if site.ajaxify_contact_form %} | ||
{% include ajaxify_content_form.html %} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,3 @@ | ||
--- | ||
layout: default | ||
layout: home | ||
--- | ||
{% assign posts_count = paginator.posts | size %} | ||
|
||
<div class="home"> | ||
{% if posts_count > 0 %} | ||
<div class="posts"> | ||
{% for post in paginator.posts %} | ||
<div class="post py3"> | ||
<p class="post-meta"> | ||
{% if site.date_format %} | ||
{{ post.date | date: site.date_format }} | ||
{% else %} | ||
{{ post.date | date: "%b %-d, %Y" }} | ||
{% endif %} | ||
</p> | ||
<a href="{{ post.url | relative_url }}" class="post-link"><h3 class="h1 post-title">{{ post.title }}</h3></a> | ||
<span class="post-summary"> | ||
{% if post.summary %} | ||
{{ post.summary }} | ||
{% else %} | ||
{{ post.excerpt }} | ||
{% endif %} | ||
</span> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
|
||
{% include pagination.html %} | ||
{% else %} | ||
<h1 class='center'>{{ site.text.index.coming_soon }}</h1> | ||
{% endif %} | ||
</div> |
Oops, something went wrong.