Skip to content

Instantly share code, notes, and snippets.

Doin' Drupal for 14 years and counting.

Jim Smith startinggravity

Doin' Drupal for 14 years and counting.
View GitHub Profile
startinggravity / unit status
Last active Mar 11, 2020
jQuery for Drupal
View unit status
<!-- Fake data. -->
<div class="view-content">
<div class="unit">
<div class="unit-shortname">
startinggravity /
Last active Oct 29, 2019
Using Lando with Emulsify

I have had a few requests for more information about using Lando with Drupal 8, the Emulsify theme and Gulp. In order to put what I've learned in one place, I'm adding my notes here.

My initial problem was reported here, but since then I have discovered a few additional things worth noting.

Once you have a working site on Lando and are ready to install Emulsify use the following directions instead of what has provided by the Emulsify developers. These instructions assume you have used Composer to install Drupal and that the root Drupal files are in the /web directory.

NOTE: To follow these instructions, you will need to run NPM commands from your host machine, which means you must have Node and NPM installed. Fortunately, they are installed together in one installation. If you wish to confirm you have them installed, run node -v and npm -v. To install, visit and follow the i

View Keybase
### Keybase proof
I hereby claim:
* I am startinggravity on github.
* I am jimsmith ( on keybase.
* I have a public key ASAtKPq1mptWJfmmxKOdlz131Finbe5m7p7SNYHyfmg8qAo
To claim this, I am signing this object:
View barracuda up-stable log (with debug)
BOA [20:27:35] ==> Skynet Agent v.BOA-3.1.0 welcomes you aboard!
BOA [20:27:38] ==> INFO: UPGRADE
BOA [20:27:47] ==> Aegir on Debian/jessie x86_64 PHP 5.6
BOA [20:27:48] ==> INFO: Updating packages sources list...
BOA [20:27:48] ==> INFO: We will use Debian mirror
BOA [20:27:53] ==> INFO: Checking BARRACUDA version...
View boa info more
# boa info more
Aegir on Debian/jessie x86_64
VPS Linux KVM guest
RAM 3948
View Platform install log
Task starts processing: Verify: Starting Gravity 2016-05-20 D7.43
Returned from hook drush_hosting_task_validate
Calling hook drush_hosting_alias_pre_hosting_task
Returned from hook drush_hosting_alias_pre_hosting_task
Calling hook drush_hosting_clone_pre_hosting_task
startinggravity / menu--social-media.html.twig
Created Oct 30, 2015
Use a Drupal menu as a social media links block
View menu--social-media.html.twig
* @file
* Theme override to display a social media links from a menu.
* Available variables:
* - menu_name: The machine name of the menu.
* - items: A nested list of menu items. Each menu item contains:
* - attributes: HTML attributes for the menu item.
* - below: The menu item child items.
View SassMeister-input-HTML.html
<ul class="primary-nav">
<li class="primary-nav__item">
<a href="/" class="primary-nav__link is-active">Menu Item 1</a>
<li class="primary-nav__item">
<a href="/node/2" class="primary-nav__link">Menu Item 2</a>
<li class="primary-nav__item">
<a href="/node/3" class="primary-nav__link">Menu Item 3</a>
startinggravity / link.scss
Created May 6, 2015
Link underline with rollover
View link.scss
View _animation.scss
/* Set up the Sass Map */
$animations: (
'fade-in': (
0%: (
opacity: 0
100%: (
opacity: 1