$ terminus site:list
$ terminus site:list | rg 'filter'
$ terminus site:list
$ terminus site:list | rg 'filter'
Uses @include-media and some Bootstrap grid mixins (but has no Bootstrap dependencies).
<?php> | |
function myfunction($app) { | |
// ~~ Core. | |
// debug($app); | |
// dump($app); | |
// var_dump($app); | |
// ~~ Devel + kint library + settings | |
// dpr($app); | |
// kint($app); |
{# ~ Core ~ #} | |
{# {{ dump() }} #} | |
{# {{ dump(page) }} #} | |
{# ~ Devel~ #} | |
{# {{ kint()}} #} | |
{# {{ kint(page)}} #} | |
{# {{ devel_dump(page) }} #} | |
{# {{ devel_breakpoint() }} #} |
Internal Page Cache
: anonymous usersInternal Dynamic Page Cache
: anonymous and logged in users (includes dynamic content)BigPipe
/admin/config/development/performance
: set cache age & css/js aggregation(function($, Drupal, document, window) { | |
/** | |
* Prevents the Administrative Toolbar from popping out as a sidebar when | |
* screen width is reduced. | |
*/ | |
Drupal.behaviors.customToolbarResizeTweak = { | |
attach: function (context) { | |
window.matchMedia('(min-width: 975px)').addListener(function(event) { | |
event.matches ? $('#toolbar-item-administration', context).click() : $('.toolbar-item.is-active', context).click(); |
// Custom Font Awesome :after | |
@mixin font-awesome-after($fa-icon, $margin: 5px) { | |
&:after { | |
font-family: FontAwesome; | |
font-weight: normal; | |
font-style: normal; | |
display: inline-block; | |
content: $fa-icon; | |
text-decoration: inherit; | |
position: relative; |
/** | |
* Use local settings, if available. | |
*/ | |
$local_settings = dirname(__FILE__) . '/settings.local.php'; | |
if (file_exists($local_settings)) { | |
include $local_settings; | |
} |
<?php | |
// Theme serves either minified css/js or uncompressed css/js. | |
$conf['theme_minified_css'] = TRUE; | |
$conf['theme_minified_js'] = TRUE; | |
if (defined('PANTHEON_ENVIRONMENT')) { | |
switch (PANTHEON_ENVIRONMENT) { | |
case 'dev': |