mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
* All posts under blog/ * Index @ blog/index.html * Only show excerpt on index with "continue reading" link * Date, name formatting improvements (better for humans) It could probably still use some style tweaks but I feel better about it. Moving forward, we'll use the "excerpt" feature of Jekyll with the default separator, which is just 2 newlines. So the first paragraph will be special. Alternatively you can specify excerpt, but we'll want to fix the layout so that gets added in.
29 lines
692 B
HTML
29 lines
692 B
HTML
---
|
|
title: Blog
|
|
layout: default
|
|
sectionid: blog
|
|
---
|
|
|
|
<section class="content wrap documentationContent">
|
|
{% include nav_blog.html %}
|
|
<div class="inner-content">
|
|
{% for page in site.posts %}
|
|
<div class="post-list-item">
|
|
<h1><a href="/react{{ page.url }}">{{ page.title }}</a></h1>
|
|
<p class="meta">{{ page.date | date: "%B %e, %Y" }} by {{ page.author }}</p>
|
|
|
|
<hr>
|
|
|
|
<div class="post">
|
|
{{ page.excerpt }}
|
|
{% if page.excerpt != page.content %}
|
|
<p>
|
|
<a href="/react{{ page.url }}">Continue Reading →</a>
|
|
</p>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</section>
|