My personal page. https://jtm.dev
 
 
 
Go to file
James T. Martin 582d8749ef Updating content 2018-07-11 20:26:06 -07:00
about Removed a bunch of /about/ junk, fixed robots.txt sitemap link. 2018-05-13 08:44:32 -07:00
gow Migrated to use my new html-generator tool! 2018-05-05 13:49:13 -07:00
projects Updating to new domain jtmar.me! 2018-05-11 19:04:55 -07:00
res Updating content 2018-07-11 20:26:06 -07:00
templates Updating content 2018-07-11 20:26:06 -07:00
.gitignore Migrated to use my new html-generator tool! 2018-05-05 13:49:13 -07:00
.gitmodules Migrated to use my new html-generator tool! 2018-05-05 13:49:13 -07:00
LICENSE Initial commit 2017-10-03 18:21:42 -07:00
README.md Update README.md 2018-05-12 02:46:11 +00:00
build-site-no-sitemap.sh Migrated to use my new html-generator tool! 2018-05-05 13:49:13 -07:00
build-site.sh Fixed some CSS bugs and a build-site sitemap bug. 2018-05-05 14:10:54 -07:00
build-templates.sh Worked on about page, added link highlighting, added many logos. 2018-05-06 12:53:30 -07:00
favicon.png Worked on about page, added link highlighting, added many logos. 2018-05-06 12:53:30 -07:00
index.hs Updating to new domain jtmar.me! 2018-05-11 19:04:55 -07:00
meme.html Updating content 2018-07-11 20:26:06 -07:00
owl.png Updating content 2018-07-11 20:26:06 -07:00
owl2.png Updating content 2018-07-11 20:26:06 -07:00
poetry.pdf Updating content 2018-07-11 20:26:06 -07:00
responsive.png Updating content 2018-07-11 20:26:06 -07:00
responsive2.png Updating content 2018-07-11 20:26:06 -07:00
resume.pdf Updated resume to use new domain name. 2018-05-11 19:06:15 -07:00
robots.txt Removed a bunch of /about/ junk, fixed robots.txt sitemap link. 2018-05-13 08:44:32 -07:00
screenshot.png Updating content 2018-07-11 20:26:06 -07:00
song.html Updating content 2018-07-11 20:26:06 -07:00

README.md

jtmar.me

This repo contains the entirety of my website, https://jtmar.me. It is posed in hopes that other people may find my build system useful. In addiition, it gives an easy mechanism to submit corrections to the content itself, such as fixing typos or minor details. Hypothetically, it is even possible community-contributed content might one day be submitted.

Repository Layout

  • /templates/html-generator/ is a git submodule pointing to https://github.com/lijerom/html-generator and will continue to do so until html-generator is released on Hackage, if it ever is.
  • /templates/ contains all of the page templates and site-specific generic content, and is imported by most pages on this site.
  • /res/ includes static resources, such as images, css, and javascript
  • /*.sh are some buildscripts used for building the site
  • The rest of this repository is the root directory of the site.

Building

This site clearly isn't made for redistribution, being a personal website, but hypothetically all that would need to be done is to change baseUrl in templates/Templates/Urls.hs. If you wish to make your own site based on my build system, please see the dedicated repository for html-generator instead, and merely use this page as an example.

First, clone the repo:

git clone --recursive https://github.com/lijerom/jtmar.me

The --recursive option also fetches the html-generator submodule. If you forgot to include the --recursive option, additionally run:

git submodule init
git submodule update

You will then need to install the Haskell Stack:

curl -sSL https://get.haskellstack.org/ | sh

And then build and install html-generators and templates:

./build-templates.sh

You may then build the actual xhtml site pages using:

./build-site-no-sitemap.sh

I would recommend always running the no-sitemap variant before running the general build-site variant, because the resultant sitemap will only include the pages which successfully compiled, even though the previous working versions of those pages still exist.

The entire website is static, so no special server configuration should be neccessary. However, you can still find my nginx config in https://github.com/lijerom/jtmar.me-config/.

./build-site.sh

License

  • html-generator, in /templates/html-generator/ is licensed GPLv3+.
  • All other source code (e.g. /templates/, and /index.hs) is licensed AGPLv3+.
  • The articles' content itself is licensed CC BY-SA unless otherwise specified.