nwe post:muhehehe
This commit is contained in:
1 parent
a063092252
commit
a3986506d3
33 files changed
+898
-70
No files matched your search
+1
-1
@@ -25,7 +25,7 @@ TL;DR
|
||||
============
|
||||
这里(暂时)由木分镇的PeterAlexWain A.K.A paw维护。
|
||||
这里(暂时或者很长一段时间)可能会充满低创与牢骚一类的没有任何营养价值的东西。
|
||||
paw很希望与你交换友链,(如果你不嫌弃的话,)请偷偷联系他交换友链。
|
||||
paw很希望与你交换友链,{{< muhehehe text="如果嫌弃的话," >}}请偷偷联系他交换友链。
|
||||
paw喜欢猫科动物,喜欢Unix,喜欢计算器,喜欢Ruby,喜欢沿着没有阳光的角落阴暗爬行,喜欢一切可爱的东西(,当然还有你)。
|
||||
paw喜欢很多东西但是又无能为力,他的技术水平令人汗颜。
|
||||
为什么说这里是互联网的尽头呢?因为这里既不有趣也没有知识,访问这里可能会让你痛苦(,就像paw活在现实世界一样)。
|
||||
|
||||
@@ -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="就像没人能拒绝你一样。">}}
|
||||
@@ -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"]
|
||||
+++
|
||||
@@ -1,7 +1,7 @@
|
||||
+++
|
||||
date = '2025-04-28T00:44:05+08:00'
|
||||
draft = false
|
||||
author= "PeterAlexWain"
|
||||
author= "paw"
|
||||
title = 'Helloworld'
|
||||
categories = ["Example"]
|
||||
tags = ["Markdown"]
|
||||
@@ -108,11 +108,11 @@ doc](#an-h2-header). Here's a footnote [^1].
|
||||
|
||||
Tables can look like this:
|
||||
|
||||
size|material |color
|
||||
----|------------|------------
|
||||
9 |leather |brown
|
||||
10 |hemp canvas |natural
|
||||
11 |glass |transparent
|
||||
| size | material | color |
|
||||
| ---- | ----------- | ----------- |
|
||||
| 9 | leather | brown |
|
||||
| 10 | hemp canvas | natural |
|
||||
| 11 | glass | transparent |
|
||||
|
||||
Table: Shoes, their sizes, and what they're made of
|
||||
|
||||
|
||||
Reference in new issue
Block a user