Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keybase patch #185

Merged
merged 3 commits into from
Jul 31, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ test/
_deploy/*
Rakefile
.jekyll-metadata
/.idea/
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ The theme contains documentation in the form of [blog posts](https://panossakkos
![Categories](https://dl.dropboxusercontent.com/u/8522559/personal-jekyll-theme/categories.jpg)
### 404
![404](https://dl.dropboxusercontent.com/u/8522559/personal-jekyll-theme/404.jpg)
### Keybase
![Keybase](http://i68.tinypic.com/245xyd2.png)
### Mobile rendering
![Web App](https://dl.dropboxusercontent.com/u/8522559/personal-jekyll-theme/web-app.jpg)
### Web App mode
Expand All @@ -87,15 +89,21 @@ The theme contains documentation in the form of [blog posts](https://panossakkos

First, you need to install jekyll and the dependencies of { Personal } by running:

````
```shell
./scripts/install
````
```

Then, you can build and serve your website by simply running:

````
```shell
./scripts/serve-production
````
```

To serve across lan (requires su to forward the port 4000 over lan):

```shell
./scripts/serve-lan-production
```

## Wiki

Expand Down
8 changes: 8 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,14 @@ social:

404-img: "/img/labtocat.png"

##################
# GPG on Keybase #
##################

keybase-username: johnsmith
keybase-in-social: True
keybase-in-footer: True

################################################################################

# NB! Tread carefully if you want to change the variables below this point!
Expand Down
9 changes: 6 additions & 3 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

<!-- Footer Start -->
<!-- Footer Start -->

<footer>

Expand All @@ -8,7 +7,11 @@
<p><br><br></p>

<div class="container text-center">
<p>Copyright &copy; {{ site.author }} {{ site.time | date: "%Y" }}</p>
<p>Copyright &copy; {{ site.author }} {{ site.time | date: "%Y" }}</p>
{% if site.keybase-in-footer %}
<p style="font-size: 16px;"><a href="https://keybase.io/{{site.keybase-username}}" target="_blank"><i
class="fa fa-key"></i> {{site.keybase-username}} on Keybase</a></p>
{% endif %}
</div>
</footer>

Expand Down
8 changes: 5 additions & 3 deletions _includes/social-buttons.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@

<!-- Social Buttons Start -->

<ul class="list-inline social-buttons">
{% for network in site.social %}
{% for network in site.social %}
<li><a href="{{ network.url }}" target="_blank"><i class="fa fa-{{ network.title }} fa-fw"></i></a></li>
{% endfor %}
{% endfor %}
{% if site.keybase-in-social %}
<li><a href="https://keybase.io/{{site.keybase-username}}" target="_blank"><i class="fa fa-key fa-fw"></i></a></li>
{% endif %}
</ul>

<!-- Social Buttons End -->
4 changes: 4 additions & 0 deletions scripts/serve-lan
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

sudo iptables -I INPUT -p tcp --dport 4000 -j ACCEPT
jekyll serve --watch --host "0.0.0.0" --baseurl ""
4 changes: 4 additions & 0 deletions scripts/serve-lan-production
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

sudo iptables -I INPUT -p tcp --dport 4000 -j ACCEPT
JEKYLL_ENV=production jekyll serve --host "0.0.0.0" --baseurl ""