右手虎口附近有些疼,可能已经有鼠标手了
2025年02月21日 18:51:42
文章页调用Fediverse
做评论
is('post')): ?>
cid);
echo FediverseSync_Plugin::renderFediverseComments($fediverseComments);
?>
默认的CSS
.fediverse-comments {
max-width:100%;
margin:2em 0;
padding:1.5em;
background:#ffffff;
border-radius:12px;
box-shadow:0 2px 12px rgba(0,0,0,0.08);
color:#2d3748;
}
.fediverse-comments-header {
display:flex;
align-items:center;
justify-content:space-between;
margin-bottom:1.5em;
padding-bottom:1em;
border-bottom:1px solid #edf2f7;
}
.fediverse-comments-header h3 {
margin:0;
font-size:1.25em;
color:#2d3748;
display:flex;
align-items:center;
gap:0.5em;
}
.fediverse-icon {
color:#563acc;
}
.fediverse-comments-count {
color:#718096;
font-size:0.9em;
}
.fediverse-comment {
padding:1.25em;
margin-bottom:1em;
background:#f8fafc;
border-radius:8px;
transition:all 0.2s ease;
}
.fediverse-comment:hover {
background:#f1f5f9;
}
.fediverse-comment:last-child {
margin-bottom:0;
}
.comment-metadata {
margin-bottom:0.75em;
}
.comment-author {
display:flex;
align-items:center;
gap:1em;
}
.author-link {
text-decoration:none;
color:inherit;
}
.author-name {
font-weight:600;
color:#2d3748;
}
.comment-time {
color:#718096;
font-size:0.875em;
}
.comment-content {
color:#2d3748;
line-height:1.6;
overflow-wrap:break-word;
}
.comment-content p {
margin:0 0 1em;
}
.comment-content p:last-child {
margin-bottom:0;
}
.comment-content a {
color:#563acc;
text-decoration:none;
border-bottom:1px solid transparent;
transition:border-color 0.2s ease;
}
.comment-content a:hover {
border-bottom-color:#563acc;
}
.no-comments {
padding:2em;
text-align:center;
color:#718096;
display:flex;
flex-direction:column;
align-items:center;
gap:1em;
}
.empty-icon {
color:#cbd5e0;
}
[data-scheme=dark] .fediverse-comments {
backdrop-filter:blur(10px);
-webkit-backdrop-filter:blur(10px);
background:#1a1b1e;
box-shadow:0 2px 12px rgba(0,0,0,0.3);
color:#e2e8f0;
}
[data-scheme=dark] .fediverse-comments-header {
border-bottom:1px solid #2d3748;
}
[data-scheme=dark] .fediverse-comments-header h3 {
color:#e2e8f0;
}
[data-scheme=dark] .fediverse-comment {
background:#2d2e32;
border:1px solid #2d3748;
}
[data-scheme=dark] .fediverse-comment:hover {
background:#34353a;
}
[data-scheme=dark] .author-name {
color:#e2e8f0;
}
[data-scheme=dark] .comment-content {
color:#e2e8f0;
}
[data-scheme=dark] .comment-content a {
text-decoration:underline;
text-decoration-color:rgba(124,93,255,0.4);
text-underline-offset:2px;
}
[data-scheme=dark] .comment-content a:hover {
text-decoration-color:#7c5dff;
}
[data-scheme=dark] .comment-content img {
opacity:0.8;
transition:opacity 0.2s ease;
}
[data-scheme=dark] .comment-content img:hover {
opacity:1;
}
@media (max-width:768px) {
.fediverse-comments {
padding:1em;
}
.fediverse-comments-header {
flex-direction:column;
align-items:flex-start;
gap:0.5em;
}
.fediverse-comment {
padding:1em;
}
2025年02月21日 10:47:20
## 博客同步到GoToSocial的Typecho插件
这是一个Typecho插件,能够在发布文章时自动同步到GoToSocial实例。用户需在后台设置中填入实例地址和Token,并可选择摘要字数。插件功能简单,由AI编写。
2025年02月20日 20:16:26
终于把插件搞出来了,使用 gts 作为 typecho 的评论系统。
https://blog.sgcd.net/archives/1467/