Skip to content

Commit

Permalink
importing Eric Jones' blog code and modifying it to suit us
Browse files Browse the repository at this point in the history
  • Loading branch information
kreczko committed Nov 15, 2013
1 parent 0019597 commit c175265
Show file tree
Hide file tree
Showing 166 changed files with 46,309 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>HEP-Puppet.github.io</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
</projectDescription>
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## HEP-Puppet.Github.io
Page in development

## Acknowledgements

Many thanks to Eric Jones (https://github.com/erjjones) for sharing his GitHub user page with everyone.

26 changes: 26 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
require 'rubygems'
require 'rake'
require 'fileutils'

desc "Draft a new post"
task :new do
puts "What should we call this post for now?"
name = STDIN.gets.chomp
FileUtils.touch("drafts/#{name}.md")

open("drafts/#{name}.md", 'a') do |f|
f.puts "---"
f.puts "layout: post"
f.puts "title: \"DRAFT: #{name}\""
f.puts "---"
end
end


desc "Startup Jekyll"
task :start do
sh "jekyll serve"
end

task :default => :start

4 changes: 4 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
auto: true
markdown: rdiscount
pygments: true
permalink: /blog/:title
11 changes: 11 additions & 0 deletions _includes/aboutme.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<h2>Hello. We are HEP Puppet</h2>
<p><img src="http://www.gravatar.com/avatar/0bfcb9b7a398b47b6ef56527c79f78e0.png" alt="HEP Puppet" title="Follow us on twittername" class="img-rounded floatLeft" />
Who are we...</p>
<p><iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=hep-puppet&repo=hep-puppet.github.com&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="80px" height="20px"></iframe>&nbsp;<iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=erjjones&repo=erjjones.github.com&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="98px" height="20px"></iframe></p>
<p><a href="https://twitter.com/heppuppet" class="twitter-follow-button" data-link-color="#0069D6" data-show-count="true">Follow @heppuppet</a></p>
<p>
<ul class="buttons unstyled">
<li><a href="http://github.com/HEP-Puppet" rel="me" class="social github" title="Go to github.com/HEP-Puppet" target="_blank"></a></li>
<li><a href="http://www.twitter.com/heppuppet" rel="me" class="social twitter" title="Go to twitter.com/heppuppet" target="_blank"></a></li>
</ul>
</p>
6 changes: 6 additions & 0 deletions _includes/archive.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<h2>Past Posts</h2>
<ul>
{% for post in site.posts %}
<li>{{ post.date | date: "%Y - %B" }} <a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
20 changes: 20 additions & 0 deletions _includes/first_post.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!--{% assign first_post = site.posts.first %}
<div class="container">
<div class="marketing">
<div class="content">
<div class="row">
<div class="span10 columns">{{ first_post.date | date: "%B %e, %Y" }}</div>
</div>
<div class="row">
<div class="span4 columns">
<a href="{{ first_post.url }}"><img border="0" width="400" height="250" src="/img/posts/{{ first_post.image }}" /></a>
</div>
<div class="span7 columns">
<h1><a href="{{ first_post.url }}">{{ first_post.title }}</a></h1>
<i>{{ first_post.summary }}</i>
<p><h5><small>Category: {{ first_post.category }} . Tags: {% for tag in first_post.tags %} <a href="/tags/{{ tag }}" rel="tooltip" title="View posts tagged with &quot;{{ tag }}&quot;">{{ tag }}</a> {% if forloop.last != true %} {% endif %} {% endfor %} . <a href="http://erjjones.github.com{{first_post.url }}#disqus_thread" data-disqus-identifier="{{ first_post.url }}"></a></small></h5></p>
</div>
</div>
</div>
</div>
</div>-->
7 changes: 7 additions & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<footer class="footer">
<div class="container">
<p class="pull-right">{% if page.previous.url %} <a href="{{page.previous.url}}" title="Previous Post: {{page.previous.title}}">&laquo; Previous Blog Post</a> {% endif %} | <a href="#">Back to top</a> | {% if page.next.url %} <a href="{{page.next.url}}" title="Next Post: {{page.next.title}}">Next Blog Post &raquo; </a> {% endif %} </p>
<p>Page last generated on {{ site.time | date: "%B %e, %Y" }}</p>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>
</footer>
32 changes: 32 additions & 0 deletions _includes/navigation.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="http://HEP-Puppet.github.io">High Energy Physics (HEP) Puppet</a>
<div class="nav-collapse">
<ul class="nav">
<li class="">
<a href="http://HEP-Puppet.github.io"><i class="icon-home"></i> Home</a>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-list"></i> Projects <b class="caret"></b></a>
<ul class="dropdown-menu">
<li class=""><a href="https://github.com/HEP-Puppet/puppet-arc_ce" rel="tooltip" title="Go to puppet-arc_ce on GitHub" target="_blank">ARC CE Puppet module</a></li>
<li class=""><a href="https://github.com/HEP-Puppet/puppet-htcondor" rel="tooltip" title="Go to puppet-htcondor">HTCondor Puppet module</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-list"></i> Examples <b class="caret"></b></a>
<ul class="dropdown-menu">
<li class=""><a href="http://HEP-Puppet.github.io/example_page.html" rel="tooltip" title="Go to the example page" target="_blank">Example page for testing</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</div>
32 changes: 32 additions & 0 deletions _includes/navigation.html~
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="http://HEP-Puppet.github.io">High Energy Physics (HEP) Puppet</a>
<div class="nav-collapse">
<ul class="nav">
<li class="">
<a href="http://HEP-Puppet.github.io"><i class="icon-home"></i> Home</a>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-list"></i> Projects <b class="caret"></b></a>
<ul class="dropdown-menu">
<li class=""><a href="https://github.com/HEP-Puppet/puppet-arc_ce" rel="tooltip" title="Go to puppet-arc_ce on GitHub" target="_blank">ARC CE Puppet module</a></li>
<li class=""><a href="https://github.com/HEP-Puppet/puppet-htcondor" rel="tooltip" title="Go to puppet-htcondor">HTCondor Puppet module</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-list"></i> Examples <b class="caret"></b></a>
<ul class="dropdown-menu">
<li class=""><a href="http://HEP-Puppet.github.io/example_page.html" rel="tooltip" title="Go to the example page" target="_blank">Example page for testing</a></li> $
</ul>
</li>
</ul>
</div>
</div>
</div>
</div>
36 changes: 36 additions & 0 deletions _includes/post_header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'ericjones'; // required: replace example with your forum shortname
var disqus_identifier = '{{ page.url }}';
var disqus_url = 'http://erjjones.github.com{{ page.url }}';

/* * * DON'T EDIT BELOW THIS LINE * * */
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>

<div class="row">
<div class="span9 column">
<p><h1>{{ page.title }}</h1></p>
</div>
</div>
<div class="row">
<div class="span3 column">
<h5><strong>{{ page.date | date: "%B %e, %Y" }} <small>. {{ page.category }} . <a href="http://HEP-Puppet.github.io{{ page.url }}#disqus_thread" data-disqus-identifier="{{ page.url }}">Comments</a></small></strong>
<br/><small>Tags: {% for tag in page.tags %} <a href="/tags/{{ tag }}" title="View posts tagged with &quot;{{ tag }}&quot;"><u>{{ tag }}</u></a> {% if forloop.last != true %} {% endif %} {% endfor %} </small><br/><br/>
<a href="https://twitter.com/share" class="twitter-share-button" data-via="heppuppet">Tweet</a> <g:plusone size="medium"></g:plusone></h5>
</div>
<div class="span6 column">
<p class="pull-right">{% if page.previous.url %} <a href="{{page.previous.url}}" title="Previous Post: {{page.previous.title}}"><i class="icon-chevron-left"></i></a> {% endif %} {% if page.next.url %} <a href="{{page.next.url}}" title="Next Post: {{page.next.title}}"><i class="icon-chevron-right"></i></a> {% endif %} </p>
</div>
</div>
<div class="row">
<div class="span9 column">
<hr>
</div>
</div>

6 changes: 6 additions & 0 deletions _includes/tag_sidebar.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<h2>Tags</h2>
<ul>
{% for tag in site.tags %}
<li><a href="/tags/{{ tag[0] }}">{{ tag[0] }}</a></li>
{% endfor %}
</ul>
57 changes: 57 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<!DOCTYPE html>
<html class="fuelux" lang="en">
<head>
<meta charset="utf-8">
<title>{{ page.title }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link href="http://fuelcdn.com/fuelux/2.2/css/fuelux.css" rel="stylesheet" />
<link href="http://fuelcdn.com/fuelux/2.2/css/fuelux-responsive.css" rel="stylesheet" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js" type="text/javascript"></script>
<script src="http://fuelcdn.com/fuelux/2.2/loader.min.js" type="text/javascript"></script>
<link href="/css/docs.css" rel="stylesheet">
<link href="/js/google-code-prettify/prettify.css" rel="stylesheet">
<link rel="shortcut icon" href="/favicon.ico">
</head>
<body data-spy="scroll" data-target=".subnav" data-offset="50">
{% include navigation.html %}
<div class="container">
<div class="marketing">
{{ content }}
</div>
</div>
{% include footer.html %}
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>

<script src="/js/custom.js" type="text/javascript"></script>

<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'ericjones'; // required: replace example with your forum shortname

/* * * DON'T EDIT BELOW THIS LINE * * */
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>

<!-- Google Analytics -->
<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-29830549-1']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

</script>
</body>
</html>
80 changes: 80 additions & 0 deletions _layouts/layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<!DOCTYPE html>
<html class="fuelux" lang="en">
<head>
<meta charset="utf-8">
<title>{{ page.title }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">

<!-- Le styles -->
<link href="http://fuelcdn.com/fuelux/2.2/css/fuelux.css" rel="stylesheet" />
<link href="http://fuelcdn.com/fuelux/2.2/css/fuelux-responsive.css" rel="stylesheet" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js" type="text/javascript"></script>
<script src="http://fuelcdn.com/fuelux/2.2/loader.min.js" type="text/javascript"></script>
<link href="/css/docs.css" rel="stylesheet">
<link href="/js/google-code-prettify/prettify.css" rel="stylesheet">

<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

<!-- Le fav and touch icons -->
<link rel="shortcut icon" href="/favicon.ico">
</head>
<body data-spy="scroll" data-target=".subnav" data-offset="50">
{% include navigation.html %}

<div class="container">
<div class="marketing">
<div class="content">
<div class="row">
<div class="span7 columns">
{{ content }}
</div>
<div class="span4 columns">
{% include aboutme.html %}
</div>
</div>
</div>
</div>
</div>

{% include footer.html %}

<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
<script src="/js/custom.js" type="text/javascript"></script>

<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'ericjones'; // required: replace example with your forum shortname

/* * * DON'T EDIT BELOW THIS LINE * * */
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>

<!-- Google Analytics -->
<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-29830549-1']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

</script>
</body>
</html>
9 changes: 9 additions & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
layout: default
---

<div class="content">
{% include post_header.html %}
{{ content }}
</div>

Loading

0 comments on commit c175265

Please sign in to comment.