article: add excerpt
This commit is contained in:
parent
6a710709d0
commit
3420af2278
3 changed files with 16 additions and 0 deletions
|
@ -86,6 +86,12 @@ ol {
|
||||||
p, em, p em {
|
p, em, p em {
|
||||||
font-weight:300;
|
font-weight:300;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.article-excerpt {
|
||||||
|
padding: 0 0.5em 0 0.5em;
|
||||||
|
font-style: italic;
|
||||||
|
font-size: calc(3.5mm + 0.4vw);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 2.3 - Titles */
|
/* 2.3 - Titles */
|
||||||
|
|
|
@ -5,6 +5,12 @@
|
||||||
<article class="article-content" id="post-<?php the_ID(); ?>">
|
<article class="article-content" id="post-<?php the_ID(); ?>">
|
||||||
<h1 class="page-title"><i class="fa fa-fw fa-file-text"></i> <?php the_title(); ?></h1>
|
<h1 class="page-title"><i class="fa fa-fw fa-file-text"></i> <?php the_title(); ?></h1>
|
||||||
|
|
||||||
|
<aside class="article-excerpt">
|
||||||
|
<?php the_excerpt(); ?>
|
||||||
|
|
||||||
|
<hr />
|
||||||
|
</aside>
|
||||||
|
|
||||||
<div class="article-body">
|
<div class="article-body">
|
||||||
<?php the_content(); ?>
|
<?php the_content(); ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -301,6 +301,10 @@ ol {
|
||||||
font-weight: 300; }
|
font-weight: 300; }
|
||||||
.article-content p, .article-content em, .article-content p em {
|
.article-content p, .article-content em, .article-content p em {
|
||||||
font-weight: 300; }
|
font-weight: 300; }
|
||||||
|
.article-content .article-excerpt {
|
||||||
|
padding: 0 0.5em 0 0.5em;
|
||||||
|
font-style: italic;
|
||||||
|
font-size: calc(3.5mm + 0.4vw); }
|
||||||
|
|
||||||
/* 2.3 - Titles */
|
/* 2.3 - Titles */
|
||||||
h1, h2, h3, h4, h5, h6, h7 {
|
h1, h2, h3, h4, h5, h6, h7 {
|
||||||
|
|
Reference in a new issue