Skip to content

Instantly share code, notes, and snippets.

@zachisit
Created June 10, 2021 16:05
Show Gist options
  • Save zachisit/16b248bbfa027718c91ebb3bc37c83b4 to your computer and use it in GitHub Desktop.
Save zachisit/16b248bbfa027718c91ebb3bc37c83b4 to your computer and use it in GitHub Desktop.
Article html structure layout
<article>
<section class="top-pointer">
<ul>
<li class="category">cate</li>
<li>
<ul>
<li>Previous Article</li>
<li>Next Article</li>
</ul>
</li>
</ul>
</section>
<section class="title">
<header>
<h3>{{ post.title }}</h3>
</header>
</section>
{% if post.post_excerpt %}
<section class="excerpt">
{{ post.post_excerpt }}
</section>
{% endif %}
<section class="meta-data">
<div class="author-name">
{{ post.author.first_name }} {{ post.author.last_name }}
</div>
<ul>
<li>
date in cats
</li>
<li>
<ul>
social share
</ul>
</li>
</ul>
</section>
<section class="main-content">
{% if post.thumbnail %}
<div class="featured-image">
<img src="{{ post.thumbnail.src }}"
class="my-thumb-class"
alt="Image for {{ post.title }}"/>
{% if post.thumbnail.caption %}
<p>{{ post.thumbnail.caption }}</p>
{% endif %}
</div>
{% endif %}
<div class="content">
{{ post.content }}
</div>
<footer>
<div class="foot-note">
foot notes
</div>
<div class="share-article">
share article
</div>
<section class="article-nav-link">
<ul>
<li>
Back to cat nam
</li>
<li>
<ul>
<li>Previous article</li>
<li>Next article</li>
</ul>
</li>
</ul>
</section>
</footer>
</section>
</article>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment