Skip to content

Commit

Permalink
Fixes #6: Add fun 404 page.
Browse files Browse the repository at this point in the history
  • Loading branch information
geerlingguy committed Mar 4, 2019
1 parent 757eef1 commit 74dae4e
Show file tree
Hide file tree
Showing 3 changed files with 160 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/sync/system.site.yml
Expand Up @@ -4,7 +4,7 @@ mail: admin@example.com
slogan: 'Drupal 8 on a cluster of Raspberry Pis'
page:
403: ''
404: ''
404: /node/29
front: /node/28
admin_compact_mode: false
weight_select_max: 100
Expand Down
3 changes: 2 additions & 1 deletion docker-compose.yml
Expand Up @@ -15,7 +15,7 @@ services:
DRUPAL_DOWNLOAD_IF_NOT_PRESENT: 'false'
ports:
- "80:80"
restart: always
restart: on-failure
# Share the project into the container for local development. Comment out
# this line to test the production-ready pre-built container codebase.
volumes: ['./:/var/www/html:rw,delegated']
Expand All @@ -28,6 +28,7 @@ services:
MYSQL_DATABASE: drupal
MYSQL_USER: drupal
MYSQL_PASSWORD: drupal
restart: on-failure
ports:
- "3306:3306"
volumes:
Expand Down
@@ -0,0 +1,157 @@
{
"_links": {
"self": {
"href": "http:\/\/default\/page-not-found?_format=hal_json"
},
"type": {
"href": "http:\/\/drupal.org\/rest\/type\/node\/page"
},
"http:\/\/drupal.org\/rest\/relation\/node\/page\/revision_uid": [
{
"href": "http:\/\/default\/user\/2?_format=hal_json"
}
],
"http:\/\/drupal.org\/rest\/relation\/node\/page\/uid": [
{
"href": "http:\/\/default\/user\/2?_format=hal_json",
"lang": "en"
}
]
},
"nid": [
{
"value": 29
}
],
"uuid": [
{
"value": "28f17cee-5860-4247-94b4-46c000e27f49"
}
],
"vid": [
{
"value": 29
}
],
"langcode": [
{
"value": "en",
"lang": "en"
}
],
"type": [
{
"target_id": "page"
}
],
"revision_timestamp": [
{
"value": "2019-03-04T04:49:31+00:00",
"format": "Y-m-d\\TH:i:sP"
}
],
"_embedded": {
"http:\/\/drupal.org\/rest\/relation\/node\/page\/revision_uid": [
{
"_links": {
"self": {
"href": "http:\/\/default\/user\/2?_format=hal_json"
},
"type": {
"href": "http:\/\/drupal.org\/rest\/type\/user\/user"
}
},
"uuid": [
{
"value": "72a32381-22fe-4944-ab85-0b45a51f8631"
}
]
}
],
"http:\/\/drupal.org\/rest\/relation\/node\/page\/uid": [
{
"_links": {
"self": {
"href": "http:\/\/default\/user\/2?_format=hal_json"
},
"type": {
"href": "http:\/\/drupal.org\/rest\/type\/user\/user"
}
},
"uuid": [
{
"value": "72a32381-22fe-4944-ab85-0b45a51f8631"
}
],
"lang": "en"
}
]
},
"status": [
{
"value": true,
"lang": "en"
}
],
"title": [
{
"value": "Page not found",
"lang": "en"
}
],
"created": [
{
"value": "2019-03-04T04:37:37+00:00",
"lang": "en",
"format": "Y-m-d\\TH:i:sP"
}
],
"changed": [
{
"value": "2019-03-04T04:55:38+00:00",
"lang": "en",
"format": "Y-m-d\\TH:i:sP"
}
],
"promote": [
{
"value": false,
"lang": "en"
}
],
"sticky": [
{
"value": false,
"lang": "en"
}
],
"default_langcode": [
{
"value": true,
"lang": "en"
}
],
"revision_translation_affected": [
{
"value": true,
"lang": "en"
}
],
"path": [
{
"alias": "\/page-not-found",
"pid": 29,
"langcode": "en",
"lang": "en"
}
],
"body": [
{
"value": "<p>That page couldn't be found. But you shouldn't leave on an empty stomach, so here's a picture of a yummy raspberry pie!<\/p>\r\n\r\n<p class=\"text-align-center\"><img alt=\"Raspberry pie image from www.shockinglydelicious.com\" data-entity-type=\"\" data-entity-uuid=\"\" height=\"auto\" src=\"https:\/\/raw.githubusercontent.com\/geerlingguy\/raspberry-pi-dramble\/master\/images\/website\/raspberry-pie.jpg\" width=\"600\" \/><\/p>\r\n\r\n<p class=\"text-align-center\">(Photo from <a href=\"http:\/\/www.shockinglydelicious.com\/dorothys-fresh-raspberry-pie-recipe\/\">Shockingly Delicious<\/a>)<\/p>\r\n",
"format": "html",
"processed": "<p>That page couldn't be found. But you shouldn't leave on an empty stomach, so here's a picture of a yummy raspberry pie!<\/p>\n\n<p class=\"text-align-center\"><img alt=\"Raspberry pie image from www.shockinglydelicious.com\" data-entity-type=\"\" data-entity-uuid=\"\" height=\"auto\" src=\"https:\/\/raw.githubusercontent.com\/geerlingguy\/raspberry-pi-dramble\/master\/images\/website\/raspberry-pie.jpg\" width=\"600\" \/><\/p>\n\n<p class=\"text-align-center\">(Photo from <a href=\"http:\/\/www.shockinglydelicious.com\/dorothys-fresh-raspberry-pie-recipe\/\">Shockingly Delicious<\/a>)<\/p>\n",
"summary": "",
"lang": "en"
}
]
}

0 comments on commit 74dae4e

Please sign in to comment.