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
import os | |
import sys | |
output_folder = os.path.abspath(sys.argv[1]) | |
from mincss.processor import Processor | |
p = Processor() | |
urls = [] | |
css_files = {} | |
for root, dirs, files in os.walk(output_folder): | |
for f in files: |
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
import codecs | |
import sys | |
import lxml.html | |
from lxml import etree | |
import pyphen | |
lang="en" | |
def insert_hyphens(node, hyphenator): |
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
## -*- coding: utf-8 -*- | |
<%def name="html_disqus(url, title, identifier)"> | |
<!-- START: Livefyre Embed --> | |
<div id="livefyre-comments"></div> | |
<script type="text/javascript" src="http://zor.livefyre.com/wjs/v3.0/javascripts/livefyre.js"></script> | |
<script type="text/javascript"> | |
(function () { | |
var articleId = "${identifier}"; | |
fyre.conv.load({}, [{ | |
el: 'livefyre-comments', |
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
## -*- coding: utf-8 -*- | |
<%def name="html_disqus(url, title, identifier)"> | |
<a name="#disqus_thread"></a> | |
<script> | |
var idcomments_acct = '${disqus_forum}'; | |
var idcomments_post_id = "${identifier}"; | |
var idcomments_post_url = "${url}"; | |
</script> | |
<span id="IDCommentsPostTitle" style="display:none"></span> | |
<script type='text/javascript' src='http://www.intensedebate.com/js/genericCommentWrapperV2.js'></script> |
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
## -*- coding: utf-8 -*- | |
<%def name="html_disqus(url, title, identifier)"> | |
<a class="moot" href="https://moot.it/i/${disqus_forum}/${identifier}">${disqus_forum} forums</a> | |
</%def> | |
<%def name="html_disqus_link(link, identifier)"> | |
</%def> | |
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
ANALYTICS = """ | |
<script src="//cdn.moot.it/1/moot.min.js"></script> | |
""" | |
EXTRA_HEAD_DATA = """ | |
<link rel="stylesheet" type="text/css" href="//cdn.moot.it/1/moot.css"> | |
<meta name="viewport" content="width=device-width"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=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
asdasdasdasdasd |
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
## -*- coding: utf-8 -*- | |
<%namespace name="helper" file="post_helper.tmpl"/> | |
<%namespace name="pheader" file="post_header.tmpl"/> | |
<%namespace name="comments" file="comments_helper.tmpl"/> | |
<%inherit file="post.tmpl"/> | |
<%block name="content"> | |
<article class="storypage" itemscope="itemscope" itemtype="http://schema.org/Article"> | |
<header> | |
${pheader.html_title()} |
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
## -*- coding: utf-8 -*- | |
<%namespace name="helper" file="post_helper.tmpl"/> | |
<%namespace name="pheader" file="post_header.tmpl"/> | |
<%namespace name="comments" file="comments_helper.tmpl"/> | |
<%inherit file="post.tmpl"/> | |
<%block name="extra_head"> | |
${parent.extra_head()} | |
<style> | |
.chapter { |
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
## -*- coding: utf-8 -*- | |
<%namespace name="helper" file="post_helper.tmpl"/> | |
<%namespace name="pheader" file="post_header.tmpl"/> | |
<%namespace name="comments" file="comments_helper.tmpl"/> | |
<%inherit file="post.tmpl"/> | |
<%block name="extra_head"> | |
${parent.extra_head()} | |
<script src="/assets/js/jquery.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/Flowtype.js/1.1.0/flowtype.min.js"></script> |
OlderNewer