Hello,
I am very new to Drupal and not an advanced programmer, so I am working on creating an extremely simple Drupal 8 Twig theme, but I keep getting error messages in the admin area, and after creating a node with some content, none of the content is showing up. The one thing that is working is that Drupal is inserting code into the “head” area, but nothing else seems to be working other than that. Here’s what I have so far:
My theme consists of four very basic files: my-theme.info.yml, html.html.twig, screenshot.png, and css/layout.css. I’ve plopped them in a folder titled, “bluejay” and placed it in the “themes” directory of my test site.
For the file “bluejay.info.yml” I have the following code:
name: Bluejay
type: theme
description: This is my super simple admin theme.
package: Bluejay
version: 0.1
core: 8.x
stylesheets:
all:
- css/layout.css
regions:
header: 'Header'
content: 'Content'
sidebar_first: 'Sidebar first'
footer: 'Footer'
settings:
shortcut_module_link: '0'
engine: twig
screenshot: screenshot.png
For the file “html.html.twig” I have:
{#
/**
* @file
* Default theme implementation to display an html page.
*/
#}
{{ head }}