- Install Terminus:
composer global require pantheon-systems/terminus. - Head to your Pantheon dashboard, go to your Account and click on Machine Tokens.
- Create a new token and use it auth with Pantheon:
terminus auth:login --machine-token=MACHINE-TOKEN - Create a new site on Pantheon using terminus:
terminus site:create name-of-site "Name of Site" 35b0e365-a191-4c70-adbe-9d02d01343f3.35b0e365-a191-4c70-adbe-9d02d01343f3is the uuid of the Drops 8 Composer upstream. You can see a list of upstream by runningterminus upstream:list - Once the site is created, you can head to http://dev-name-of-site.pantheonsite.io and continue with setup.
- Cloning your site on your local should give you a composer-based template.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * @file | |
| * Local development override configuration feature. | |
| * | |
| * To activate this feature, copy and rename it such that its path plus | |
| * filename is 'sites/default/settings.local.php'. Then, go to the bottom of | |
| * 'sites/default/settings.php' and uncomment the commented lines that mention | |
| * 'settings.local.php'. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Local development services. | |
| # | |
| # To activate this feature, follow the instructions at the top of the | |
| # 'example.settings.local.php' file, which sits next to this file. | |
| services: | |
| cache.backend.null: | |
| class: Drupal\Core\Cache\NullBackendFactory | |
| parameters: | |
| twig.config: | |
| debug: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Drupal\MODULE_NAME\Plugin\views\style; | |
| use Drupal\rest\Plugin\views\style\Serializer; | |
| /** | |
| * The style plugin for serialized output formats with pager. | |
| * | |
| * @ingroup views_style_plugins |
- Copy the
@importurl from https://fonts.google.com. - Edit
/scss/base/_variables.scssand add your@importurl under// Typography. - Update the
$font-familyvariables.
Example:
// Typography
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from "react" | |
| import { Link } from "gatsby" | |
| import Image from "gatsby-image" | |
| import Layout from "../../../components/layout" | |
| import SEO from "../../../components/seo" | |
| export const formatDuration = seconds => { | |
| const minutes = Math.floor(seconds / 60) | |
| const hours = Math.floor(seconds / (60 * 60)) |
This recipe adds podcast support to your Gatsby site using @arshad/gatsby-theme-podcast-core.
Install NPM packages
<NPMPackage name="@arshad/gatsby-theme-podcast-core"