An open API service indexing awesome lists of open source software.

https://github.com/araines/wp.araines.net

Static serverless WordPress site for my blogs
https://github.com/araines/wp.araines.net

blog wordpress

Last synced: about 2 months ago
JSON representation

Static serverless WordPress site for my blogs

Awesome Lists containing this project

README

          

# araines.net

Static serverless WordPress site for my personal blog

## Initial setup

1. Initialise terraform

```
terraform init
```

2. Set up OIDC with GitHub actions

```
terraform apply -target module.wordpress.module.github-oidc
```

3. Set up initial WordPress build

```
terraform apply
```

4. Start up WordPress (see below) and navigate to the admin interface

5. Change the admin password

6. Customise the theme (TwentyTwentyFour)

### Customising the Theme

Change the style to Onyx.

#### Typography

TODO

#### Colours

TODO

#### Layout

Content width to 860px.

#### Individual Stylebook Elements

Quote style to have medium size font.

Code style to have small size font.

## Starting / stopping WordPress

To start up WordPress, run the "Launch" workflow in GitHub Actions, with the variable set to 1.

To shutdown, set the variable to 0.

## Site publication

### Normal publication

To publish the site statically, login to `wp-admin`, then go to WP2Static and press Generate Static Site.

## Accessing WordPress

Go to the WordPress dynamic website at [wordpress.araines.net](http://wordpress.araines.net).

The admin interface can be accessed by [wp-admin](http://wordpress.araines.net/wp-admin).

## Troubleshooting

### Generate static site: Unable to fetch URL contents

During the static site generation, if it gets a 500 error with the last log being "Unable to fetch URL contents" then try clearing the caches.