This accepts views arguments as well:
{{ drupal_view('who_s_new', 'block_1') }}
{{ drupal_view('who_s_new', 'block_1' 'contextarg1', 'contextarg2', '...') }}
:root { | |
// Grid proportions | |
--grid-width: 960; | |
--grid-column-width: 60; | |
--grid-columns: 12; | |
// Grid logic | |
--grid-gutters: calc(var(--grid-columns) - 1); | |
// Grid proportion logic |
/** | |
* Settings | |
*/ | |
var settings = { | |
scripts: true, // Turn on/off script tasks | |
polyfills: true, // Turn on/off polyfill tasks | |
styles: false, // Turn on/off style tasks | |
svgs: false, // Turn on/off SVG tasks | |
static: false, // Turn on/off static file copying |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
This pull request is related to the following JIRA tickets:
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent
This guide will take you from zero webserver knowledge, to having your own free site hosted on GitHub. The only non-free bit is registering a domain name, which can be as cheap as $5/year.
This guide uses CrazyDomains as the Registrar, FreeDNS as the DNS, and GitHub as the Webserver.
<?php | |
/** | |
* Add custom scripts | |
*/ | |
function matt_page_alter(&$page) { | |
$page['#attached']['library'][] = 'matt/matt-corescripts'; | |
} |