##The device-pixel-ratio Use Case
<img srcset="normal.jpg 1x, retina.jpg 2x"
src="normal.jpg"
alt="device-pixel-ratio use case" />
{# The easiest way to add link to home page and SVG logo is to put the SVG into the active theme directory root named logo.svg. To have default for browsers that cannot display SVG, see GIST https://gist.github.com/davebeach/064996d9b234c742642f8ca45585139a - then in the twig block just add the anchor and image elements. There is a lot of complex settings, by passing the block further down to another content file, but this makes no sense. The most difficult part is the anchor link, which just set it to /, don't try and is_front until the bugs are worked out with that functionality. #} | |
{% block content %} | |
<div class="container-content region-fixed-content"> | |
<a class="logo" href="{{ '/' | page }}"> | |
<img src="{{ logo }}" alt="{{ 'Home'|t }}"/> | |
</a> | |
</div> |
##svg for drupal 8 logo with png fallback.
Recommendations found at [Blog](http://thoughtfulweb.com/thoughts/on/the-best-way-to-add-an-svg-image-to-your-website/ title="SVG INLINE METHOD") [^2]
xmlns:xlink="http://www.w3.org/1999/xlink"
in the svg tag.##Key Permissions
*OWNER:READ GROUP:READ USER:READ
chmod 0444
*OWNER:READ WRITE GROUP:READ USER:NONE
chmod 0640
*OWNER:READ-WRITE-EXECUTE GROUP:READ-WRITE-EXECUTE USER:READ-EXECUTE
chmod 0775
Create a snapshot of your instance’s persistent disk. Using the Google cloud console, create a snapshot of the instance. Console Instructions for Snapshot Example: Instance name is disk-bitnami-drupal-dm-3d36. Name the snapshot - snapshot-1
Create a new persistent disk from this snapshot. From the gcloud console for the project execute command: