Everything required to run my site.
This repository has been archived on 2024-01-22. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
2024-01-22 13:13:02 +01:00
articles Add a note to the previous blog post 2023-12-14 22:27:14 +01:00
css Add new blog post, css change 2023-12-14 16:38:29 +01:00
img massive massive cleanup 2023-11-25 21:48:28 +01:00
md Move blog posts over to using Markdown 2023-06-30 23:39:01 +02:00
php Center a bunch of shit 2023-12-04 12:14:36 +01:00
projects massive massive cleanup 2023-11-25 21:48:28 +01:00
updates Add spmenu 3.5.0 release announcement 2023-12-30 06:36:51 +01:00
.gitignore Remove the news.xml and rss.xml feeds 2023-08-30 08:00:28 +02:00
.htaccess Update .htaccess 2023-08-28 17:25:57 +02:00
about-me.php massive massive cleanup 2023-11-25 21:48:28 +01:00
blog.php massive massive cleanup 2023-11-25 21:48:28 +01:00
index.php Center a bunch of shit 2023-12-04 12:14:36 +01:00
LICENSE Add licenses 2023-07-01 12:45:01 +02:00
LICENSE.blog Add licenses 2023-07-01 12:45:01 +02:00
news.php Automatically generate displayed title and date, no need to have that in 2023-08-30 08:15:01 +02:00
overlay.xml update 2023-06-03 00:42:41 +00:00
privacy.php massive massive cleanup 2023-11-25 21:48:28 +01:00
README.md Add deprecation notice, all further work is done at csgen. 2024-01-22 13:13:02 +01:00
test.sh Add/change lots of stuff 2023-07-30 20:29:20 +02:00
updates.xml Rename to news.xml, add symlink 2023-08-28 17:22:39 +02:00

speedie-page

Everything required to host my site on your own.

Deprecated

This repository is no longer used. My website has been replaced with a csgen instance. Do not submit contributions to this repository.

Dependencies

  • php
  • Web server (not required for testing)

Testing

You can test the page using php -S localhost:1337 and opening http://localhost:1337 in your web browser.

Crontab notes

If you want to git pull every minute, you can do the following:

  • sudo crontab -e to edit the crontab file
  • Add */1 * * * * su -s /bin/sh <your user> -c '/usr/bin/gitpull.sh' to the file.
  • Add the following to /usr/bin/gitpull.sh
#!/bin/sh
cd /var/www/page
cd speedie.site # assuming /var/www/page/speedie.site is the git repository
git pull origin master > /tmp/gitpull_speedie.site # log file

Blog

The blog is handled by blog.php. It also generates rss.xml on execution if the result differs from the existing file. To add new blog posts, add a new Markdown article to /articles. You must also create a .md.date file for the new page. The .md.date contains the date, in YYYY-MM-DD format. It is used for RSS feeds, and for sorting.

Contributions

To contribute, simply create an issue or submit a pull request. You know how it works.

License

License for almost all PHP is GNU General Public License version 3. The license for blog.php is MIT though, see LICENSE.blog.