View bootstrapExample-Insert_other_headers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
meta:vp+link:favicon+meta:compat+link:css{css/bootstrap.min.css}+link:css |
View JekyllSeachjQueryFragment1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*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">'); |
View JekyllSearchForm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form role="search" method="get" class="navbar-form navbar-right form-inline" action="/search.html"> | |
<div class="form-group" id="searchdiv"> | |
<input type="search" id="searchbox" name="searchbox" class="form-control search" placeholder="Search ... "> | |
<label class="hide">Search for:</label> | |
</div> | |
<button type="submit" class="btn btn-success search"> <i class="fa fa-search"></i></button> | |
</form> |
View JekyllSeachjQueryFragment2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>'+ |
View search.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
layout: default | |
title: Search Results | |
--- | |
<h1 id="searchHeader">Search results</h1> | |
<noscript><p>Sorry, the current site search is form Javascript. Please try this link to search from Google.</p></noscript> | |
View searchjson
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
--- | |
[ | |
{% for post in site.posts %} | |
{ | |
"title" : "{{ post.title }}", | |
"href" : "{{ post.url }}", | |
"summary" : "{{ post.content | strip_html | strip_newlines | truncatewords: 30 | escape }}", | |
"category" : [{% for category in post.categories %}"{{ category }}",{% endfor %} null], | |
"tags" : [{% for tag in post.tags %}"{{ tag }}",{% endfor %} null], |
View basic-yql.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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">'); |
View web.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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" /> |
View .deployment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[config] | |
project = _site |
OlderNewer