- Copy-paste to split book into separate chapter files
- Fix inline spans broken by a space after a word before the closing
*
- Remove image width and height inherited from images in docx
- Wrap all images in an Electric Book figure blockquote
- Simplify indentation in lists by reducing space after list marker to one space
- Remove non-kramdown markdown
^
around superscripts after numbers - Wrap the opening words of a paragraph in a span
- Find an email address
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
# Add correct content-type for fonts | |
AddType application/vnd.ms-fontobject .eot | |
AddType font/ttf .ttf | |
AddType font/otf .otf | |
AddType font/x-woff .woff | |
AddType image/svg+xml .svg | |
# Compress compressible fonts | |
AddOutputFilterByType DEFLATE font/ttf font/otf image/svg+xml |
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
<!-- image --> | |
<figure {{ with .Get "class" }}class="{{.}}"{{ end }}> | |
{{ with .Get "link"}}<a href="{{.}}">{{ end }} | |
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" data-src="{{ .Get "src" }}" {{ if or (.Get "alt") (.Get "caption") }}alt="{{ with .Get "alt"}}{{.}}{{else}}{{ .Get "caption" }}{{ end }}" {{ end }}{{ with .Get "width" }}width="{{.}}" {{ end }} class="lazyload" /> | |
<noscript> | |
<img src="{{ .Get "src" }}" {{ if or (.Get "alt") (.Get "caption") }}alt="{{ with .Get "alt"}}{{.}}{{else}}{{ .Get "caption" }}{{ end }}" {{ end }}{{ with .Get "width" }}width="{{.}}" {{ end }}/> | |
</noscript> | |
{{ if .Get "link"}}</a>{{ end }} | |
{{ if or (or (.Get "title") (.Get "caption")) (.Get "attr")}} | |
<figcaption>{{ if isset .Params "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
.cover | |
p.author john doe | |
p.stack Competition | |
p.tagline The new typography |
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
#!/usr/bin/env ruby | |
# A small script to convert WP-Footnotes style footnotes to PHP Markdown Extra | |
# style footnotes. | |
# | |
# Possibly useful for those who are migrating from Wordpress to Jekyll, were | |
# using WP-Footnotes, and wish to render their new Markdown pages with Kramdown | |
# (which supports PHP Markdown Extra style footnotes). | |
# | |
# For example, you might first run https://github.com/thomasf/exitwp and then run |
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 | |
/* if this script is located in your document root… */ | |
require(__DIR__ . '/kirby/bootstrap.php'); | |
if(get('params')) { | |
$articles = page('blog')->children(); | |
$sort = ($articles->count() + 1); | |
$date = date('Y-m-d'); |
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
<!-- | |
site/templates/search.php | |
Source : https://forum.getkirby.com/t/search-templates/5323/12 | |
--> | |
<?php snippet('header') ?> | |
<div class="text"> | |
<?php if($results): ?> | |
<?php foreach($results as $result): ?> | |
<div class="text"> |