Permalink
Browse files

Adding content

  • Loading branch information...
Sam Jacoby
Sam Jacoby committed Aug 17, 2012
1 parent 0d3c68d commit eeb46da13d45b343c16789a2eb0d19224350bdb1
Showing with 902 additions and 0 deletions.
  1. +1 −0 site/content/.hyde_deps
  2. 0 site/content/404.html
  3. +27 −0 site/content/about/index.html
  4. BIN site/content/about/portrait.jpg
  5. +52 −0 site/content/advanced/grouper.html
  6. +3 −0 site/content/advanced/meta.yaml
  7. +44 −0 site/content/advanced/overview.html
  8. +57 −0 site/content/advanced/sorter.html
  9. +51 −0 site/content/advanced/tagger.html
  10. +15 −0 site/content/index.html
  11. +169 −0 site/content/media/css/style.css
  12. BIN site/content/media/img/background.jpg
  13. +1 −0 site/content/meta.yaml
  14. +1 −0 site/content/posts/index.html
  15. +3 −0 site/content/posts/meta.yaml
  16. +1 −0 site/content/posts/test.html
  17. +22 −0 site/content/printing/awful-german-language.html
  18. +32 −0 site/content/printing/easter-week.html
  19. +21 −0 site/content/printing/few-faces-emil-rudolf-weiss.html
  20. +6 −0 site/content/printing/index.html
  21. +25 −0 site/content/printing/reading-group-forty-seven.html
  22. +21 −0 site/content/printing/sesquipedality.html
  23. +22 −0 site/content/printing/useful-words-grammar.html
  24. +19 −0 site/content/printing/wallau-broadside.html
  25. BIN site/content/printing/wallau-broadside/awful-german-language/awful-1.jpg
  26. BIN site/content/printing/wallau-broadside/awful-german-language/awful-2.jpg
  27. BIN site/content/printing/wallau-broadside/awful-german-language/awful-3.jpg
  28. BIN site/content/printing/wallau-broadside/easter-week/easter-1.jpg
  29. BIN site/content/printing/wallau-broadside/easter-week/easter-10.jpg
  30. BIN site/content/printing/wallau-broadside/easter-week/easter-2.jpg
  31. BIN site/content/printing/wallau-broadside/easter-week/easter-3.jpg
  32. BIN site/content/printing/wallau-broadside/easter-week/easter-4.jpg
  33. BIN site/content/printing/wallau-broadside/easter-week/easter-6.jpg
  34. BIN site/content/printing/wallau-broadside/easter-week/easter-7.jpg
  35. BIN site/content/printing/wallau-broadside/easter-week/easter-8.jpg
  36. BIN site/content/printing/wallau-broadside/easter-week/easter-9.jpg
  37. BIN site/content/printing/wallau-broadside/few-faces-emil-rudolf-weiss/few-faces-1.jpg
  38. BIN site/content/printing/wallau-broadside/few-faces-emil-rudolf-weiss/few-faces-2.jpg
  39. BIN site/content/printing/wallau-broadside/media/building/a-desk/desk-1.jpg
  40. BIN site/content/printing/wallau-broadside/media/building/a-desk/desk-2.jpg
  41. BIN site/content/printing/wallau-broadside/media/building/a-desk/desk-3.jpg
  42. BIN site/content/printing/wallau-broadside/media/computers/typographical-game/game-1.jpg
  43. +48 −0 site/content/printing/wallau-broadside/media/css/reset.less
  44. +166 −0 site/content/printing/wallau-broadside/media/css/style.less
  45. BIN site/content/printing/wallau-broadside/media/img/background.jpg
  46. BIN site/content/printing/wallau-broadside/reading-group-forty-seven/celan-1.jpg
  47. BIN site/content/printing/wallau-broadside/reading-group-forty-seven/celan-2.jpg
  48. BIN site/content/printing/wallau-broadside/reading-group-forty-seven/celan-3.jpg
  49. BIN site/content/printing/wallau-broadside/reading-group-forty-seven/celan-4.jpg
  50. BIN site/content/printing/wallau-broadside/reading-group-forty-seven/celan-5.jpg
  51. BIN site/content/printing/wallau-broadside/reading-group-forty-seven/celan-6.jpg
  52. BIN site/content/printing/wallau-broadside/sesquipedality/sesquip-1.jpg
  53. BIN site/content/printing/wallau-broadside/sesquipedality/sesquip-2.jpg
  54. BIN site/content/printing/wallau-broadside/sesquipedality/sesquip-3.jpg
  55. BIN site/content/printing/wallau-broadside/useful-words-grammar/useful-1.jpg
  56. BIN site/content/printing/wallau-broadside/useful-words-grammar/useful-2.jpg
  57. BIN site/content/printing/wallau-broadside/useful-words-grammar/useful-3.jpg
  58. BIN site/content/printing/wallau-broadside/wallau-1.jpg
  59. BIN site/content/printing/wallau-broadside/wallau-2.jpg
  60. +1 −0 site/content/projects/index.html
  61. +2 −0 site/content/projects/meta.yaml
  62. +5 −0 site/content/projects/test.html
  63. +4 −0 site/content/projects/test2.html
  64. +83 −0 site/content/test-steps.html
View
@@ -0,0 +1 @@
{}
View
No changes.
@@ -0,0 +1,27 @@
---
extends: base.j2
title_ending: "| About"
default_block: content
---
About
=====
Hello, I'm a printer, publisher, and programmer in Cambridge, Massachusetts. I studied computer science at Harvard.
I'm a student in the [High-Low Tech Research Group](http://hlt.media.mit.edu) at the [MIT Media Lab](http://media.mit.edu).
This is a picture of me.
<div class="gallery">
<img src="{{ site.url }}/media/images/about/portrait.jpg" />
</div>
{# You can use Jinja tags in Markdown content also; they get processed
before the content gets to the Markdown filter.
#}
[0]: {{ author.url }}
[1]: {{ project.url }}
[2]: {{ project.install }}
[3]: {{ layout.url }}
[4]: http://www.flickr.com/photos/batintherain/5613841957/
Binary file not shown.
@@ -0,0 +1,52 @@
---
index: 3
title_ending: "| Grouping"
tags:
- printing
- silver
learning_order: 2
---
Grouping
========
Content is very often grouped by theme, size, location or any other
conceivable measure. Groups can be traversed in a few ways in Hyde, and
[sorted](sorter.html) at the same time. Here are two common ways:
Walking all groups and subgroups
--------------------------------
{# Resources are sorted by defining a sorter in the configuration file. #}
{% for grp, res_walker in site.content.walk_category_groups_sorted_by_order() %}
goo
*{{ grp.description }}*
{% for res in res_walker %}
* [{{ res.slug|capitalize|replace("-"," ") }}]({{ res.full_url }}) \
({{ res.name }})
{% endfor %}
{% endfor %}
{# The above code layout is not arbitrary. Remember that we're building
a Markdown page so every space or line ending has a purpose.
#}
Listing only the specific (sub)group
------------------------------------
{% for res in site.content.walk_resources_grouped_by_printing() %}
* [{{ res.slug|capitalize|replace("-"," ") }}]({{ res.full_url }}) \
({{ res.name }})
{% endfor %}
{# You can also call the top level group "level" to get all resources that
are in the group. Or you can list all resources of the same group in the
current node with "resource.node.walk_resource_grouped_by_advanced()".
#}
{{ macros.render_bottom_article_nav() }}
@@ -0,0 +1,3 @@
extends: base.j2
default_block: content
category: projects
@@ -0,0 +1,44 @@
---
index: 1
title_ending: "| Advanced topics"
tags:
- sort
- group
- tag
learning_order: 4
---
More advanced topics
====================
If you have read and understood all basic topics covered in
{% for res in site.content.walk_resources_grouped_by_basic()|reverse %}
[{{ res.slug|capitalize|replace("-"," ") }}]({{ res.full_url }})
{% endfor %}
then you are ready for some more advanced features. They are explained in
the same way as the basic part, building on the knowledge of the previous,
so it is recommended that you follow them in the listed order.
{# List all resources from a group, sort them by index and list their tags. #}
{% for res in resource.node.walk_resources_sorted_by_learning_order() %}
{{ loop.index }}. \
[{{ res.slug|capitalize|replace("-"," ") }}]({{ res.full_url }}) \
{% if res.name == "overview.html" %}*(this file)*{% endif %} \
{#
Sometimes you'll have to add HTML tags to a Markdown file for styling
or adding some special features, and Markdown is OK with that.
#}
<span class="tags">tags:
{% for tag in res.meta.tags %}
{#
After wring the tag name, check if that is the last tag in the list. If
it is, don't append the comma at the end.
#}
{{ tag }}{% if tag != res.meta.tags[-1] %},{% endif %}
{% endfor %}
</span>
{% endfor %}
{{ macros.render_bottom_article_nav() }}
@@ -0,0 +1,57 @@
---
index: 2
title_ending: "| Sorting"
tags:
- sort
learning_order: 1
---
Sorting
=======
{{ resource.meta.index }}
{{ resource.meta.tags }}
{{ resource.meta.learning_order }}
There will come a time when you will need to list and sort resources. Hyde
allows you to walk the site tree and sort the resources by the predefined
settings in your configuration file.
You can list and sort by name all your content files.
{# With every sorter defined in the configuration file, nodes get a method
to call. Notice that in the first and last example the method is called
on the whole content of the site, while the second example shows how to
invoke it only on one specific node (in this case the current one).
Also, some new Jinja filters were used to style the output.
#}
{% for res in site.content.walk_resources_sorted_by_name() %}
* [{{ res.slug|capitalize|replace("-"," ") }}]({{ res.full_url }}) \
({{ res.name }})
{% endfor %}
Or list only those in the current node (folder). In this case that would be
all advanced topics.
{# Have in mind that using the next example in a content page (like here) or
using it in a layout (Jinja template that is extended or include by
content pages) will yield very different results.
In this case it will be called only once, for this resource, and shown
only on this page. If it was in a layout, it would be called for EVERY
resource that uses that layout. In that case the context would be
different, the parent node of the resource could be different and the
results will probably be different too.
#}
{% for res in resource.node.walk_resources_sorted_by_index() %}
{{ loop.index }}. [{{ res.slug|capitalize }}]({{ res.full_url }})
{% endfor %}
Or sort files by type and then by size.
{% for res in site.content.walk_resources_sorted_by_file_type() %}
* [{{ res.source_file.kind|upper }}] {{ res.name }}
{% endfor %}
{{ macros.render_bottom_article_nav() }}
@@ -0,0 +1,51 @@
---
index: 4
title_ending: "| Tagging"
tags:
- sort
- tag
learning_order: 3
---
Tagging
=======
It seems that human beings want to tag everything. You can do it with
Hyde also. In this example **tags** are used to represent technologies
used to build a particular advanced page. So you can see that the
**sorting** was needed for all advanced topics, but **grouping** was
used only for overview and grouping pages.
Listing by tags
---------------
{# You can grab the list of all tags ... #}
{% for tag, meta in site.tagger.tags %}
*{{ tag }}*
{# ... and get all resurces tagged with that node. #}
{% for res in resource.node.walk_resources_tagged_with(tag) %}
* [{{ res.slug|capitalize|replace("-"," ") }}]({{ res.full_url }}) \
({{ res.name }})
{% endfor %}
{% endfor %}
{# Another way to walk through resources tagged with a specific tag is
to use a method that contains that tag's name.
{% for res in resource.node.walk_resources_tagged_with_sort() %}
{% endfor %}
#}
Tag combination
---------------
You can also search for combination of tags. If you search for a
resource that has **sort**, **tag** and **group** tags, only an
{% for res in resource.node.walk_resources_tagged_with('sort+tag+group') -%}
[{{ res.slug }}]({{ res.full_url }})
{%- endfor %}
will be returned.
{{ macros.render_bottom_article_nav() }}
View
@@ -0,0 +1,15 @@
{% extends "base.j2" %}
{# Markdown main content block. #}
{% block content %}
{% for grp, res_walker in site.content.walk_category_groups() %}
{{ grp.description }}
{% for res in res_walker %}
[{{ res.slug|capitalize|replace("-"," ") }}]({{ res.full_url }})
{% endfor %}
{% endfor %}
{% endblock %}
Oops, something went wrong.

0 comments on commit eeb46da

Please sign in to comment.