Skip to content

Instantly share code, notes, and snippets.

Jacob Bearce JacobDB

Block or report user

Report or block JacobDB

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@JacobDB
JacobDB / navigation.html
Created Apr 30, 2017 — forked from danblakemore/navigation.html
Nested Jekyll page navigation without plugins
View navigation.html
{% capture html %}
{% assign childCount = '' %}
{% comment %} Make sure there will be pages before making the ul tag. {% endcomment %}
{% assign entries = site.pages | sort: "path" %}
{% for entry in entries %}
{% capture slug %}{{ entry.url | split: "/" | last }}{% endcapture %}
{% capture current %}{{ entry.url | remove: slug | remove: "//" | append: "/" }}{% endcapture %}
{% if current == include.context %}
View inline-svg-function.scss
// Replace letters
@function str-replace($string, $search, $replace: '') {
$index: str-index($string, $search);
@if $index {
@return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
}
@return $string;
}
@JacobDB
JacobDB / .gitlab-ci.yml
Last active Nov 13, 2017 — forked from RafalSladek/ .gitlab-ci.yml
gitlab ci file for gulp build pipeline with the latest nodejs
View .gitlab-ci.yml
image: node:latest
cache:
paths:
- node_modules/
before_script:
- npm install -g gulp
- npm install
You can’t perform that action at this time.