nwe post:muhehehe

This commit is contained in:
paw 2025-05-02 15:20:47 +08:00
parent a063092252
commit a3986506d3
33 changed files with 898 additions and 70 deletions

View File

@ -1,5 +1,8 @@
+++ +++
date = '{{ .Date }}' date = '{{ .Date }}'
draft = true draft = true
title = '{{ replace .File.ContentBaseName "-" " " | title }}' author = "paw"
title = '{{ replace .Name "-" " " | title }}'
categories = ["Example"]
tags = ["Markdown"]
+++ +++

View File

@ -25,7 +25,7 @@ TL;DR
============ ============
这里暂时由木分镇的PeterAlexWain A.K.A paw维护。 这里暂时由木分镇的PeterAlexWain A.K.A paw维护。
这里(暂时或者很长一段时间)可能会充满低创与牢骚一类的没有任何营养价值的东西。 这里(暂时或者很长一段时间)可能会充满低创与牢骚一类的没有任何营养价值的东西。
paw很希望与你交换友链,(如果你不嫌弃的话,)请偷偷联系他交换友链。 paw很希望与你交换友链{{< muhehehe text="如果嫌弃的话," >}}请偷偷联系他交换友链。
paw喜欢猫科动物喜欢Unix喜欢计算器喜欢Ruby喜欢沿着没有阳光的角落阴暗爬行喜欢一切可爱的东西当然还有你 paw喜欢猫科动物喜欢Unix喜欢计算器喜欢Ruby喜欢沿着没有阳光的角落阴暗爬行喜欢一切可爱的东西当然还有你
paw喜欢很多东西但是又无能为力他的技术水平令人汗颜。 paw喜欢很多东西但是又无能为力他的技术水平令人汗颜。
为什么说这里是互联网的尽头呢因为这里既不有趣也没有知识访问这里可能会让你痛苦就像paw活在现实世界一样 为什么说这里是互联网的尽头呢因为这里既不有趣也没有知识访问这里可能会让你痛苦就像paw活在现实世界一样

View File

@ -0,0 +1,67 @@
+++
date = '2025-05-02T14:42:07+08:00'
draft = false
author = "paw"
title = '让你的Hugo博客支持萌百式的黑幕'
categories = ["blog"]
tags = ["css","muhehehe"]
+++
>非常喜欢某明清时期知名文学评论家的一句话:"paw有可能很可爱
>{{< muhehehe text="但是paw很可爱有点不可能" title="出自《明朝-提瓦剌史》" >}}"
><div style="text-align: right;">
>——【清】甘雨
></div>
TL;DR
==============================
首先新建`static/css/muheheh.css`,并且内容为:
~~~css
.muhehehe,
.muhehehe a,
a .muhehehe,
.muhehehe a.new {
background-color: #252525;
color: #252525;
text-shadow: none;
}
.muhehehe:hover,
.muhehehe:active,
.muhehehe:hover .muhehehe,
.muhehehe:active .muhehehe {
color: white !important;
}
.muhehehe:hover a,
a:hover .muhehehe,
.muhehehe:active a,
a:active .muhehehe {
color: lightblue !important;
}
.muhehehe:hover .new,
.muhehehe .new:hover,
.new:hover .muhehehe,
.muhehehe:active .new,
.muhehehe .new:active,
.new:active .muhehehe {
color: #BA0000 !important;
}
~~~
然后在你的主题引入的外部header中添加上
~~~css
<link rel="stylesheet" href="/css/muhehehe.css">
~~~
作为范例paw的博客主题所引入的的外部header为`layouts/partials/head_custom.html`。
最后,我们{{<muhehehe text="为了少些几行代码">}}再新建一个shortcode文件地址为`layouts/shortcodes/muhehehe.html`,内容为
~~~html
<span class="muhehehe" title="{{ default " qwq" (.Get "title" ) }}">{{ .Get "text" }}</span>
~~~
这样就完成啦,接下来就可以在你的.md文章里使用
~~~css
{{</* muhehehe text="你想说的话" title="鼠标放上去时会显示的内容默认为qwq" */>}}
~~~
来实现萌娘百科一样的黑幕效果啦。
效果:{{<muhehehe text="你想说的话" title="鼠标放上去时会显示的内容默认为qwq">}}
QA环节之为什么这个项目要叫做"muhehehe"呢
===================
A:因为muhehehe很像是[可爱小猫的奸奇笑声](https://www.bilibili.com/video/BV1mUP1erExj/)。尽管可爱小猫正在奸笑,但是也没人能拒他;{{<muhehehe text="就像没人能拒绝你一样。">}}

View File

@ -0,0 +1,8 @@
+++
date = '2025-05-02T14:16:21+08:00'
draft = true
author = "paw"
title = 'Build Ur Own Gitea'
categories = ["Example"]
tags = ["Markdown"]
+++

View File

@ -1,7 +1,7 @@
+++ +++
date = '2025-04-28T00:44:05+08:00' date = '2025-04-28T00:44:05+08:00'
draft = false draft = false
author= "PeterAlexWain" author= "paw"
title = 'Helloworld' title = 'Helloworld'
categories = ["Example"] categories = ["Example"]
tags = ["Markdown"] tags = ["Markdown"]
@ -108,11 +108,11 @@ doc](#an-h2-header). Here's a footnote [^1].
Tables can look like this: Tables can look like this:
size|material |color | size | material | color |
----|------------|------------ | ---- | ----------- | ----------- |
9 |leather |brown | 9 | leather | brown |
10 |hemp canvas |natural | 10 | hemp canvas | natural |
11 |glass |transparent | 11 | glass | transparent |
Table: Shoes, their sizes, and what they're made of Table: Shoes, their sizes, and what they're made of

View File

@ -6,7 +6,7 @@ ignoreFiles = ["\\.Rmd$", "_files$", "_cache$"]
languageCode = "en-us" languageCode = "en-us"
theme = "hugo-classic" theme = "hugo-classic"
title = "Let's fall in love" title = "Let's fall in love"
#enableGitInfo = true enableGitInfo = true
[markup.goldmark.renderer] [markup.goldmark.renderer]
unsafe = true unsafe = true

View File

@ -1,12 +1,11 @@
<script>NekoType="black"</script> <script>NekoType = "black"</script>
<h1 id="nl"> <h1 id="nl">
<script src="/js/webneko.js"></script> <script src="/js/webneko.js"></script>
</h1> </h1>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.js"></script> <script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/contrib/auto-render.min.js" <script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/contrib/auto-render.min.js" onload="renderMathInElement(document.body, {
onload="renderMathInElement(document.body, {
delimiters: [ delimiters: [
{left: '$$', right: '$$', display: true}, {left: '$$', right: '$$', display: true},
{left: '$', right: '$', display: false}, {left: '$', right: '$', display: false},
@ -16,3 +15,5 @@
});"></script> });"></script>
<script src="https://cdn.jsdelivr.net/npm/typed.js@2.1.0/dist/typed.umd.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/typed.js@2.1.0/dist/typed.umd.min.js"></script>
<link rel="stylesheet" href="/css/muhehehe.css">

View File

@ -0,0 +1 @@
<span class="muhehehe" title="{{ default " qwq" (.Get "title" ) }}">{{ .Get "text" }}</span>

View File

@ -12,21 +12,20 @@
{{- end -}} {{- end -}}
<script> <script>
document.addEventListener("DOMContentLoaded", function() { document.addEventListener("DOMContentLoaded", function () {
new TypeIt("#typeit-{{ .Ordinal }}", { new TypeIt("#typeit-{{ .Ordinal }}", {
strings: {{- if hasPrefix $text "[" -}} {{ $text | safeJS }} {{- else -}} "{{ $text }}" {{- end -}}, strings: {{- if hasPrefix $text "[" -}} {{ $text | safeJS }} {{- else -}} "{{ $text }}" {{- end -}},
speed: {{ $speed }}, speed: {{ $speed }},
loop: {{ $loop }}, loop: {{ $loop }},
breakLines: {{ $breakLines }}, breakLines: {{ $breakLines }},
waitUntilVisible: true, waitUntilVisible: true,
lifeLike: true, // 打字更自然(可选) lifeLike: true,
}) })
{{- if eq $loop "false" }} { { - if eq $loop "false" } }
.exec(() => { .exec(() => {
// 打完以后销毁 TypeIt 实例
instance.destroy(); instance.destroy();
}) })
{{- end }} { { - end } }
.go(); .go();
}); });
</script> </script>

View File

@ -14,15 +14,14 @@
<link rel="stylesheet" href="/css/style.css" /> <link rel="stylesheet" href="/css/style.css" />
<link rel="stylesheet" href="/css/fonts.css" /> <link rel="stylesheet" href="/css/fonts.css" />
<link rel="stylesheet" href="http://localhost:1313/css/theme-override.css"> <link rel="stylesheet" href="http://localhost:1313/css/theme-override.css">
<script>NekoType="black"</script> <script>NekoType = "black"</script>
<h1 id="nl"> <h1 id="nl">
<script src="/js/webneko.js"></script> <script src="/js/webneko.js"></script>
</h1> </h1>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.js"></script> <script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/contrib/auto-render.min.js" <script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/contrib/auto-render.min.js" onload="renderMathInElement(document.body, {
onload="renderMathInElement(document.body, {
delimiters: [ delimiters: [
{left: '$$', right: '$$', display: true}, {left: '$$', right: '$$', display: true},
{left: '$', right: '$', display: false}, {left: '$', right: '$', display: false},
@ -32,6 +31,8 @@
});"></script> });"></script>
<script src="https://cdn.jsdelivr.net/npm/typed.js@2.1.0/dist/typed.umd.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/typed.js@2.1.0/dist/typed.umd.min.js"></script>
<link rel="stylesheet" href="/css/muhehehe.css">
</head> </head>
<body> <body>

View File

@ -0,0 +1,125 @@
<!DOCTYPE html>
<html lang="en-us">
<head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script>
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png">
<link rel="manifest" href="/images/site.webmanifest">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="A simple, minimal blog for those who love text.">
<title>Blog | Let&#39;s fall in love</title>
<link rel="stylesheet" href="/css/style.css" />
<link rel="stylesheet" href="/css/fonts.css" />
<link rel="stylesheet" href="http://localhost:1313/css/theme-override.css">
<script>NekoType = "black"</script>
<h1 id="nl">
<script src="/js/webneko.js"></script>
</h1>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/contrib/auto-render.min.js" onload="renderMathInElement(document.body, {
delimiters: [
{left: '$$', right: '$$', display: true},
{left: '$', right: '$', display: false},
{left: '\\(', right: '\\)', display: false},
{left: '\\[', right: '\\]', display: true}
]
});"></script>
<script src="https://cdn.jsdelivr.net/npm/typed.js@2.1.0/dist/typed.umd.min.js"></script>
<link rel="stylesheet" href="/css/muhehehe.css">
</head>
<body>
<header>
<nav>
<ul>
<li class="pull-left ">
<a href="http://localhost:1313/">~/let&#39;s fall in love</a>
</li>
<li class="pull-left current">
<a href="/categories/">~/categories</a>
</li>
<li class="pull-left ">
<a href="/tags/">~/tags</a>
</li>
<li class="pull-right">
<a href="/index.xml">~/subscribe</a>
</li>
</ul>
</nav>
</header>
<div class="content-wrapper">
<h1>Blog</h1>
<ul>
<li>
<span class="date">2025/05/02</span>
<a href="/post/2025/05/02/%E8%AE%A9%E4%BD%A0%E7%9A%84hugo%E5%8D%9A%E5%AE%A2%E6%94%AF%E6%8C%81%E8%90%8C%E7%99%BE%E5%BC%8F%E7%9A%84%E9%BB%91%E5%B9%95/">让你的Hugo博客支持萌百式的黑幕</a>
</li>
</ul>
</div>
<footer>
<script>
(function() {
function center_el(tagName) {
var tags = document.getElementsByTagName(tagName), i, tag;
for (i = 0; i < tags.length; i++) {
tag = tags[i];
var parent = tag.parentElement;
if (parent.childNodes.length === 1) {
if (parent.nodeName === 'A') {
parent = parent.parentElement;
if (parent.childNodes.length != 1) continue;
}
if (parent.nodeName === 'P') parent.style.textAlign = 'center';
}
}
}
var tagNames = ['img', 'embed', 'object'];
for (var i = 0; i < tagNames.length; i++) {
center_el(tagNames[i]);
}
})();
</script>
<hr/>
© 2025 PeterAlexWain | <a href="https://github.com/goodroot/hugo-classic">Github</a> | <a href="https://keybase.io/goodroot">Keybase</a>
</footer>
</body>
</html>

File diff suppressed because one or more lines are too long

View File

@ -14,15 +14,14 @@
<link rel="stylesheet" href="/css/style.css" /> <link rel="stylesheet" href="/css/style.css" />
<link rel="stylesheet" href="/css/fonts.css" /> <link rel="stylesheet" href="/css/fonts.css" />
<link rel="stylesheet" href="http://localhost:1313/css/theme-override.css"> <link rel="stylesheet" href="http://localhost:1313/css/theme-override.css">
<script>NekoType="black"</script> <script>NekoType = "black"</script>
<h1 id="nl"> <h1 id="nl">
<script src="/js/webneko.js"></script> <script src="/js/webneko.js"></script>
</h1> </h1>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.js"></script> <script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/contrib/auto-render.min.js" <script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/contrib/auto-render.min.js" onload="renderMathInElement(document.body, {
onload="renderMathInElement(document.body, {
delimiters: [ delimiters: [
{left: '$$', right: '$$', display: true}, {left: '$$', right: '$$', display: true},
{left: '$', right: '$', display: false}, {left: '$', right: '$', display: false},
@ -32,6 +31,8 @@
});"></script> });"></script>
<script src="https://cdn.jsdelivr.net/npm/typed.js@2.1.0/dist/typed.umd.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/typed.js@2.1.0/dist/typed.umd.min.js"></script>
<link rel="stylesheet" href="/css/muhehehe.css">
</head> </head>
<body> <body>

View File

@ -6,7 +6,7 @@
<description>Recent content in Example on Let&#39;s fall in love</description> <description>Recent content in Example on Let&#39;s fall in love</description>
<generator>Hugo</generator> <generator>Hugo</generator>
<language>en-us</language> <language>en-us</language>
<lastBuildDate>Mon, 28 Apr 2025 00:44:05 +0800</lastBuildDate> <lastBuildDate>Thu, 01 May 2025 10:08:03 +0800</lastBuildDate>
<atom:link href="http://localhost:1313/categories/example/index.xml" rel="self" type="application/rss+xml" /> <atom:link href="http://localhost:1313/categories/example/index.xml" rel="self" type="application/rss+xml" />
<item> <item>
<title>Helloworld</title> <title>Helloworld</title>

View File

@ -14,15 +14,14 @@
<link rel="stylesheet" href="/css/style.css" /> <link rel="stylesheet" href="/css/style.css" />
<link rel="stylesheet" href="/css/fonts.css" /> <link rel="stylesheet" href="/css/fonts.css" />
<link rel="stylesheet" href="http://localhost:1313/css/theme-override.css"> <link rel="stylesheet" href="http://localhost:1313/css/theme-override.css">
<script>NekoType="black"</script> <script>NekoType = "black"</script>
<h1 id="nl"> <h1 id="nl">
<script src="/js/webneko.js"></script> <script src="/js/webneko.js"></script>
</h1> </h1>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.js"></script> <script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/contrib/auto-render.min.js" <script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/contrib/auto-render.min.js" onload="renderMathInElement(document.body, {
onload="renderMathInElement(document.body, {
delimiters: [ delimiters: [
{left: '$$', right: '$$', display: true}, {left: '$$', right: '$$', display: true},
{left: '$', right: '$', display: false}, {left: '$', right: '$', display: false},
@ -32,6 +31,8 @@
});"></script> });"></script>
<script src="https://cdn.jsdelivr.net/npm/typed.js@2.1.0/dist/typed.umd.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/typed.js@2.1.0/dist/typed.umd.min.js"></script>
<link rel="stylesheet" href="/css/muhehehe.css">
</head> </head>
<body> <body>
@ -72,6 +73,10 @@
<ul class="terms"> <ul class="terms">
<li>
<a href="http://localhost:1313/categories/blog/">Blog</a> (1)
</li>
<li> <li>
<a href="http://localhost:1313/categories/example/">Example</a> (1) <a href="http://localhost:1313/categories/example/">Example</a> (1)
</li> </li>

View File

@ -6,8 +6,15 @@
<description>Recent content in Categories on Let&#39;s fall in love</description> <description>Recent content in Categories on Let&#39;s fall in love</description>
<generator>Hugo</generator> <generator>Hugo</generator>
<language>en-us</language> <language>en-us</language>
<lastBuildDate>Mon, 28 Apr 2025 00:44:05 +0800</lastBuildDate> <lastBuildDate>Fri, 02 May 2025 14:42:07 +0800</lastBuildDate>
<atom:link href="http://localhost:1313/categories/index.xml" rel="self" type="application/rss+xml" /> <atom:link href="http://localhost:1313/categories/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Blog</title>
<link>http://localhost:1313/categories/blog/</link>
<pubDate>Fri, 02 May 2025 14:42:07 +0800</pubDate>
<guid>http://localhost:1313/categories/blog/</guid>
<description></description>
</item>
<item> <item>
<title>Example</title> <title>Example</title>
<link>http://localhost:1313/categories/example/</link> <link>http://localhost:1313/categories/example/</link>

31
public/css/muhehehe.css Normal file
View File

@ -0,0 +1,31 @@
.muhehehe,
.muhehehe a,
a .muhehehe,
.muhehehe a.new {
background-color: #252525;
color: #252525;
text-shadow: none;
}
.muhehehe:hover,
.muhehehe:active,
.muhehehe:hover .muhehehe,
.muhehehe:active .muhehehe {
color: white !important;
}
.muhehehe:hover a,
a:hover .muhehehe,
.muhehehe:active a,
a:active .muhehehe {
color: lightblue !important;
}
.muhehehe:hover .new,
.muhehehe .new:hover,
.new:hover .muhehehe,
.muhehehe:active .new,
.muhehehe .new:active,
.new:active .muhehehe {
color: #BA0000 !important;
}

View File

@ -15,15 +15,14 @@
<link rel="stylesheet" href="/css/style.css" /> <link rel="stylesheet" href="/css/style.css" />
<link rel="stylesheet" href="/css/fonts.css" /> <link rel="stylesheet" href="/css/fonts.css" />
<link rel="stylesheet" href="http://localhost:1313/css/theme-override.css"> <link rel="stylesheet" href="http://localhost:1313/css/theme-override.css">
<script>NekoType="black"</script> <script>NekoType = "black"</script>
<h1 id="nl"> <h1 id="nl">
<script src="/js/webneko.js"></script> <script src="/js/webneko.js"></script>
</h1> </h1>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.js"></script> <script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/contrib/auto-render.min.js" <script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/contrib/auto-render.min.js" onload="renderMathInElement(document.body, {
onload="renderMathInElement(document.body, {
delimiters: [ delimiters: [
{left: '$$', right: '$$', display: true}, {left: '$$', right: '$$', display: true},
{left: '$', right: '$', display: false}, {left: '$', right: '$', display: false},
@ -33,6 +32,8 @@
});"></script> });"></script>
<script src="https://cdn.jsdelivr.net/npm/typed.js@2.1.0/dist/typed.umd.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/typed.js@2.1.0/dist/typed.umd.min.js"></script>
<link rel="stylesheet" href="/css/muhehehe.css">
</head> </head>
<body> <body>
@ -75,7 +76,7 @@
<h1 id="hahahugoshortcode1s0hbhb"><script src="https://cdn.jsdelivr.net/npm/typeit@8.7.1/dist/index.umd.js"></script> <h1 id="hahahugoshortcode1s0hbhb"><script src="https://cdn.jsdelivr.net/npm/typeit@8.7.1/dist/index.umd.js"></script>
<div id="typeit-0"></div><script> <div id="typeit-0"></div><script>
document.addEventListener("DOMContentLoaded", function() { document.addEventListener("DOMContentLoaded", function () {
new TypeIt("#typeit-0", { new TypeIt("#typeit-0", {
strings:"欢迎来到互联网的尽头。\u003cbr\u003eWelcome to the end of the Internet.", strings:"欢迎来到互联网的尽头。\u003cbr\u003eWelcome to the end of the Internet.",
speed: "13", speed: "13",
@ -84,10 +85,11 @@ document.addEventListener("DOMContentLoaded", function() {
waitUntilVisible: true, waitUntilVisible: true,
lifeLike: true, lifeLike: true,
}) })
{ { - if eq $loop "false" } }
.exec(() => { .exec(() => {
instance.destroy(); instance.destroy();
}) })
{ { - end } }
.go(); .go();
}); });
</script></h1> </script></h1>
@ -141,7 +143,7 @@ document.addEventListener("DOMContentLoaded", function() {
<h1 id="whats-more">¿What&rsquo;s more?</h1> <h1 id="whats-more">¿What&rsquo;s more?</h1>
<p>这里暂时由木分镇的PeterAlexWain A.K.A paw维护。<br> <p>这里暂时由木分镇的PeterAlexWain A.K.A paw维护。<br>
这里(暂时或者很长一段时间)可能会充满低创与牢骚一类的没有任何营养价值的东西。<br> 这里(暂时或者很长一段时间)可能会充满低创与牢骚一类的没有任何营养价值的东西。<br>
paw很希望与你交换友链,(如果你不嫌弃的话,)请偷偷联系他交换友链。<br> paw很希望与你交换友链<span class="muhehehe" title=" qwq">如果嫌弃的话,</span>请偷偷联系他交换友链。
paw喜欢猫科动物喜欢Unix喜欢计算器喜欢Ruby喜欢沿着没有阳光的角落阴暗爬行喜欢一切可爱的东西当然还有你<br> paw喜欢猫科动物喜欢Unix喜欢计算器喜欢Ruby喜欢沿着没有阳光的角落阴暗爬行喜欢一切可爱的东西当然还有你<br>
paw喜欢很多东西但是又无能为力他的技术水平令人汗颜。<br> paw喜欢很多东西但是又无能为力他的技术水平令人汗颜。<br>
为什么说这里是互联网的尽头呢因为这里既不有趣也没有知识访问这里可能会让你痛苦就像paw活在现实世界一样<br> 为什么说这里是互联网的尽头呢因为这里既不有趣也没有知识访问这里可能会让你痛苦就像paw活在现实世界一样<br>
@ -158,6 +160,11 @@ By the way,paw iz bad at inglish,just lik hiz chinglish.<br>
<li>
<span class="date">2025/05/02</span>
<a href="/post/2025/05/02/%E8%AE%A9%E4%BD%A0%E7%9A%84hugo%E5%8D%9A%E5%AE%A2%E6%94%AF%E6%8C%81%E8%90%8C%E7%99%BE%E5%BC%8F%E7%9A%84%E9%BB%91%E5%B9%95/">让你的Hugo博客支持萌百式的黑幕</a>
</li>
<li> <li>
<span class="date">2025/04/28</span> <span class="date">2025/04/28</span>
<a href="/post/2025/04/28/helloworld/">Helloworld</a> <a href="/post/2025/04/28/helloworld/">Helloworld</a>

File diff suppressed because one or more lines are too long

View File

@ -14,15 +14,14 @@
<link rel="stylesheet" href="/css/style.css" /> <link rel="stylesheet" href="/css/style.css" />
<link rel="stylesheet" href="/css/fonts.css" /> <link rel="stylesheet" href="/css/fonts.css" />
<link rel="stylesheet" href="http://localhost:1313/css/theme-override.css"> <link rel="stylesheet" href="http://localhost:1313/css/theme-override.css">
<script>NekoType="black"</script> <script>NekoType = "black"</script>
<h1 id="nl"> <h1 id="nl">
<script src="/js/webneko.js"></script> <script src="/js/webneko.js"></script>
</h1> </h1>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.js"></script> <script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/contrib/auto-render.min.js" <script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/contrib/auto-render.min.js" onload="renderMathInElement(document.body, {
onload="renderMathInElement(document.body, {
delimiters: [ delimiters: [
{left: '$$', right: '$$', display: true}, {left: '$$', right: '$$', display: true},
{left: '$', right: '$', display: false}, {left: '$', right: '$', display: false},
@ -32,6 +31,8 @@
});"></script> });"></script>
<script src="https://cdn.jsdelivr.net/npm/typed.js@2.1.0/dist/typed.umd.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/typed.js@2.1.0/dist/typed.umd.min.js"></script>
<link rel="stylesheet" href="/css/muhehehe.css">
</head> </head>
<body> <body>
@ -69,7 +70,7 @@
<div class="article-meta"> <div class="article-meta">
<h1><span class="title">Helloworld</span></h1> <h1><span class="title">Helloworld</span></h1>
<h2 class="author">PeterAlexWain</h2> <h2 class="author">paw</h2>
<h2 class="date">2025/04/28</h2> <h2 class="date">2025/04/28</h2>
<p class="terms"> <p class="terms">

View File

@ -0,0 +1,178 @@
<!DOCTYPE html>
<html lang="en-us">
<head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script>
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png">
<link rel="manifest" href="/images/site.webmanifest">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="A simple, minimal blog for those who love text.">
<title>让你的Hugo博客支持萌百式的黑幕 | Let&#39;s fall in love</title>
<link rel="stylesheet" href="/css/style.css" />
<link rel="stylesheet" href="/css/fonts.css" />
<link rel="stylesheet" href="http://localhost:1313/css/theme-override.css">
<script>NekoType = "black"</script>
<h1 id="nl">
<script src="/js/webneko.js"></script>
</h1>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/contrib/auto-render.min.js" onload="renderMathInElement(document.body, {
delimiters: [
{left: '$$', right: '$$', display: true},
{left: '$', right: '$', display: false},
{left: '\\(', right: '\\)', display: false},
{left: '\\[', right: '\\]', display: true}
]
});"></script>
<script src="https://cdn.jsdelivr.net/npm/typed.js@2.1.0/dist/typed.umd.min.js"></script>
<link rel="stylesheet" href="/css/muhehehe.css">
</head>
<body>
<header>
<nav>
<ul>
<li class="pull-left ">
<a href="http://localhost:1313/">~/let&#39;s fall in love</a>
</li>
<li class="pull-left ">
<a href="/categories/">~/categories</a>
</li>
<li class="pull-left ">
<a href="/tags/">~/tags</a>
</li>
<li class="pull-right">
<a href="/index.xml">~/subscribe</a>
</li>
</ul>
</nav>
</header>
<div class="article-meta">
<h1><span class="title">让你的Hugo博客支持萌百式的黑幕</span></h1>
<h2 class="author">paw</h2>
<h2 class="date">2025/05/02</h2>
<p class="terms">
Categories: <a href="/categories/blog">blog</a>
Tags: <a href="/tags/css">css</a> <a href="/tags/muhehehe">muhehehe</a>
</p>
</div>
<div class="content-wrapper">
<main>
<blockquote>
<p>非常喜欢某明清时期知名文学评论家的一句话:&ldquo;paw有可能很可爱
<span class="muhehehe" title="出自《明朝-提瓦剌史》">但是paw很可爱有点不可能</span>&rdquo;</p>
<div style="text-align: right;">
——【清】甘雨
</div></blockquote>
<h1 id="tldr">TL;DR</h1>
<p>首先新建<code>static/css/muheheh.css</code>,并且内容为:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-css" data-lang="css"><span style="display:flex;"><span>.<span style="color:#a6e22e">muhehehe</span><span style="color:#f92672">,</span>
</span></span><span style="display:flex;"><span>.<span style="color:#a6e22e">muhehehe</span> <span style="color:#f92672">a</span><span style="color:#f92672">,</span>
</span></span><span style="display:flex;"><span><span style="color:#f92672">a</span> .<span style="color:#a6e22e">muhehehe</span><span style="color:#f92672">,</span>
</span></span><span style="display:flex;"><span>.<span style="color:#a6e22e">muhehehe</span> <span style="color:#f92672">a</span>.<span style="color:#a6e22e">new</span> {
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">background-color</span>: <span style="color:#ae81ff">#252525</span>;
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">color</span>: <span style="color:#ae81ff">#252525</span>;
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">text-shadow</span>: <span style="color:#66d9ef">none</span>;
</span></span><span style="display:flex;"><span>}
</span></span><span style="display:flex;"><span>.<span style="color:#a6e22e">muhehehe</span>:<span style="color:#a6e22e">hover</span><span style="color:#f92672">,</span>
</span></span><span style="display:flex;"><span>.<span style="color:#a6e22e">muhehehe</span>:<span style="color:#a6e22e">active</span><span style="color:#f92672">,</span>
</span></span><span style="display:flex;"><span>.<span style="color:#a6e22e">muhehehe</span>:<span style="color:#a6e22e">hover</span> .<span style="color:#a6e22e">muhehehe</span><span style="color:#f92672">,</span>
</span></span><span style="display:flex;"><span>.<span style="color:#a6e22e">muhehehe</span>:<span style="color:#a6e22e">active</span> .<span style="color:#a6e22e">muhehehe</span> {
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">color</span>: <span style="color:#66d9ef">white</span> <span style="color:#75715e">!important</span>;
</span></span><span style="display:flex;"><span>}
</span></span><span style="display:flex;"><span>.<span style="color:#a6e22e">muhehehe</span>:<span style="color:#a6e22e">hover</span> <span style="color:#f92672">a</span><span style="color:#f92672">,</span>
</span></span><span style="display:flex;"><span><span style="color:#f92672">a</span>:<span style="color:#a6e22e">hover</span> .<span style="color:#a6e22e">muhehehe</span><span style="color:#f92672">,</span>
</span></span><span style="display:flex;"><span>.<span style="color:#a6e22e">muhehehe</span>:<span style="color:#a6e22e">active</span> <span style="color:#f92672">a</span><span style="color:#f92672">,</span>
</span></span><span style="display:flex;"><span><span style="color:#f92672">a</span>:<span style="color:#a6e22e">active</span> .<span style="color:#a6e22e">muhehehe</span> {
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">color</span>: <span style="color:#66d9ef">lightblue</span> <span style="color:#75715e">!important</span>;
</span></span><span style="display:flex;"><span>}
</span></span><span style="display:flex;"><span>.<span style="color:#a6e22e">muhehehe</span>:<span style="color:#a6e22e">hover</span> .<span style="color:#a6e22e">new</span><span style="color:#f92672">,</span>
</span></span><span style="display:flex;"><span>.<span style="color:#a6e22e">muhehehe</span> .<span style="color:#a6e22e">new</span>:<span style="color:#a6e22e">hover</span><span style="color:#f92672">,</span>
</span></span><span style="display:flex;"><span>.<span style="color:#a6e22e">new</span>:<span style="color:#a6e22e">hover</span> .<span style="color:#a6e22e">muhehehe</span><span style="color:#f92672">,</span>
</span></span><span style="display:flex;"><span>.<span style="color:#a6e22e">muhehehe</span>:<span style="color:#a6e22e">active</span> .<span style="color:#a6e22e">new</span><span style="color:#f92672">,</span>
</span></span><span style="display:flex;"><span>.<span style="color:#a6e22e">muhehehe</span> .<span style="color:#a6e22e">new</span>:<span style="color:#a6e22e">active</span><span style="color:#f92672">,</span>
</span></span><span style="display:flex;"><span>.<span style="color:#a6e22e">new</span>:<span style="color:#a6e22e">active</span> .<span style="color:#a6e22e">muhehehe</span> {
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">color</span>: <span style="color:#ae81ff">#BA0000</span> <span style="color:#75715e">!important</span>;
</span></span><span style="display:flex;"><span>}
</span></span></code></pre></div><p>然后在你的主题引入的外部header中添加上</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-css" data-lang="css"><span style="display:flex;"><span><span style="color:#f92672">&lt;</span><span style="color:#f92672">link</span> <span style="color:#f92672">rel</span><span style="color:#f92672">=</span><span style="color:#e6db74">&#34;stylesheet&#34;</span> <span style="color:#f92672">href</span><span style="color:#f92672">=</span><span style="color:#e6db74">&#34;/css/muhehehe.css&#34;</span><span style="color:#f92672">&gt;</span>
</span></span></code></pre></div><p>作为范例paw的博客主题所引入的的外部header为<code>layouts/partials/head_custom.html</code><br>
最后,我们<span class="muhehehe" title=" qwq">为了少些几行代码</span>再新建一个shortcode文件地址为<code>layouts/shortcodes/muhehehe.html</code>,内容为</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-html" data-lang="html"><span style="display:flex;"><span>&lt;<span style="color:#f92672">span</span> <span style="color:#a6e22e">class</span><span style="color:#f92672">=</span><span style="color:#e6db74">&#34;muhehehe&#34;</span> <span style="color:#a6e22e">title</span><span style="color:#f92672">=</span><span style="color:#e6db74">&#34;{{ default &#34;</span> <span style="color:#a6e22e">qwq</span><span style="color:#960050;background-color:#1e0010">&#34;</span> <span style="color:#960050;background-color:#1e0010">(.</span><span style="color:#a6e22e">Get</span> <span style="color:#960050;background-color:#1e0010">&#34;</span><span style="color:#a6e22e">title</span><span style="color:#960050;background-color:#1e0010">&#34;</span> <span style="color:#960050;background-color:#1e0010">)</span> <span style="color:#960050;background-color:#1e0010">}}&#34;</span>&gt;{{ .Get &#34;text&#34; }}&lt;/<span style="color:#f92672">span</span>&gt;
</span></span></code></pre></div><p>这样就完成啦,接下来就可以在你的.md文章里使用</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-css" data-lang="css"><span style="display:flex;"><span>{<span style="color:#960050;background-color:#1e0010">{&lt;</span> <span style="color:#960050;background-color:#1e0010">muhehehe</span> <span style="color:#960050;background-color:#1e0010">text=&#34;你想说的话&#34;</span> <span style="color:#960050;background-color:#1e0010">title=&#34;鼠标放上去时会显示的内容默认为qwq&#34;</span> <span style="color:#960050;background-color:#1e0010">&gt;</span>}<span style="color:#960050;background-color:#1e0010">}</span>
</span></span></code></pre></div><p>来实现萌娘百科一样的黑幕效果啦。<br>
效果:<span class="muhehehe" title="鼠标放上去时会显示的内容默认为qwq">你想说的话</span></p>
<h1 id="qa环节之为什么这个项目要叫做muhehehe呢">QA环节之为什么这个项目要叫做&quot;muhehehe&quot;</h1>
<p>A:因为muhehehe很像是<a href="https://www.bilibili.com/video/BV1mUP1erExj/">可爱小猫的奸奇笑声</a>。尽管可爱小猫正在奸笑,但是也没人能拒他;<span class="muhehehe" title=" qwq">就像没人能拒绝你一样。</span></p>
<a href="/"> >> Home</a>
</main>
</div>
<footer>
<script>
(function() {
function center_el(tagName) {
var tags = document.getElementsByTagName(tagName), i, tag;
for (i = 0; i < tags.length; i++) {
tag = tags[i];
var parent = tag.parentElement;
if (parent.childNodes.length === 1) {
if (parent.nodeName === 'A') {
parent = parent.parentElement;
if (parent.childNodes.length != 1) continue;
}
if (parent.nodeName === 'P') parent.style.textAlign = 'center';
}
}
}
var tagNames = ['img', 'embed', 'object'];
for (var i = 0; i < tagNames.length; i++) {
center_el(tagNames[i]);
}
})();
</script>
<hr/>
© 2025 PeterAlexWain | <a href="https://github.com/goodroot/hugo-classic">Github</a> | <a href="https://keybase.io/goodroot">Keybase</a>
</footer>
</body>
</html>

View File

@ -14,15 +14,14 @@
<link rel="stylesheet" href="/css/style.css" /> <link rel="stylesheet" href="/css/style.css" />
<link rel="stylesheet" href="/css/fonts.css" /> <link rel="stylesheet" href="/css/fonts.css" />
<link rel="stylesheet" href="http://localhost:1313/css/theme-override.css"> <link rel="stylesheet" href="http://localhost:1313/css/theme-override.css">
<script>NekoType="black"</script> <script>NekoType = "black"</script>
<h1 id="nl"> <h1 id="nl">
<script src="/js/webneko.js"></script> <script src="/js/webneko.js"></script>
</h1> </h1>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.js"></script> <script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/contrib/auto-render.min.js" <script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/contrib/auto-render.min.js" onload="renderMathInElement(document.body, {
onload="renderMathInElement(document.body, {
delimiters: [ delimiters: [
{left: '$$', right: '$$', display: true}, {left: '$$', right: '$$', display: true},
{left: '$', right: '$', display: false}, {left: '$', right: '$', display: false},
@ -32,6 +31,8 @@
});"></script> });"></script>
<script src="https://cdn.jsdelivr.net/npm/typed.js@2.1.0/dist/typed.umd.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/typed.js@2.1.0/dist/typed.umd.min.js"></script>
<link rel="stylesheet" href="/css/muhehehe.css">
</head> </head>
<body> <body>
@ -79,6 +80,11 @@
<li>
<span class="date">2025/05/02</span>
<a href="/post/2025/05/02/%E8%AE%A9%E4%BD%A0%E7%9A%84hugo%E5%8D%9A%E5%AE%A2%E6%94%AF%E6%8C%81%E8%90%8C%E7%99%BE%E5%BC%8F%E7%9A%84%E9%BB%91%E5%B9%95/">让你的Hugo博客支持萌百式的黑幕</a>
</li>
<li> <li>
<span class="date">2025/04/28</span> <span class="date">2025/04/28</span>
<a href="/post/2025/04/28/helloworld/">Helloworld</a> <a href="/post/2025/04/28/helloworld/">Helloworld</a>

File diff suppressed because one or more lines are too long

View File

@ -2,25 +2,37 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml"> xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url> <url>
<loc>http://localhost:1313/categories/blog/</loc>
<lastmod>2025-05-02T14:42:07+08:00</lastmod>
</url><url>
<loc>http://localhost:1313/categories/</loc> <loc>http://localhost:1313/categories/</loc>
<lastmod>2025-04-28T00:44:05+08:00</lastmod> <lastmod>2025-05-02T14:42:07+08:00</lastmod>
</url><url> </url><url>
<loc>http://localhost:1313/categories/example/</loc> <loc>http://localhost:1313/tags/css/</loc>
<lastmod>2025-04-28T00:44:05+08:00</lastmod> <lastmod>2025-05-02T14:42:07+08:00</lastmod>
</url><url> </url><url>
<loc>http://localhost:1313/post/2025/04/28/helloworld/</loc> <loc>http://localhost:1313/tags/muhehehe/</loc>
<lastmod>2025-04-28T00:44:05+08:00</lastmod> <lastmod>2025-05-02T14:42:07+08:00</lastmod>
</url><url>
<loc>http://localhost:1313/</loc>
<lastmod>2025-04-28T00:44:05+08:00</lastmod>
</url><url>
<loc>http://localhost:1313/tags/markdown/</loc>
<lastmod>2025-04-28T00:44:05+08:00</lastmod>
</url><url> </url><url>
<loc>http://localhost:1313/post/</loc> <loc>http://localhost:1313/post/</loc>
<lastmod>2025-04-28T00:44:05+08:00</lastmod> <lastmod>2025-05-02T14:42:07+08:00</lastmod>
</url><url> </url><url>
<loc>http://localhost:1313/tags/</loc> <loc>http://localhost:1313/tags/</loc>
<lastmod>2025-04-28T00:44:05+08:00</lastmod> <lastmod>2025-05-02T14:42:07+08:00</lastmod>
</url><url>
<loc>http://localhost:1313/post/2025/05/02/%E8%AE%A9%E4%BD%A0%E7%9A%84hugo%E5%8D%9A%E5%AE%A2%E6%94%AF%E6%8C%81%E8%90%8C%E7%99%BE%E5%BC%8F%E7%9A%84%E9%BB%91%E5%B9%95/</loc>
<lastmod>2025-05-02T14:42:07+08:00</lastmod>
</url><url>
<loc>http://localhost:1313/categories/example/</loc>
<lastmod>2025-05-01T10:08:03+08:00</lastmod>
</url><url>
<loc>http://localhost:1313/post/2025/04/28/helloworld/</loc>
<lastmod>2025-05-01T10:08:03+08:00</lastmod>
</url><url>
<loc>http://localhost:1313/tags/markdown/</loc>
<lastmod>2025-05-01T10:08:03+08:00</lastmod>
</url><url>
<loc>http://localhost:1313/</loc>
<lastmod>2025-05-01T10:33:37+08:00</lastmod>
</url> </url>
</urlset> </urlset>

125
public/tags/css/index.html Normal file
View File

@ -0,0 +1,125 @@
<!DOCTYPE html>
<html lang="en-us">
<head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script>
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png">
<link rel="manifest" href="/images/site.webmanifest">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="A simple, minimal blog for those who love text.">
<title>Css | Let&#39;s fall in love</title>
<link rel="stylesheet" href="/css/style.css" />
<link rel="stylesheet" href="/css/fonts.css" />
<link rel="stylesheet" href="http://localhost:1313/css/theme-override.css">
<script>NekoType = "black"</script>
<h1 id="nl">
<script src="/js/webneko.js"></script>
</h1>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/contrib/auto-render.min.js" onload="renderMathInElement(document.body, {
delimiters: [
{left: '$$', right: '$$', display: true},
{left: '$', right: '$', display: false},
{left: '\\(', right: '\\)', display: false},
{left: '\\[', right: '\\]', display: true}
]
});"></script>
<script src="https://cdn.jsdelivr.net/npm/typed.js@2.1.0/dist/typed.umd.min.js"></script>
<link rel="stylesheet" href="/css/muhehehe.css">
</head>
<body>
<header>
<nav>
<ul>
<li class="pull-left ">
<a href="http://localhost:1313/">~/let&#39;s fall in love</a>
</li>
<li class="pull-left ">
<a href="/categories/">~/categories</a>
</li>
<li class="pull-left current">
<a href="/tags/">~/tags</a>
</li>
<li class="pull-right">
<a href="/index.xml">~/subscribe</a>
</li>
</ul>
</nav>
</header>
<div class="content-wrapper">
<h1>Css</h1>
<ul>
<li>
<span class="date">2025/05/02</span>
<a href="/post/2025/05/02/%E8%AE%A9%E4%BD%A0%E7%9A%84hugo%E5%8D%9A%E5%AE%A2%E6%94%AF%E6%8C%81%E8%90%8C%E7%99%BE%E5%BC%8F%E7%9A%84%E9%BB%91%E5%B9%95/">让你的Hugo博客支持萌百式的黑幕</a>
</li>
</ul>
</div>
<footer>
<script>
(function() {
function center_el(tagName) {
var tags = document.getElementsByTagName(tagName), i, tag;
for (i = 0; i < tags.length; i++) {
tag = tags[i];
var parent = tag.parentElement;
if (parent.childNodes.length === 1) {
if (parent.nodeName === 'A') {
parent = parent.parentElement;
if (parent.childNodes.length != 1) continue;
}
if (parent.nodeName === 'P') parent.style.textAlign = 'center';
}
}
}
var tagNames = ['img', 'embed', 'object'];
for (var i = 0; i < tagNames.length; i++) {
center_el(tagNames[i]);
}
})();
</script>
<hr/>
© 2025 PeterAlexWain | <a href="https://github.com/goodroot/hugo-classic">Github</a> | <a href="https://keybase.io/goodroot">Keybase</a>
</footer>
</body>
</html>

19
public/tags/css/index.xml Normal file

File diff suppressed because one or more lines are too long

View File

@ -14,15 +14,14 @@
<link rel="stylesheet" href="/css/style.css" /> <link rel="stylesheet" href="/css/style.css" />
<link rel="stylesheet" href="/css/fonts.css" /> <link rel="stylesheet" href="/css/fonts.css" />
<link rel="stylesheet" href="http://localhost:1313/css/theme-override.css"> <link rel="stylesheet" href="http://localhost:1313/css/theme-override.css">
<script>NekoType="black"</script> <script>NekoType = "black"</script>
<h1 id="nl"> <h1 id="nl">
<script src="/js/webneko.js"></script> <script src="/js/webneko.js"></script>
</h1> </h1>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.js"></script> <script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/contrib/auto-render.min.js" <script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/contrib/auto-render.min.js" onload="renderMathInElement(document.body, {
onload="renderMathInElement(document.body, {
delimiters: [ delimiters: [
{left: '$$', right: '$$', display: true}, {left: '$$', right: '$$', display: true},
{left: '$', right: '$', display: false}, {left: '$', right: '$', display: false},
@ -32,6 +31,8 @@
});"></script> });"></script>
<script src="https://cdn.jsdelivr.net/npm/typed.js@2.1.0/dist/typed.umd.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/typed.js@2.1.0/dist/typed.umd.min.js"></script>
<link rel="stylesheet" href="/css/muhehehe.css">
</head> </head>
<body> <body>
@ -72,10 +73,18 @@
<ul class="terms"> <ul class="terms">
<li>
<a href="http://localhost:1313/tags/css/">Css</a> (1)
</li>
<li> <li>
<a href="http://localhost:1313/tags/markdown/">Markdown</a> (1) <a href="http://localhost:1313/tags/markdown/">Markdown</a> (1)
</li> </li>
<li>
<a href="http://localhost:1313/tags/muhehehe/">Muhehehe</a> (1)
</li>
</ul> </ul>
<footer> <footer>

View File

@ -6,8 +6,22 @@
<description>Recent content in Tags on Let&#39;s fall in love</description> <description>Recent content in Tags on Let&#39;s fall in love</description>
<generator>Hugo</generator> <generator>Hugo</generator>
<language>en-us</language> <language>en-us</language>
<lastBuildDate>Mon, 28 Apr 2025 00:44:05 +0800</lastBuildDate> <lastBuildDate>Fri, 02 May 2025 14:42:07 +0800</lastBuildDate>
<atom:link href="http://localhost:1313/tags/index.xml" rel="self" type="application/rss+xml" /> <atom:link href="http://localhost:1313/tags/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Css</title>
<link>http://localhost:1313/tags/css/</link>
<pubDate>Fri, 02 May 2025 14:42:07 +0800</pubDate>
<guid>http://localhost:1313/tags/css/</guid>
<description></description>
</item>
<item>
<title>Muhehehe</title>
<link>http://localhost:1313/tags/muhehehe/</link>
<pubDate>Fri, 02 May 2025 14:42:07 +0800</pubDate>
<guid>http://localhost:1313/tags/muhehehe/</guid>
<description></description>
</item>
<item> <item>
<title>Markdown</title> <title>Markdown</title>
<link>http://localhost:1313/tags/markdown/</link> <link>http://localhost:1313/tags/markdown/</link>

View File

@ -14,15 +14,14 @@
<link rel="stylesheet" href="/css/style.css" /> <link rel="stylesheet" href="/css/style.css" />
<link rel="stylesheet" href="/css/fonts.css" /> <link rel="stylesheet" href="/css/fonts.css" />
<link rel="stylesheet" href="http://localhost:1313/css/theme-override.css"> <link rel="stylesheet" href="http://localhost:1313/css/theme-override.css">
<script>NekoType="black"</script> <script>NekoType = "black"</script>
<h1 id="nl"> <h1 id="nl">
<script src="/js/webneko.js"></script> <script src="/js/webneko.js"></script>
</h1> </h1>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.js"></script> <script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/contrib/auto-render.min.js" <script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/contrib/auto-render.min.js" onload="renderMathInElement(document.body, {
onload="renderMathInElement(document.body, {
delimiters: [ delimiters: [
{left: '$$', right: '$$', display: true}, {left: '$$', right: '$$', display: true},
{left: '$', right: '$', display: false}, {left: '$', right: '$', display: false},
@ -32,6 +31,8 @@
});"></script> });"></script>
<script src="https://cdn.jsdelivr.net/npm/typed.js@2.1.0/dist/typed.umd.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/typed.js@2.1.0/dist/typed.umd.min.js"></script>
<link rel="stylesheet" href="/css/muhehehe.css">
</head> </head>
<body> <body>

View File

@ -6,7 +6,7 @@
<description>Recent content in Markdown on Let&#39;s fall in love</description> <description>Recent content in Markdown on Let&#39;s fall in love</description>
<generator>Hugo</generator> <generator>Hugo</generator>
<language>en-us</language> <language>en-us</language>
<lastBuildDate>Mon, 28 Apr 2025 00:44:05 +0800</lastBuildDate> <lastBuildDate>Thu, 01 May 2025 10:08:03 +0800</lastBuildDate>
<atom:link href="http://localhost:1313/tags/markdown/index.xml" rel="self" type="application/rss+xml" /> <atom:link href="http://localhost:1313/tags/markdown/index.xml" rel="self" type="application/rss+xml" />
<item> <item>
<title>Helloworld</title> <title>Helloworld</title>

View File

@ -0,0 +1,125 @@
<!DOCTYPE html>
<html lang="en-us">
<head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script>
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png">
<link rel="manifest" href="/images/site.webmanifest">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="A simple, minimal blog for those who love text.">
<title>Muhehehe | Let&#39;s fall in love</title>
<link rel="stylesheet" href="/css/style.css" />
<link rel="stylesheet" href="/css/fonts.css" />
<link rel="stylesheet" href="http://localhost:1313/css/theme-override.css">
<script>NekoType = "black"</script>
<h1 id="nl">
<script src="/js/webneko.js"></script>
</h1>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/contrib/auto-render.min.js" onload="renderMathInElement(document.body, {
delimiters: [
{left: '$$', right: '$$', display: true},
{left: '$', right: '$', display: false},
{left: '\\(', right: '\\)', display: false},
{left: '\\[', right: '\\]', display: true}
]
});"></script>
<script src="https://cdn.jsdelivr.net/npm/typed.js@2.1.0/dist/typed.umd.min.js"></script>
<link rel="stylesheet" href="/css/muhehehe.css">
</head>
<body>
<header>
<nav>
<ul>
<li class="pull-left ">
<a href="http://localhost:1313/">~/let&#39;s fall in love</a>
</li>
<li class="pull-left ">
<a href="/categories/">~/categories</a>
</li>
<li class="pull-left current">
<a href="/tags/">~/tags</a>
</li>
<li class="pull-right">
<a href="/index.xml">~/subscribe</a>
</li>
</ul>
</nav>
</header>
<div class="content-wrapper">
<h1>Muhehehe</h1>
<ul>
<li>
<span class="date">2025/05/02</span>
<a href="/post/2025/05/02/%E8%AE%A9%E4%BD%A0%E7%9A%84hugo%E5%8D%9A%E5%AE%A2%E6%94%AF%E6%8C%81%E8%90%8C%E7%99%BE%E5%BC%8F%E7%9A%84%E9%BB%91%E5%B9%95/">让你的Hugo博客支持萌百式的黑幕</a>
</li>
</ul>
</div>
<footer>
<script>
(function() {
function center_el(tagName) {
var tags = document.getElementsByTagName(tagName), i, tag;
for (i = 0; i < tags.length; i++) {
tag = tags[i];
var parent = tag.parentElement;
if (parent.childNodes.length === 1) {
if (parent.nodeName === 'A') {
parent = parent.parentElement;
if (parent.childNodes.length != 1) continue;
}
if (parent.nodeName === 'P') parent.style.textAlign = 'center';
}
}
}
var tagNames = ['img', 'embed', 'object'];
for (var i = 0; i < tagNames.length; i++) {
center_el(tagNames[i]);
}
})();
</script>
<hr/>
© 2025 PeterAlexWain | <a href="https://github.com/goodroot/hugo-classic">Github</a> | <a href="https://keybase.io/goodroot">Keybase</a>
</footer>
</body>
</html>

File diff suppressed because one or more lines are too long

31
static/css/muhehehe.css Normal file
View File

@ -0,0 +1,31 @@
.muhehehe,
.muhehehe a,
a .muhehehe,
.muhehehe a.new {
background-color: #252525;
color: #252525;
text-shadow: none;
}
.muhehehe:hover,
.muhehehe:active,
.muhehehe:hover .muhehehe,
.muhehehe:active .muhehehe {
color: white !important;
}
.muhehehe:hover a,
a:hover .muhehehe,
.muhehehe:active a,
a:active .muhehehe {
color: lightblue !important;
}
.muhehehe:hover .new,
.muhehehe .new:hover,
.new:hover .muhehehe,
.muhehehe:active .new,
.muhehehe .new:active,
.new:active .muhehehe {
color: #BA0000 !important;
}