layout: post title: "Draft Template" date: 2015-03-17 19:34:21 categories:
- Tutorial tags:
- Jekyll summary: Put details that will be in more tag here.
| # Site settings | |
| title: Jennifer Tesolin | |
| description: "This is Jennifer Tesolin's personal web site. Located on this site are tutorials and tips for web developers." | |
| baseurl: "" | |
| url: "https://sea-lion-app-g2mm7.ondigitalocean.app/" | |
| timezone : "America/Toronto" | |
| plugins: [jekyll-paginate] | |
| # Build Settings | |
| include: [dist, imgs] |
| # Browsers that we support | |
| last 2 version |
| var displyResult = function(blogTitle,blogCategory,blogTags,blogLink,blogDate,blogSummary) { | |
| var results = '<article class="posts blogpage">'+ | |
| '<h2 class="entry-title">'+ | |
| '<a class="post-link" href="'+blogLink+'">'+blogTitle+'</a>'+ | |
| '</h2>'+ | |
| '<div class="entry-summary">'+ | |
| '<p>'+ | |
| blogSummary + | |
| '<a href="'+blogLink+'">Continued</a>'+ |
| module.exports = function(grunt) { | |
| 'use strict'; | |
| // Project configuration. | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON('package.json'), | |
| sass: { | |
| dist: { | |
| options: { |
layout: post title: "Draft Template" date: 2015-03-17 19:34:21 categories:
| # npm | |
| node_modules | |
| npm-debug.log | |
| tmp | |
| # sass | |
| .sass-cache/ | |
| *.css.map | |
| #ruby |
| [config] | |
| project = _site |
| <?xml version="1.0"?> | |
| <configuration> | |
| <system.webServer> | |
| <staticContent> | |
| <mimeMap fileExtension=".json" mimeType="application/json" /> | |
| <mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" /> | |
| <mimeMap fileExtension=".otf" mimeType="font/otf" /> | |
| <mimeMap fileExtension=".ttf" mimeType="application/octet-stream" /> | |
| <mimeMap fileExtension=".svg" mimeType="image/svg+xml" /> | |
| <mimeMap fileExtension=".woff" mimeType="application/font-woff" /> |
| //declare vars | |
| var blogLink = 'https://query.yahooapis.com/v1/public/yql?q=' + encodeURIComponent('select title,link,pubDate,category from rss where url ="http://rss.cbc.ca/lineup/technology.xml"')+'&format=json&diagnostics=false&callback=?'; | |
| //end variable declare | |
| jQuery.noConflict(); | |
| jQuery(document).ready(function($){ | |
| //Call blog feed | |
| $.getJSON(blogLink, function(data){ | |
| $.each(data.query.results.item, function(index, item){ | |
| $('.blog-post-container' ).append('<div class="row">'); | |
| $('.blog-post-container' ).append('<div class="col-md-12">'); |
| /*start search function;*/ | |
| var getSearchResults = function(url) { | |
| var count = 0; | |
| var searchedFor = getParameterByName('searchbox'); /*get the query parameter from search box*/ | |
| var searchedForTest = searchedFor.toLowerCase(); | |
| $('#searchbox').val(searchedFor); /*update input field with what was searched for*/ | |
| $.getJSON('/search.json', function(data) { | |
| $('div#results').append('<section class="col-xs-12 col-sm-6 col-md-12">'); |