Start Theme Repo
This commit is contained in:
22
views/pieces/posts/author-bio.twig
Normal file
22
views/pieces/posts/author-bio.twig
Normal file
@@ -0,0 +1,22 @@
|
||||
{% if theme_setting( 'author_bio' ) or conditional_tag.is_customize_preview %}
|
||||
|
||||
<div class="entry-author clearfix">
|
||||
<div class="author-avatar">
|
||||
|
||||
{{ fn( 'get_avatar', post.author.user_email, 128 ) }}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="author-heading">
|
||||
<h4 class="author-title">{{ __( 'About %s', 'romhackplaza' )|esc_html|format( '<span class="author-name">' ~ post.author.display_name ~ '</span>' ) }}</h4>
|
||||
<a class="author-link" href="{{ post.author.profile_url|esc_url }}" rel="author">
|
||||
{{ __( 'View all posts', 'romhackplaza')|esc_html }}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<p class="author-bio">
|
||||
{{ post.author.meta( 'description' ) }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{% endif %}
|
||||
23
views/pieces/posts/grids/classic.twig
Normal file
23
views/pieces/posts/grids/classic.twig
Normal file
@@ -0,0 +1,23 @@
|
||||
<article id="post-{{ post.ID }}" class="article post-type-{{ post.type }}">
|
||||
|
||||
<header class="entry-header">
|
||||
|
||||
<a href="{{ post.link }}">
|
||||
<h1 class="page-title">{{ post.title }}</h1>
|
||||
</a>
|
||||
|
||||
</header>
|
||||
|
||||
{{ fn( 'the_post_thumbnail' ) }}
|
||||
|
||||
<div class="post-content">
|
||||
|
||||
<div class="entry-content clearfix">
|
||||
|
||||
{{ post.content }}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</article>
|
||||
Reference in New Issue
Block a user