dictionary,leaflet,jekyll,static-site
Correct code in _includes/head.html is : <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.css"> not <script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.css"></script> and <style type="text/css"> #map { width:400px; height:550px; background-color: red; } </style> not <style type="text/css"> #map { width:400px%; height:550px; background-color: red; } </style> ...
Found a solution using gulp-foreach and gulp-rename: gulp.task('extensionless-create', ['fileinclude'], function () { return gulp.src(['./.tmp/*.html', '!./.tmp/index.html']) .pipe($.foreach(function (stream, file) { return stream .pipe($.rename('index.html')) .pipe(gulp.dest('./.tmp/' + file.relative.substring(file.relative.lastIndexOf('/') + 1, file.relative.lastIndexOf('.')) + '/')); })); }); ...
I believe this is a bug in Jekyll, specifically Issue #2334, which looks like it's been fixed within the last 24 hours, but may not have made it out into the gem distribution yet. Given that Jekyll 2 has only just been released, it might be a good idea to...
gulp-html-extend solved my problem. It has some disadvantages but it works. Here is very good sample of using gulp-html-extend and other plugins like gulp-usemin (note: they use patched version of usemin)
I you use multiple blogs, the "blog" property of the middleman application is an array and you should use blog name to specify which blog you want to get. UPDATE: So if you activate blogs: my_blogs = ["blog1", "blog2", "blog3"] my_blogs.each do |my_blog| activate :blog do |blog| blog.name = my_blog...
If all you want is to generate a .json structure and add it to a file with Gulp, you can do this in one of several ways. The first two use pure Gulp techniques: You can write a stream plugin using through or through2, which will basically have to build...
I had the same error, but here was my fix: use the “---” YAML front-matter only on the /css/*.scss files (e.g. your import.scss), but not on the partials. The error seems to be referring to front-matters in the partials (/_scss) files. Once I took though out, the Sass started compiling...
javascript,jquery,shopping-cart,static-site
Check this fiddle new fiddle Use the value of each option to determine if it has already been added to the table: $( "#addBtn" ).click(function() { var item = $("#orderMenu option:selected").text(); var item_val = $("#orderMenu").val(); var qty = $("#orderQty option:selected").text(); var newRowContent = "<tr><td class='qty'>" + qty + "</td><td data-val='"+item_val+"'>"...
No you cannot use variables in a _config file. You can find more informations here : Change site.url to localhost during jekyll local development...