mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 12:43:05 +00:00
This makes sure that `post.author` will be the actual data we want and we don't have to assign it every time, potentially messing it up.
30 lines
565 B
HTML
30 lines
565 B
HTML
{% assign page = include.page %}
|
|
|
|
<h1>
|
|
{% if include.isPermalink %}
|
|
{{ page.title }}
|
|
{% else %}
|
|
<a href="/react{{ page.url }}">{{ page.title }}</a>
|
|
{% endif %}
|
|
</h1>
|
|
|
|
<p class="meta">
|
|
{{ page.date | date: "%B %e, %Y" }}
|
|
by
|
|
{% if page.author.url %}
|
|
<a href="{{page.author.url}}">{{ page.author.name }}</a>
|
|
{% else %}
|
|
{{ page.author.name }}
|
|
{% endif %}
|
|
</p>
|
|
|
|
<hr>
|
|
|
|
<div class="post">
|
|
{{ include.content }}
|
|
</div>
|
|
|
|
{% if include.isPermalink %}
|
|
<div class="fb-like" data-send="true" data-width="650" data-show-faces="false"></div>
|
|
{% endif %}
|