更新功能

This commit is contained in:
浪子 2024-05-24 15:56:49 +08:00
parent 6456cb8521
commit a99e370897
2 changed files with 6 additions and 1 deletions

View File

@ -3,6 +3,10 @@
移植自`hugo-theme-farallon` 原汁原味,可以直接使用 原主题的CSS 移植自`hugo-theme-farallon` 原汁原味,可以直接使用 原主题的CSS
精简部分 JS. 精简部分 JS.
2024.5.24
新增了说说页面,基于memos 0.19 以下的版本
在后台设置memos的地址和memoID即可
默认获取最近20条公开的memo
## 原项目地址 ## 原项目地址
https://github.com/bigfa/hugo-theme-farallon https://github.com/bigfa/hugo-theme-farallon

View File

@ -9,6 +9,7 @@ if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<div class="site--main"> <div class="site--main">
<header class="archive--header"> <header class="archive--header">
<h1 class="post--single__title"><?php $this->title() ?></h1> <h1 class="post--single__title"><?php $this->title() ?></h1>
<h2 class="archive--title__year"><?php $this->content(); ?> </h2>
</header> </header>
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui@5.0/dist/fancybox/fancybox.umd.js"></script> <script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui@5.0/dist/fancybox/fancybox.umd.js"></script>
@ -33,7 +34,7 @@ if (99) {
<img src="<?php $this->options->logoUrl() ?>" class="avatar" width="48" height="48" /> <img src="<?php $this->options->logoUrl() ?>" class="avatar" width="48" height="48" />
<a class="humane--time" href="${memoURL}" target="_blank">${data.date}</a> <a class="humane--time" href="${memoURL}" target="_blank">${data.date}</a>
</header> </header>
<div class="description mdContent" itemprop="about"> <div class="description" itemprop="about">
<span class="talk_tag"># ${data.tag}</span><br> <span class="talk_tag"># ${data.tag}</span><br>
${mdContent} ${mdContent}
</div> </div>