3c2262400f
Summary: Tried to: - preserve existing links - move existing images over (there were 2) - preserve codeblocks (modified where apprporiate) - etc. Also as agreed upon: - All blog posts are preserved. - Comments are not preserved. - Not turning on comments for future blog posts (use the FB developer group instead). - Like button at the end of the blog post. Depends on https://reviews.facebook.net/D63051 Test Plan: Visual Reviewers: IslamAbdelRahman, lgalanis Reviewed By: lgalanis Subscribers: andrewkr, dhruba, leveldb Differential Revision: https://reviews.facebook.net/D63105
36 lines
1.3 KiB
HTML
36 lines
1.3 KiB
HTML
<div class="post">
|
|
{% assign author = site.data.authors[page.author] %}
|
|
<header class="post-header">
|
|
{% if author.fbid %}
|
|
<div class="authorPhoto">
|
|
<img src="http://graph.facebook.com/{{ author.fbid }}/picture/" alt="{{ author.fullname }}" title="{{ author.fullname }}" />
|
|
</div>
|
|
{% endif %}
|
|
{% if author.full_name %}
|
|
<p class="post-authorName">{{ author.full_name }}</p>
|
|
{% endif %}
|
|
<h1 class="post-title">{% if include.truncate %}<a href="{{ site.url }}{{ site.baseurl }}{{ page.url }}">{{ page.title }}</a>{% else %}{{ page.title }}{% endif %}</h1>
|
|
<p class="post-meta">Posted {{ page.date | date: '%B %d, %Y' }}{% if page.meta %} • {{ page.meta }}{% endif %}</p>
|
|
</header>
|
|
|
|
<article class="post-content">
|
|
{% if include.truncate %}
|
|
{% if page.content contains '<!--truncate-->' %}
|
|
{{ page.content | split:'<!--truncate-->' | first | markdownify }}
|
|
<div class="read-more">
|
|
<a href="{{ site.url }}{{ site.baseurl }}{{ page.url }}" >
|
|
Read More
|
|
</a>
|
|
</div>
|
|
{% else %}
|
|
{{ page.content | markdownify }}
|
|
{% endif %}
|
|
{% else %}
|
|
{{ content }}
|
|
{% endif %}
|
|
{% unless include.truncate %}
|
|
{% include plugins/like_button.html %}
|
|
{% endunless %}
|
|
</article>
|
|
</div>
|