init repo

This commit is contained in:
Brandon Rosage 2019-01-24 18:39:31 -06:00
parent a71581361b
commit 95e19861f5
6 changed files with 109 additions and 0 deletions

3
Gemfile Normal file
View file

@ -0,0 +1,3 @@
gem 'jekyll-jsonball'
gem 'jekyll-watch'
source 'https://rubygems.org'

25
Gemfile.lock Normal file
View file

@ -0,0 +1,25 @@
GEM
remote: https://rubygems.org/
specs:
ffi (1.10.0)
jekyll-jsonball (0.0.1)
jekyll-watch (2.1.2)
listen (~> 3.0)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
rb-fsevent (0.10.3)
rb-inotify (0.10.0)
ffi (~> 1.0)
ruby_dep (1.5.0)
PLATFORMS
ruby
DEPENDENCIES
jekyll-jsonball
jekyll-watch
BUNDLED WITH
2.0.1

12
_config.yml Normal file
View file

@ -0,0 +1,12 @@
title: brandonrosage
description: description XYZ
plugins:
- jekyll-jsonball
sass:
sass_dir: node_modules
jekyll_get:
data: user
json: 'https://api.github.com/users/brandonrosage'

1
_site/README.md Normal file
View file

@ -0,0 +1 @@
# profile-generator

34
_site/index.html Normal file
View file

@ -0,0 +1,34 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Home</title>
</head>
<body>
{{ site.title }}
{% jsonball feed from url https://api.github.com/users/brandonrosage %}
{% for user in feed %}
<h1 style="color:red;">{{ user.name }}</h1>
{% endfor %}
<header></header>
<script>
var body = document.querySelector('body');
var requestURL = 'https://api.github.com/users/brandonrosage';
var request = new XMLHttpRequest();
request.open('GET', requestURL);
request.responseType = 'json';
request.send();
request.onload = function() {
populateBody(request.response);
}
function populateBody(jsonObj) {
var myH1 = document.createElement('h1');
myH1.textContent = jsonObj['name'];
body.appendChild(myH1);
}
</script>
</body>
</html>

34
index.html Normal file
View file

@ -0,0 +1,34 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Home</title>
</head>
<body>
{{ site.title }}
{% jsonball feed from url https://api.github.com/users/brandonrosage %}
{% for user in feed %}
<h1 style="color:red;">{{ user.name }}</h1>
{% endfor %}
<header></header>
<script>
var body = document.querySelector('body');
var requestURL = 'https://api.github.com/users/brandonrosage';
var request = new XMLHttpRequest();
request.open('GET', requestURL);
request.responseType = 'json';
request.send();
request.onload = function() {
populateBody(request.response);
}
function populateBody(jsonObj) {
var myH1 = document.createElement('h1');
myH1.textContent = jsonObj['name'];
body.appendChild(myH1);
}
</script>
</body>
</html>