Add lately.js
This commit is contained in:
parent
e8f1d76cb7
commit
6accfaef67
|
@ -11,6 +11,7 @@
|
|||
$("article pre").addClass("shadow rounded");
|
||||
$("table").addClass("table");
|
||||
});
|
||||
Lately({'target' : '.lately-a, .lately-b, .lately-c'});
|
||||
</script>
|
||||
<footer class="mt-5 mb-5" id="footer" role="footer">
|
||||
<div class="container">
|
||||
|
|
|
@ -31,6 +31,9 @@
|
|||
<script src="<?php $this->options->themeUrl('/assets/js/core/popper.min.js');?>"></script>
|
||||
<script src="<?php $this->options->themeUrl('/assets/js/core/bootstrap.min.js');?>"></script>
|
||||
|
||||
<!-- lately JS -->
|
||||
<script src="https://tokinx.github.io/lately/lately.min.js"></script>
|
||||
|
||||
<!-- Argon Theme JS -->
|
||||
<script src="<?php $this->options->themeUrl('/assets/js/argon-design-system.min.js');?>"></script>
|
||||
|
||||
|
|
20
index.php
20
index.php
|
@ -27,18 +27,14 @@ if (!defined('__TYPECHO_ROOT_DIR__')) exit;
|
|||
<?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 } ?>
|
||||
<h1 class="font-weight-bold post-title" itemprop="name headline">
|
||||
<a itemprop="url" href="<?php $this->permalink() ?>"><?php $this->title() ?></a>
|
||||
</h1>
|
||||
<!--<div class="post-meta" role="meta">-->
|
||||
<!-- <span class="nav-item"><i class="czs-calendar"></i><time datetime="<?php $this->date('c'); ?>" itemprop="datePublished"><?php $this->date(); ?></time></span>-->
|
||||
<!-- <?php if (count($this->tags) > 0) { ?>-->
|
||||
<!-- <span class="nav-item"><i class="czs-tag"></i><?php $this->tags(",",true,'aa'); ?></span>-->
|
||||
<!-- <?php } ?>-->
|
||||
<!-- <?php if ($this->commentsNum > 0) {?>-->
|
||||
<!-- <span class="nav-item"><i class="czs-comment"></i><a href="<?php $this->permalink() ?>#comments"><?php $this->commentsNum('0 评', '1 评', '%d 评');?></a></span>-->
|
||||
<!-- <?php } ?>-->
|
||||
<!-- </div>-->
|
||||
<div>
|
||||
<h1 class="font-weight-bold post-title" itemprop="name headline">
|
||||
<a itemprop="url" href="<?php $this->permalink() ?>"><?php $this->title() ?></a>
|
||||
</h1>
|
||||
<!-- <p class="text-gray">
|
||||
<time class="lately-a" datetime="<?php $this->date('c'); ?>" itemprop="datePublished" pubdate>Lately</time>
|
||||
</p> -->
|
||||
</div>
|
||||
<div class="summary post-content" itemprop="articleBody">
|
||||
<?php $this->content('More...'); ?>
|
||||
</div>
|
||||
|
|
8
post.php
8
post.php
|
@ -5,14 +5,18 @@
|
|||
<article itemscope itemtype="http://schema.org/BlogPosting">
|
||||
<h1 class="font-weight-bold post-title" itemprop="name headline"><?php $this->title() ?></h1>
|
||||
<div>
|
||||
<i class="far fa-calendar-alt"></i> <time datetime="<?php $this->date('c'); ?>" itemprop="datePublished"><?php $this->date('Y-m-d D h:i a'); ?></time>
|
||||
<span class="text-gray">
|
||||
<i class="far fa-calendar-alt"></i>
|
||||
<time class="lately-a" datetime="<?php $this->date('c'); ?>" itemprop="datePublished" pubdate>Lately</time> |
|
||||
<time datetime="<?php $this->date('c'); ?>" itemprop="datePublished"><?php $this->date('Y-m-d D h:iA'); ?></time>
|
||||
</span>
|
||||
<?php if ($this->user->hasLogin()): ?>
|
||||
<a class="badge badge-primary" href="<?php $this->options->siteUrl();?>admin/write-post.php?cid=<?php $this->cid();?>">
|
||||
<i class="far fa-edit"></i>
|
||||
<?php _e('编辑'); ?>
|
||||
</a>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="post-content" itemprop="articleBody">
|
||||
<?php $this->content(); ?>
|
||||
|
|
Loading…
Reference in New Issue