Skip to content

Commit

Permalink
Clone from homerhanumat/homerhanumat.github.io
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingClubUC3M authored Oct 4, 2016
1 parent 19a5a52 commit 33658c0
Show file tree
Hide file tree
Showing 53 changed files with 4,372 additions and 2 deletions.
10 changes: 10 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
layout: default
title: "404: Page not found"
permalink: 404.html
---

<div class="page">
<h1 class="page-title">404: Page not found</h1>
<p class="lead">Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. <a href="{{ site.baseurl }}">Head back home</a> to try finding it again.</p>
</div>
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
statistics.rainandrhino.org
9 changes: 9 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Released under MIT License

Copyright (c) 2015 Homer White.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30 changes: 30 additions & 0 deletions R.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ site.title | xml_escape }}</title>
<description>{{ site.description | xml_escape }}</description>
<link>{{ site.url }}/</link>
<atom:link href="{{ "/feed.xml" | prepend: site.url }}" rel="self" type="application/rss+xml" />
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
<generator>Jekyll v{{ jekyll.version }}</generator>
{% for post in site.categories.R limit:10 %}
<item>
<title>{{ post.title | xml_escape }}</title>
<description>{{ post.content | xml_escape }}</description>
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<link>{{ post.url | prepend: site.url }}</link>
<guid isPermaLink="true">{{ post.url | prepend: site.url }}</guid>
{% for tag in post.tags %}
<category>{{ tag | xml_escape }}</category>
{% endfor %}
{% for cat in post.categories %}
<category>{{ cat | xml_escape }}</category>
{% endfor %}
</item>
{% endfor %}
</channel>
</rss>
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,20 @@
# codingclubuc3m.github.io
Website for the Coding club UC3M
This is my little blog, a fork from Yihui's repo.

Now Yihui:

This is a minimal example of a Jekyll-based website using **knitr** and R
Markdown. The interesting bit of this repo is that you can actually serve the
Jekyll website locally with R, and R Markdown posts can be compiled
automatically, with the web pages automatically refreshed as well.

After you are satisfied with the local preview, you can either just push the
Markdown blog posts to your Github repo (e.g. the `gh-pages` branch), and let
Github generate the website for you, or host the HTML files generated under the
`_site/` directory on your own server.

The original website was created from `jekyll new .` under the root directory,
which was part of the [official Jekyll repo](https://github.com/jekyll/jekyll).
The additional code (R, Makefile) in this repo is under the MIT License, and the
[blog post](http://yihui.name/knitr-jekyll/2014/09/jekyll-with-knitr.html) I
wrote is under the [CC-BY 4.0](http://creativecommons.org/licenses/by/4.0/)
International License.
38 changes: 38 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Site settings
title: R Contour
email: homerhanumatATgmailDOTcom
description: > # this means to ignore newlines until "baseurl:"
A blog devoted mostly to the the teaching of undergraduate-level statstics
and data analysis with R, along with occasional technical notes on R-related
tools.
url: "https://homerhanumat.github.io" # the base hostname & protocol for your site
github_username: homerhanumat
permalink: /:year/:month/:day/:title.html
# highlighter: rouge (on my Mac, need to set this to rouge or flas with Jekyll 3.0)
author: Homer White

baseurl: "/" # the sub-path of your proejct site, e.g. /myProject/
# or "/" for user site

# limit posts on Home page to this number:
homepostlimit: 4

# Disqus comments:
disqus: true
shortname: homerhanumatgithubio

# Social Media
twitter: true # add a twitter button to each post
facebook: true # add a facebook share button to each post

# Build settings

# rendering engine
markdown: kramdown

author:
name: 'Homer White'
url: https://statistics.rainandrhino.org

github:
repo: https://github.com/homerhanumat/homerhanumat.github.io
11 changes: 11 additions & 0 deletions _includes/disqus_comments.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{% if page.comments %}
<div id="disqus_thread"></div>

<script>{{ raw }}(function() {
var d = document, s = d.createElement('script');
s.src = '//{{ endraw }}{{ site.shortname }}{{ raw }}.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();{{ endraw }}</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
{% endif %}
10 changes: 10 additions & 0 deletions _includes/facebook_button.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

<div class="fb-share-button" data-href="{{ site.url }}{{ site.baseurlstrip }}{{ post.url }}" data-layout="button_count"></div>
49 changes: 49 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<head>
<link href="http://gmpg.org/xfn/11" rel="profile">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="content-type" content="text/html; charset=utf-8">

<!-- Enable responsiveness on mobile devices-->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">

<title>
{% if page.title == "Home" %}
{{ site.title }} &middot; {{ site.tagline }}
{% else %}
{{ page.title }} &middot; {{ site.title }}
{% endif %}
</title>

<!-- CSS -->
<link rel="stylesheet" href="{{ site.baseurl }}public/css/poole.css">
<link rel="stylesheet" href="{{ site.baseurl }}public/css/syntax.css">
<link rel="stylesheet" href="{{ site.baseurl }}public/css/hyde.css">
<link rel="stylesheet" href="{{ site.baseurl }}public/css/custom.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface">

<!-- Icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ site.baseurl }}public/apple-touch-icon-144-precomposed.png">
<link rel="shortcut icon" href="{{ site.baseurl }}public/favicon.ico">

<!-- RSS -->
<link rel="alternate" type="application/rss+xml" title="RSS" href="/atom.xml">

<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-146052-15', 'getpoole.com');
ga('send', 'pageview');
</script>

<!-- Mathjax -->
<script type="text/javascript"
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
{% if site.disqus %}
<!--Disqus comment counts-->
<script id="dsq-count-scr" src="//{{ site.shortname }}.disqus.com/count.js" async></script>
{% endif %}
</head>
30 changes: 30 additions & 0 deletions _includes/sidebar.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<div class="sidebar">
<div class="container sidebar-sticky">
<div class="sidebar-about">
<h1>
<a href="{{ site.baseurl }}">
{{ site.title }}
</a>
</h1>
<p class="lead">{{ site.description }}</p>
</div>

<nav class="sidebar-nav">
<a class="sidebar-nav-item{% if page.url == '/index.html' %} active{% endif %}" href="{{ site.baseurl }}">Home</a>

{% comment %}
The code below dynamically generates a sidebar nav of pages with
`layout: page` in the front-matter. See readme for usage.
{% endcomment %}
{% assign pages_list = site.pages %}
{% for node in pages_list %}
{% if node.title != null %}
{% if node.layout == "page" %}
<a class="sidebar-nav-item{% if page.url == node.url %} active{% endif %}" href="{{ site.baseurl }}{{ node.url | remove_first: '/'}}.html">{{ node.title }}</a>
{% endif %}
{% endif %}
{% endfor %}
<a class="sidebar-nav-item" href="{{ site.github.repo }}">GitHub project</a>
</nav>
</div>
</div>
2 changes: 2 additions & 0 deletions _includes/twitter_button.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<a href="https://twitter.com/share" class="twitter-share-button"{count}>Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
15 changes: 15 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">

{% include head.html %}

<body class="theme-base-0b">

{% include sidebar.html %}

<div class="content container">
{{ content }}
</div>

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

<div class="page">
<h1 class="page-title">{{ page.title }}</h1>
{{ content }}
</div>
37 changes: 37 additions & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
layout: default
---

<div class="post">
<h1 class="post-title">{{ page.title }}</h1>
<span class="post-date">{{ page.date | date_to_string }}</span>
{{ content }}
</div>

<div class="related">
<h2>Related Posts</h2>
<ul class="related-posts">
{% for post in site.related_posts limit:3 %}
<li>
<h3>
<a href="{{ post.url }}">
{{ post.title }}
<small>{{ post.date | date_to_string }}</small>
</a>
</h3>
</li>
{% endfor %}
</ul>
</div>

{% if site.twitter %}
{% include twitter_button.html %}
{% endif %}

{% if site.facebook %}
{% include facebook_button.html %}
{% endif %}

{% if site.disqus %}
{% include disqus_comments.html %}
{% endif %}
Loading

0 comments on commit 33658c0

Please sign in to comment.