added content type image

This commit is contained in:
Pavel Kuleshov 2020-03-14 14:08:17 +08:00
parent d990c388b8
commit 82546a5e15
2 changed files with 24 additions and 0 deletions

View File

@ -26,6 +26,22 @@ a:hover {
text-decoration: underline; text-decoration: underline;
} }
.image {
background-color: white;
border-radius: 2px;
box-shadow: 0 4px 6px 1px rgba(50, 50, 50, 0.14);
box-sizing: border-box;
color: black;
line-height: 0;
margin: 5.5em auto 0;
max-width: 640px;
width: 100%;
font-size: 75%;
}
.image img{
width: 100%;
}
.content { .content {
background-color: white; background-color: white;
border-radius: 2px; border-radius: 2px;

View File

@ -0,0 +1,8 @@
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php
echo '<div class="image">';
the_content();
echo '</div>';
?>
</article>