From a custom page layout, for a publishing site collection, how can I tell SharePoint 2013 to display...
<script> console.log('this should display in non-edit window'); </script>
...that loads in the
<head> of the page if I am not edit mode (i.e. editing a publishing page)?
If I am in edit mode, I should not even see the above script, not even in view source mode.
Is this possible?