My personal website https://jonathanh.co.uk
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
1.4 KiB

6 months ago
6 months ago
  1. # Source code for my website
  2. This is the source code for my website: <https://jonathanh.co.uk>.
  3. The site is built from markdown using [pandoc](https://pandoc.org/).
  4. ## build.sh
  5. There is a bash script, [build.sh](/jab2870/Website/src/branch/master/build.sh), that creates the necessary files in a `public_html` folder.
  6. This can then be hosted on any hosting service.
  7. The script takes the following commands:
  8. ### Clean
  9. ```bash
  10. build.sh clean
  11. ```
  12. This will remove the contents of the public_html folder and the tmp folder the script uses to store things like the tag list
  13. ### Tags
  14. ```bash
  15. build.sh tags
  16. ```
  17. This will build the taglist which is used internally and stored in the `tmp` folder as well as creating archive pages for each tag
  18. ### Blog
  19. ```bash
  20. build.sh blog
  21. ```
  22. This will build the blog pages for any blogs that have been modified since the last time blogs were built
  23. ### Index
  24. ```bash
  25. build.sh index
  26. ```
  27. This will generate the homepage.
  28. ### Card
  29. ```bash
  30. build.sh card
  31. ```
  32. Generates my curlable business card.
  33. ### RSS
  34. ```bash
  35. build.sh rss
  36. ```
  37. Generates my rss feed.
  38. ### All
  39. ```bash
  40. build.sh all
  41. ```
  42. This will generate the tags, the blogs, the index, the RSS feed and the card.
  43. ## Docker
  44. To run locally, make sure docker and docker-compose are installed then run `docker-compose up`. You will be able to access the site at <http://localhost:8080>.