Skip to content

Instantly share code, notes, and snippets.

View Ramona2020's full-sized avatar

Ramona Ramona2020

View GitHub Profile
@Ramona2020
Ramona2020 / Code Block 10
Created April 3, 2015 14:38
Code for blog index.html
---
layout: default
title: GitHub Pages Blog
---
<h1>{{ page.title }}</h1>
<ul class="posts">
{% for post in site.posts %}
<li><span>{{ post.date | date_to_string }}</span> &raquo; <a href="{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></li>
{% endfor %}
@Ramona2020
Ramona2020 / Code Block 9
Created April 3, 2015 14:36
Code for blog post
---
layout: post
title: My First Post
date: 2015-04-03
---
Write something about your experience in this workshop.
@Ramona2020
Ramona2020 / Code Block 8
Created April 3, 2015 14:34
Code for post.html
---
layout: default
---
<h1>{{ page.title }}</h1>
<p class="meta">{{ page.date | date_to_string }}</p>
<div class="post">
{{ content }}
</div>
@Ramona2020
Ramona2020 / Code Block 7
Created April 3, 2015 14:32
Code for revised index.html
---
layout: default
title: Working With GitHub Pages
---
<div class="container">
<div class="blurb">
<h1>Working With GitHub Pages</h1>
<p>During today's session, we will learn how to build a personal website using GitHub Pages. <a href="/about">Learn about Git, GitHub, and GitHub Pages</a></p>
</div><!-- /.blurb -->
@Ramona2020
Ramona2020 / Code Block 6
Created April 3, 2015 14:29
Code for default.html file
<!DOCTYPE html>
<html>
<head>
<title>{{ page.title }}</title>
<!-- link to main stylesheet -->
<link rel="stylesheet" type="text/css" href="/css/main.css">
</head>
<body>
<nav>
<ul>
@Ramona2020
Ramona2020 / Code Block 5
Created April 3, 2015 14:28
Code for _config.yml file
name: Working with GitHub Pages
markdown: redcarpet
pygments: true
authors:
Ramona:
name: Ramona Romero
display_name: Ramona
email: [email protected]
twitter: Ramona2020
github: Ramona2020
@Ramona2020
Ramona2020 / Code Block 4
Created April 3, 2015 14:26
Code for .gitignore file
_site/
@Ramona2020
Ramona2020 / Code Block 3
Created April 3, 2015 14:23
Code to insert css into index.html
<link rel="stylesheet" type="text/css" href="/css/main.css">
@Ramona2020
Ramona2020 / Code Block 2
Created April 3, 2015 14:21
Code for main.css
body {
margin: 60px auto;
width: 70%;
}
nav ul, footer ul {
font-family:'Helvetica', 'Arial', 'Sans-Serif';
padding: 0px;
list-style: none;
font-weight: bold;
}
@Ramona2020
Ramona2020 / Code Block 1
Created April 3, 2015 14:16
Code for index.html
<!DOCTYPE html>
<html>
<head>
<title>Working With GitHub Pages</title>
</head>
<body>
<nav>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/about">About</a></li>