My personal page. https://jtm.dev
 
 
 
Go to file
James T. Martin c9a4bb4f73 Updated about page, included contact page, WIP. 2018-09-19 21:34:14 -07:00
about Updated about page, included contact page, WIP. 2018-09-19 21:34:14 -07:00
contact Updated about page, included contact page, WIP. 2018-09-19 21:34:14 -07:00
projects Updated all three pages, and factored out some urls. 2018-09-19 12:42:56 -07:00
res Updating content 2018-07-11 20:26:06 -07:00
templates Updated all three pages, and factored out some urls. 2018-09-19 12:42:56 -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
index.hs Updated all three pages, and factored out some urls. 2018-09-19 12:42:56 -07:00
robots.txt Removed a bunch of /about/ junk, fixed robots.txt sitemap link. 2018-05-13 08:44:32 -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.