Browse Source

Using Jekyll to generate page content

pull/14/head
David DeSandro 14 years ago
parent
commit
9e117a29b0
  1. 1
      .gitignore
  2. 19
      _config.yml
  3. 39
      _layouts/default.html
  4. 6
      trial.html

1
.gitignore vendored

@ -0,0 +1 @@
_site

19
_config.yml

@ -0,0 +1,19 @@
site_name: Molequul
elements: [ hygdrogen, oxygen ]
elements2:
- name: hydrogen
number: 1
- name: helium
number: 2
items:
- part_no: A4786
descrip: Water Bucket (Filled)
price: 1.47
quantity: 4
- part_no: E1628
descrip: High Heeled "Ruby" Slippers
price: 100.27
quantity: 1

39
_layouts/default.html

@ -0,0 +1,39 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>default</title>
<style media="screen">
</style>
</head>
<body>
<h1>default</h1>
<p>{{ site.site_name }}</p>
{% for element in site.elements %}
<li>{{ element }}</li>
{% endfor %}
<ul>
{% for element in site.elements2 %}
<li>{{ element.name }} {{ element.number }}</li>
{% endfor %}
</ul>
<ul>
{% for item in site.items %}
<li>{{ item.part_no }}</li>
{% endfor %}
</ul>
<p>parking tickets</p>
</body>
</html>

6
trial.html

@ -0,0 +1,6 @@
---
layout: default
---
my site
Loading…
Cancel
Save