Skip to content

ktwrd/kate.pet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kate.pet

Personal website written in PHP, using Smarty for templates, and a lot of home-made CSS.

Screenshots

image

image

image

Setup development environment

For a development environment you must have the following installed;

  • nginx
  • PHP 8.x
    • php-fpm
    • composer (see)
  1. copy .env.example to .env and replace the proper variable with your own (like WEB_ROOT with where you cloned this repo.)
  2. copy nginx.conf to where your nginx configs go (and replace kate.pet with whatever domain you wish) and make sure that fastcgi_pass is using the correct socket location.
  3. make sure you install dependencies with composer install

and you should be set :3

Notes for Kate

  • when adding a blog post, make sure that there is a .md file with the same name as the .php file in ./blog_posts/
    • this is because retrieveBlogPost($postId) fetches the content by fetching a file with the same name as the postId provided but with the extension of .md instead of .php
  • when fetching stuff from the GET parameters (in $_REQUEST), make sure to sanitize with the basename function

About

Personal Website written in PHP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published