How to implement a custom search for Hugo usig Gruntjs and Lunrjs.
Install the following tools:
| /* If you've ever had the need to link directly to an open modal window with Bootstrap, here's a quick and easy way to do it: | |
| Make sure your modal has an id: | |
| <div class="modal" id="myModal" ... > | |
| Then stick this bit of Javascript at at the end of your document: | |
| */ | |
| $(document).ready(function() { |
| (function($){ | |
| $.fn.scrollFixed = function(params){ | |
| params = $.extend( {appearAfterDiv: 0, hideBeforeDiv: 0}, params); | |
| var element = $(this); | |
| if(params.appearAfterDiv) | |
| var distanceTop = element.offset().top + $(params.appearAfterDiv).outerHeight(true) + element.outerHeight(true); | |
| else | |
| var distanceTop = element.offset().top; | |
| /* | |
| Gulpfile.js file for the tutorial: | |
| Using Gulp, SASS and Browser-Sync for your front end web development - DESIGNfromWITHIN | |
| http://designfromwithin.com/blog/gulp-sass-browser-sync-front-end-dev | |
| Steps: | |
| 1. Install gulp globally: | |
| npm install --global gulp |
| @mixin breakpoint($minWidth: 0, $maxWidth: 0, $minHeight: 0, $maxHeight: 0) { | |
| $type: type-of($minWidth); | |
| @if $type == string { | |
| $class: $minWidth; | |
| @if $class == xs { | |
| @media (max-width: 767px) { @content; } | |
| } | |
First we'll update your local master branch. Go to your local project and check out the branch you want to merge into (your local master branch)
$ git checkout masterFetch the remote, bringing the branches and their commits from the remote repository.
You can use the -p, --prune option to delete any remote-tracking references that no longer exist in the remote. Commits to master will be stored in a local branch, remotes/origin/master.
| // No Security | |
| { | |
| "rules": { | |
| ".read": true, | |
| ".write": true | |
| } | |
| } |
These are my must-have macros for running games online. I make full use of the compendium, which gives these macros access to common actions and rolls, saving me time.
Remember to add /w gm or @{selected|wtype} to hide sensitive info from your players. WTYPE is an attribute used in the 5th Edition OGL character sheet, a prerequisite for most of these.
Here's what my bar looks like.