This is the code used on my personal blog on https://blog.jgrossi.com.
This blog uses Composer for dependencies. The only dependency the blog has for now is phpdovenv
package. So please run:
composer install
All plugins and the base theme are installed using Composer as well. So you won't find the base theme and plugins installed in
wp-content/themes
andwp-content/plugins
folders.
Rename .env.example
to .env
and onfigure it with your own credentials, like database, URL, etc.
Inside the /public
folder you'll see a basic WordPress installation, except the fact the wp-config.php
is configured to include the /bootstrap.php
file and use getenv()
to get environment variables from phpdotenv
package.
I use the twentyfifteen theme with some modifications.
I decrease the font size a bit, so you can see some changes on twentyfifteen-child/style.css
file.
I also decrease the logo size, which I'm using with my profile image.
I also created a new .post-date
section, just below the title, to display the published and updated date. You can use both dates or just the published one.
I changed how the featured image is displayed. I overrided the twentyfifteen_post_thumbnail()
function on twentyfifteen-child/functions.php
to send the image to below the title, using by default the large
size, adding also some custom CSS rules.
MIT License © Junior Grossi