文章头图显示
This commit is contained in:
parent
8af5a5bb3b
commit
33e379476c
|
@ -24,9 +24,9 @@ if (!defined('__TYPECHO_ROOT_DIR__')) exit;
|
|||
|
||||
<?php while($this->next()): ?>
|
||||
<article class="mt-5 mb-5" itemscope itemtype="http://schema.org/BlogPosting">
|
||||
<?php if ($this->fields->headPic !='') { ?>
|
||||
<?php if ($this->fields->headPic !=''): ?>
|
||||
<img src=<?php $this->fields->headPic(); ?> class="img-fluid mx-auto d-block shadow rounded mb-3" alt="<?php $this->title(); ?>">
|
||||
<?php } ?>
|
||||
<?php endif; ?>
|
||||
<div>
|
||||
<h1 class="font-weight-bold post-title" itemprop="name headline">
|
||||
<a itemprop="url" href="<?php $this->permalink() ?>"><?php $this->title() ?></a>
|
||||
|
|
3
post.php
3
post.php
|
@ -3,6 +3,9 @@
|
|||
|
||||
<div class="col mt-5" id="main" role="main">
|
||||
<article itemscope itemtype="http://schema.org/BlogPosting">
|
||||
<?php if ($this->fields->headPic !=''): ?>
|
||||
<img src=<?php $this->fields->headPic(); ?> class="img-fluid mx-auto d-block shadow rounded mb-3" alt="<?php $this->title(); ?>">
|
||||
<?php endif; ?>
|
||||
<h1 class="font-weight-bold post-title" itemprop="name headline"><?php $this->title() ?></h1>
|
||||
<div>
|
||||
<span class="text-gray">
|
||||
|
|
Loading…
Reference in New Issue