I hereby claim:
- I am beatricebock on github.
- I am beatricebock (https://keybase.io/beatricebock) on keybase.
- I have a public key ASAcy7v7C3W3C-uG54hFFQ3GE0JHec18lRYoRO3vorU7jAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
var gulp = require("gulp"); | |
var browserSync = require("browser-sync").create(); | |
var sass = require("gulp-sass"); | |
// Compile sass into CSS & auto-inject into browsers | |
gulp.task("sass", function () { | |
return gulp | |
.src("app/scss/**/*.scss") | |
.pipe(sass()) | |
.pipe(gulp.dest("app/css")) |
add_shortcode('shortcode-name', function($params){
include(get_template_directory() . '/path/to/shortcode.php');
});
add_action( 'vc_after_init', 'add_shortcode');
function add_shortcode() {
<?php | |
//Add in functions.php or any other class file. | |
add_action( 'vc_after_init', 'configure_vc_btn'); //register | |
function configure_vc_btn() | |
{ | |
//remove params(settings) | |
if( function_exists('vc_remove_param') ){ | |
WPBMap::dropParam( 'vc_btn', 'css_animation' ); |
//paginate on load | |
$('.organization-list').each(function () { | |
paginate($(this)); | |
$(this).find('.pagination').first().trigger("click"); //paginations won't show the first page if not clicked, so trigger the first click | |
}); | |
//paginate on list change | |
$('select.filter').change( | |
function () { | |
$parent = $(this).parents('.organization-list'); |
<!-- just copy-paste this snippet, paste it in your own file, edit it, then run it in your browser. Then, inspect the generated code and copy the generated html. No more copy-pasting code into your a tags and missing a few cos you're (i'm) a clutz. ezpz --> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | |
</head> |
Jekyll is a gem based on Ruby and Rails. It's a framework-type thing that people use to create blogs quickly. Jekyll is great because it's simple, but powerful. Devs love it because working with and managing content using Jekyll is a lot like coding, so it's an environment we're all familiar with. Jekyll allows you to have a static site up and running in literal minutes.
Initialize a github repo using this format: your-username.github.com. For me, it'll look like this: trisssss.github.io.
In your local computer, install the Jekyll Gem (make sure you have Ruby and Rails installed beforehand) by typing: gem install Jekyll
in your shell.
After the gem has been installed, type jekyll new your-folder-name
into the shell. You can replace "your-folder-name" with anything you want.
Navigate into your new folder using cd
. For example, I'll type cd your-folder-name
since "your-folder-name" was what I created by new Jekyll folder with.