module.exports = (image, caption, className) => {
const classMarkup = className ? ` class="${className}"` : '';
const captionMarkup = caption ? `<figcaption>${caption}</figcaption>` : '';
return `<figure${classMarkup}><img src="/img/${image}" />${captionMarkup}</figure>`;
// the line below does all this in one line, but is more confusing:
// return `<figure${className ? ` class="${className}"` : ''}><img src="/img/${image}" />${caption ? `<figcaption>${caption}</figcaption>` : ''}</figure>`;
};
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const markdownIt = require("markdown-it"); | |
const md = new markdownIt(); | |
const dbg = require("debug")("responsiver-config"); | |
const runAfterHook = (image, document) => { | |
let imageUrl = | |
image.getAttribute("data-pristine") || image.getAttribute("src"); | |
let caption = image.getAttribute("title"); | |
if (caption !== null) { | |
caption = md.renderInline(caption.trim()); |
- The Underground Railroad, Colson Whitehead
- Moonglow, Michael Chabon
- Gnomon, Nick Harkaway
- Death of a King, Tavis Smiley
- The Obelisk Gate, N. K. Jemisin
- New York 2140, Kim Stanley Robinson
- My Brilliant Friend, Elena Ferrante
- The Woman Who Smashed Codes, Jason Fagone
- So You Want to Talk About Race, Ijeoma Oluo
- Her Body and Other Parties, Carmen Maria Machado
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Field DOS Feed Status Module file | |
* | |
* This module allows site administrators to send a stock warning | |
* email to a specified user or users through the admin interface. | |
* Administrators can configure the default email including token replacement. | |
*/ | |
//define('EXHIBIT_ITEMS_MODIFICATION_DATE', 'none'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ "key": "shift+alt+down", "command": "cursorColumnSelectDown", "when": "editorTextFocus" }, | |
{ "key": "shift+alt+up", "command": "cursorColumnSelectUp", "when": "editorTextFocus" }, | |
{ "key": "cmd+l", "command": "workbench.action.gotoLine" }, | |
{ "key": "shift+ctrl+d", "command": "editor.action.copyLinesDownAction", "when": "editorTextFocus && !editorReadonly" }, | |
{ "key": "ctrl+cmd+down", "command": "editor.action.moveLinesDownAction", "when": "editorTextFocus && !editorReadonly" }, | |
{ "key": "ctrl+cmd+up", "command": "editor.action.moveLinesUpAction", "when": "editorTextFocus && !editorReadonly" }, | |
{ "key": "shift+cmd+[", "command": "workbench.action.previousEditor" }, | |
{ "key": "shift+cmd+]", "command": "workbench.action.nextEditor" }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Modular Scale */ | |
$ms-base: 1.125em; | |
$ms-ratio: $golden; | |
$ms-range: | |
1.05 20em, | |
1.33 81.25em; | |
.entry-meta { | |
@include ms-respond(font-size, -1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function THEME_preprocess_menu_link(&$variables) { | |
$element = &$variables['element']; | |
if (!empty($element['#original_link']['options']['attributes']['class'])) { | |
foreach($element['#original_link']['options']['attributes']['class'] as $class) { | |
$element['#attributes']['class'][] = $class; | |
} | |
} | |
} |
NewerOlder