This file contains hidden or 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
| <!-- | |
| This code displays the dropdown for the options to sort from. | |
| Adapted from https://gist.github.com/carolineschnapp/11352987 | |
| It will be inserted on every collections page. Probably in a snippet called something like collection-sorting.liquid | |
| --> | |
| <div class="form-horizontal"> | |
| <label for="SortBy" class="uppercase">{{ 'collections.sorting.title' | t }} </label> | |
| <select name="SortBy" id="SortBy"> |
This file contains hidden or 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
| (function() { | |
| "use strict"; | |
| var fs = require('fs'); | |
| var firebase = require("firebase"); | |
| var ref = new firebase("https://xyz.firebaseio.com/baptiste"); | |
| var request = require('request').defaults({ encoding: null }); | |
| // Grab all teacher data | |
| var obj = JSON.parse(fs.readFileSync('teachers-part1.json', 'utf8')); |
This file contains hidden or 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
| <section class="slider"> | |
| <img src="andrew-and-artist.jpg" onerror='this.src="./andrew-and-artist.jpg"' /> | |
| <nav class="slider-nav"> | |
| <ul> | |
| <li class="arrow"> | |
| <a href="#"><i class="fa fa-long-arrow-left"></i></a> | |
| </li> | |
| <li class="arrow"> | |
| <a href="#"><i class="fa fa-long-arrow-right"></i></a> | |
| </li> |
This file contains hidden or 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
| <ul id="artists" class="medium-block-grid-4"> | |
| {% for artist in blog.articles %} | |
| {% capture artist-name %}{{ artist.title | downcase }}{% endcapture %} | |
| <li class="{{artist-name}}"> | |
| <a href="{{ artist.url }}"> | |
| <div class="artist-excerpt">{{ artist.excerpt }}</div> | |
| <div class="artist-name">{{ artist.title }}</div> | |
| <div class="country">{{ artist.metafields.global.country }}</div> | |
| </a> | |
| </li> |
This file contains hidden or 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
| <!-- Recent articles (using Zurb's Foundation framework) --> | |
| <section class="row"> | |
| <h3 class="ag-section-heading"><i class="fa fa-pencil"></i> Recent articles</h3> | |
| <ul class="medium-block-grid-3"> | |
| <li ng-repeat="wpArticle in ag.wpFeed"> | |
| <h4>{{wpArticle.title}}</h4> | |
| <p>{{wpArticle.contentSnippet}} <a ng-href="{{wpArticle.link}}">read more</a></p> | |
| </li> |
This file contains hidden or 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
| (function() { | |
| "use strict"; | |
| var agApp = angular.module('agApp'); | |
| agApp.controller('MainCtrl', function(WordPressFeed) { | |
| var vm = this; |
This file contains hidden or 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
| (function() { | |
| "use strict"; | |
| var agApp = angular.module('agApp'); | |
| agApp.factory('WordPressFeed', function($http) { | |
| function getLatestPosts(wpWebsite, numPosts, callback) { |
This file contains hidden or 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 autoprefix = require('gulp-autoprefixer'); | |
| gulp.task('scss', function() { | |
| return gulp.src(appFiles.scss) | |
| .pipe(scss({ | |
| errLogToConsole: true | |
| })) | |
| .pipe(autoprefix()) | |
| .pipe(minifyCSS()) |
This file contains hidden or 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
| { | |
| "name": "andrew-golightly", | |
| "version": "0.1.3", | |
| "author": "Andrew Golightly <[email protected]>", | |
| "description": "Andrew Golightly's landingpage", | |
| "homepage": "http://www.andrewgolightly.com", | |
| "repository": { | |
| "type": "git", | |
| "url": "git://github.com/magician11/ag-landingpage.git" | |
| }, |