Skip to content

Instantly share code, notes, and snippets.

View manbearwolf's full-sized avatar
🌴
On vacation

Matt Bott manbearwolf

🌴
On vacation
View GitHub Profile
.entry-content{
padding-left: 0px;
padding-right: 0px;
}
or
media query...
.full-width >*{
margin-left: 0;
margin-right: 0;
min-width: 1260px;
@manbearwolf
manbearwolf / search.json
Last active November 16, 2017 18:18
Simple Jekyll Search JSON Setup
---
layout: null
---
[
{% for post in site.posts %}
{
"title" : "{{ post.title | escape }}",
"url" : "{{ site.baseurl }}{{ post.url }}",
"tags" : "{{ post.tags | join: ', ' }}",
@manbearwolf
manbearwolf / search_data.json
Created November 16, 2017 16:30
LunrJS JSON Setup
---
layout: null
---
{
{% for post in site.posts %}
"{{ post.url | slugify }}": {
"title": "{{ post.title | xml_escape }}",
"content" : "{{post.content | strip_html | strip_newlines | remove: " " | escape | remove: "\"}}",
"url": "{{ site.baseurl }}{{ post.url | xml_escape }}",
@manbearwolf
manbearwolf / roughdraft.json
Last active November 16, 2017 07:54
codepen search google
[
{
"title" : "Google",
"tags" : "google, search",
"url" : "https://www.google.com/"
},
{
"title" : "Bing",
"tags" : "bing, search",
"url" : "https://www.bing.com/"
@manbearwolf
manbearwolf / add-line-numbers-to-the-code-block-generated-by-markdown.markdown
Last active November 16, 2017 04:12
Add line numbers to the code block generated by markdown
var gulp = require('gulp');
var sass = require('gulp-sass');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var minify = require('gulp-minify-css');
var assets = {
'js': [
"bower_components/jquery/dist/jquery.js",
"bower_components/highlightjs/highlight.pack.js",
@manbearwolf
manbearwolf / fancybox.txt
Last active November 15, 2017 00:23
fancybox notes for 3.0.39
initialize in document.ready jquery...
$("[data-fancybox]").fancybox({
// Options will go here
});
gets rid of eval errors in chrome. (developer) (even if options don't work)
Use pure CSS for fancybox in SASS runs best for sure. (No min and No convert).
@manbearwolf
manbearwolf / slick Notes.txt
Last active November 14, 2017 18:22
Slick Junk
Sass in GitHub Repo for fonts...
div.innerslick{
padding: 15px;
}
@manbearwolf
manbearwolf / default.html
Last active November 12, 2017 02:28
font fix for scssify
<head>
<style>
{% capture inlineCSS %}
{% include main.scss %}
{% endcapture %}
{{ inlineCSS | scssify }}
</style>
</head>
@manbearwolf
manbearwolf / blogger import.rb
Created November 10, 2017 16:23
Blogger Import Post
require "jekyll-import";
JekyllImport::Importers::Blogger.run({
"source" => "./blog-10-23-2017.xml",
"no-blogger-info" => false, # not to leave blogger-URL info (id and old URL) in the front matter
"replace-internal-link" => false, # replace internal links using the post_url liquid tag.
})