I’m using an Amazon Linux AMI, but the steps are general.
Edit your .conf
file - sudo vim /etc/httpd/conf/httpd.conf
Add the following under <Directory></Directory>
.
<Directory>
# You may have existing parameters here. Don't touch.
RedirectMatch ^/$ /blog/
</Directory>
This would redirect any traffic coming to our root directory to /blog/
, which, incidentally, is how you got here, if you just visited daviseford.com
:)
To loop over and display a folder of images in Jekyll (makes galleries really easy):
{% for image in site.static_files %}
{% if image.path contains 'path/to/image/folder/' %}
<a href="{{ site.baseurl }}{{ image.path }}" target="_blank">
<img src="{{ site.baseurl }}{{ image.path }}" alt="" class="img-thumbnail" />
</a>
{% endif %}
{% endfor %}
Some WIP photos of my burgeoning Seraphon army.
Definitely still a work in progress, lots of details could be fixed on these guys - I’ve moved on to working on Saurus Knights and their respective mounts, plus a fully loaded Carnosaur >:)