Skip to content

Instantly share code, notes, and snippets.

View lukas-h's full-sized avatar
🎯
Focusing

Lukas Himsel lukas-h

🎯
Focusing
  • Nuremberg, Germany
  • 13:40 (UTC +01:00)
View GitHub Profile
@lukas-h
lukas-h / dateTranslate.rb
Created April 15, 2017 13:43
Jekyll Plugin to translate dates to german - Jekyll Plugin um Daten auf Deutsch zu übersetzen
module Jekyll
module DateTranslate
def dateTranslate(input)
puts 'hey'
return input
.gsub('January', 'Januar')
.gsub('February', 'Februar')
.gsub('March', 'März') .gsub('Mar', 'Mär')
.gsub('May', 'Mai')
.gsub('June', 'Juni')
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lukas-h
lukas-h / this.patch
Created May 14, 2017 09:11
Git Statistik
++485529 Additions
--288844 Deletions
@lukas-h
lukas-h / default.html
Created June 4, 2017 19:26
AMP default layout jekyll
---
layout: compress
---
<!doctype html>
<html lang="en">
<head>
{% include head.html %}
</head>
@lukas-h
lukas-h / _config.yml
Last active June 5, 2017 18:33
AMP jekyll config file replacements
...
replacements:
- - "<img"
- "<amp-img"
- - alt="" />
- ' layout="responsive" height="300px" width="600px"></amp-img>'
- - "<video"
- "<amp-video"
- - "</video"
@lukas-h
lukas-h / orgs.json
Last active June 15, 2017 09:39
Github Organisations associated with Code for Germany - http://codefor.de
{
"orgs":[
'okfde',
'codeformunich',
'ulmapi',
'opendata-stuttgart',
'opendata-heilbronn',
'opendatalab-de',
'CodeforKarlsruhe',
'codeforfrankfurt',
@lukas-h
lukas-h / header.html
Last active June 16, 2017 07:54
Jekyll & AMP - Image Carousel Raw
...
{% if page.layout == 'post' %}
{% if page.images %}
<script async custom-element="amp-carousel" src="https://cdn.ampproject.org/v0/amp-carousel-0.1.js"></script>
{% endif %}
{% endif %}
...
@lukas-h
lukas-h / carousel.html
Last active June 16, 2017 07:54
Jekyll & AMP - Image Carousel
@lukas-h
lukas-h / date-postname.md
Last active June 16, 2017 07:57
Jekyll & AMP - Image Carousel
title layout images
FOOBAR
post
/uploads/sample.png