Merge branch 'pr/101'

This commit is contained in:
Panos Sakkos 2015-11-22 23:17:40 +01:00
commit 6974b5bf3a
6 changed files with 13 additions and 7 deletions

View file

@ -3,7 +3,7 @@ rvm:
- 2.1
install: gem install jekyll jekyll-paginate jemoji html-proofer
script: jekyll serve --baseurl "" --detach && htmlproof ./_site --disable-external --empty-alt-ignore
script: JEKYLL_ENV=production jekyll serve --baseurl "" --detach && htmlproof ./_site --disable-external --empty-alt-ignore
env:
global:

View file

@ -78,7 +78,7 @@ The theme contains documentation in the form of [blog posts](https://panossakkos
## How to run locally
````
./scripts/serve
./scripts/serve-production
````
## Wiki

View file

@ -39,7 +39,8 @@ $(window).scroll(toggleNavCollapse);$(function(){$("a.page-scroll").bind("click"
{% endif %}
{% if site.google-tracking-id %}
{% if jekyll.environment == "production" %}
{% if site.google-tracking-id %}
<!-- Google Tracking Id Start -->
@ -54,9 +55,9 @@ $(window).scroll(toggleNavCollapse);$(function(){$("a.page-scroll").bind("click"
<!-- Google Tracking Id End -->
{% endif %}
{% endif %}
{% if site.disqus-shortname %}
<!-- Disqus -->

View file

@ -28,8 +28,10 @@
{{ page.content | markdownify }}
{% include share.html %}
{% include comments.html %}
{% if jekyll.environment == "production" %}
{% include comments.html %}
{% endif %}
{% include social-buttons.html %}

View file

@ -40,7 +40,7 @@ This step is essential, since its related to file paths!
In order to serve the website locally just run:
<pre><code data-trim class="bash">
./scripts/serve
./scripts/serve-production
</code></pre>
<small>Many thanks to <a href="https://github.com/joariasl" target="\_blank">@joariasl</a> for the language support! </small>

3
scripts/serve-production Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
JEKYLL_ENV=production jekyll serve --host "127.0.0.1" --baseurl ""