Skip to content

Instantly share code, notes, and snippets.

View edolyne's full-sized avatar

Edolyne Long edolyne

View GitHub Profile
@edolyne
edolyne / server.js
Created August 6, 2018 15:24
Dynamic Sitemap creation for NextJS based projects
const express = require('express');
const next = require('next');
const sm = require('sitemap');
const axios = require('axios');
const port = parseInt(process.env.PORT, 10) || 3000;
const dev = process.env.NODE_ENV !== 'production';
const app = next({ dev });
const handle = app.getRequestHandler();
@edolyne
edolyne / ad_unit.html
Created November 1, 2015 16:09
NewSpring Ad Block Section Markup
{!--
We pass a number of variables to alter the output of our Ad Unit Section. The template code is currently written for use in Expression Engine but can easily be converted for use with RockRMS Lava Templates.
background_color
background_image
alignment
link_url
link_text
target
@edolyne
edolyne / ee-blocks
Last active August 29, 2015 14:13
Adding Collapse To Blocks, and increasing font size for Atom headers
//Custom Styles for cp.css
.blocksft-header h3 {
font-size: 1.75em !important;
}
.blocksft-header:hover {
cursor: pointer;
}