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
... | |
wagtailtinymce = {git = "https://github.com/Junatum/wagtailtinymce.git"} | |
bleach = {extras = ["css"], version = "*"} |
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
from wagtail.models import Page | |
from translation.utils import get_translated_sitemap_urls | |
class ExtendedPage(Page): | |
class Meta: | |
abstract = True | |
def get_sitemap_urls(self, request): | |
page = self.localized | |
default_data = [{ |
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
FROM python:3.6.2 | |
RUN mkdir -p /usr/src/app | |
WORKDIR /usr/src/app | |
COPY requirements.txt /usr/src/app/ | |
RUN pip install --no-cache-dir -r requirements.txt | |
ENV PYTHONUNBUFFERED 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
// loadDesktopImages is looking for spans with a data-img-src attribute, whose parent is visible | |
// Any parent visible with CSS will trigger the replacement of the span with an image tag | |
// We use gridset m-hide on images we want to hide from small devices | |
// <noscript> is there as a backup | |
/* | |
<div class="m-hide"> | |
<span title="" class="media__image" data-img-src="http://fillmurray.com/200/300" style=""></span> | |
<noscript><img title="" alt="" class="media__image" src="http://fillmurray.com/200/300" style=""></noscript> | |
</div> |
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
// create a webinar interface | |
$interface = new WebinarInterface(); | |
// get the webinar data, pass filter and limit (null if not required) | |
$data = $interface->getWebinars('aCloud', 3); |
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
# Public: Write a new version of a page to the Gollum repo root. | |
# | |
# name - The String name of the page. | |
# format - The Symbol format of the page. | |
# data - The new String contents of the page. | |
# commit - The commit Hash details: | |
# :message - The String commit message. | |
# :name - The String author full name. | |
# :email - The String email address. | |
# :parent - Optional Grit::Commit parent to this update. |