Hello world

Hello world

这是对博客运行的各方面的测试页面。

Hello! This is my blog. This is just a test.

图片

Hexo Icarus内置Justified Gallery,需要使用如下方式插入图片

1
{% img /gallery/dog.jpg "Image title" %}

或者使用HTML的方式

1
2
3
<div class="justified-gallery">
<img src="/gallery/dog.jpg" alt="puppies" />
</div>

测试,如何同步文件夹?将根目录改成source

或者使用图床。

1
[![RTvTZ8.jpg](https://z3.ax1x.com/2021/07/06/RTvTZ8.jpg)](https://imgtu.com/i/RTvTZ8) #使用图床网站

RTvTZ8.jpg

图床网站

代码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Copyright (c) 2021
"""This is just a test for showing code."""
import os
import sys

class welcome:
def __init__(self, date):
self.welcome = 1
self.date = date
if self.welcome:
print('Welcome')
def hello():
print("hello world!")
if __name__ == "__main__":
hello()
#----------------------------------------------------------------------------

无序列表

  • 甲乙丙丁
    • 戊己庚辛

表格

博客 作者
也无风雨也无晴 ivy

图表

1
2
3
4
5
6
7
8
9
10
11
12
13
participant begin
participant C
participant B
participant A
Note over C: By listing the\n participants you can\n change their order
A->B: horizontal descriptive sentence\n(normal line)
B-->A: dashed line
C->>D: Open arrow
D-->>A: Dashed open arrow
C-->>A:
Note right of B: note to the\n right of B
Note over A:note over A
Note over A,B: Note over both A and B
%% Example with selection of syntaxes
        gantt
        dateFormat  YYYY-MM-DD
        title Adding GANTT diagram functionality to mermaid

        section A section
        Completed task            :done,    des1, 2014-01-06,2014-01-08
        Active task               :active,  des2, 2014-01-09, 3d
        Future task               :         des3, after des2, 5d
        Future task2               :         des4, after des3, 5d

        section Critical tasks
        Completed task in the critical line :crit, done, 2014-01-06,24h
        Implement parser and jison          :crit, done, after des1, 2d
        Create tests for parser             :crit, active, 3d
        Future task in critical line        :crit, 5d
        Create tests for renderer           :2d
        Add to mermaid                      :1d

        section Documentation
        Describe gantt syntax               :active, a1, after des1, 3d
        Add gantt diagram to demo page      :after a1  , 20h
        Add another diagram to demo page    :doc1, after a1  , 48h

        section Last section
        Describe gantt syntax               :after doc1, 3d
        Add gantt diagram to demo page      : 20h
        Add another diagram to demo page    : 48h

HTML

以下使用HTML代码写成

链接

icarus用户指南

公式

需要开启配置文件中的plugins的mathjax。使用TEXTEX语法时,请使用$包裹行内公式,$$包裹块状公式。健壮性很低。在Typora内可以显示,但在网页显示时常出错。也可能是语法比较严格,多写几遍咯。

1
2
3
4
5
6
7
8
9
$$\displaystyle \frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} = 
1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}}
{1+\frac{e^{-8\pi}} {1+\cdots} } } }$$

$$\max_{G}V(D,G)=E_{z \sim P_{z}(z)}[logD(G(z))]\tag{2-1}$$

$ \theta^*= \arg \max_{\theta}\prod^{m}_{i=1}{P_G(x^i; \theta)}$

$ \approx \arg \max_{\theta}\int_x P_{data}(x)log P_G(x; \theta)dx- \int_x P_{data} log P_{data}(x)dx$

$$\displaystyle \frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} =
1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}}
{1+\frac{e^{-8\pi}} {1+\cdots} } } }$$

$$\max_{G}V(D,G)=E_{z \sim P_{z}(z)}[logD(G(z))]\tag{2-1}$$

$ \theta^*= \arg \max_{\theta}\prod^{m}_{i=1}{P_G(x^i; \theta)}$

$ \approx \arg \max_{\theta}\int_x P_{data}(x)log P_G(x; \theta)dx- \int_x P_{data} log P_{data}(x)dx$

mathjax/LaTex公式格式查找

Typora公式支持文档

音乐

使用Aplayer,一个HTML5音乐播放器,GitHub地址

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{% meting "002j785c33YQHT" "tencent" "song" %} #似乎不行呢
{% aplayer "一路向北" "Jay" "https://www.ytmp3.cn/down/69847.mp3" "https://z3.ax1x.com/2021/07/06/RTvTZ8.jpg" "autoplay" %} #autoplay还是算了

{% aplayerlist %}
{
"narrow": false, // (可选)播放器袖珍风格
"autoplay": false, // (可选) 自动播放,移动端浏览器暂时不支持此功能
"mode": "random", // (可选)曲目循环类型,有 'random'(随机播放), 'single' (单曲播放), 'circulation' (循环播放), 'order' (列表播放), 默认:'circulation'
"showlrc": 3, // (可选)歌词显示配置项,可选项有:1,2,3
"mutex": false, // (可选)该选项开启时,如果同页面有其他 aplayer 播放,该播放器会暂停
"theme": "#e6d0b2", // (可选)播放器风格色彩设置,默认:#b7daff
"preload": "metadata", // (可选)音乐文件预载入模式,可选项: 'none' 'metadata' 'auto', 默认: 'auto'
"listmaxheight": "513px", // (可选) 该播放列表的最大长度
"music": [
{
"title": "可爱女人",
"author": "Jay",
"url": "https://www.ytmp3.cn/down/53696.mp3",
"pic": "https://z3.ax1x.com/2021/07/06/RTvTZ8.jpg",
},
{
"title": "一路向北",
"author": "Jay",
"url": "https://www.ytmp3.cn/down/69847.mp3",
"pic": "https://z3.ax1x.com/2021/07/06/RTvTZ8.jpg",
}
]
}
{% endaplayerlist %}

{% aplayerlist %}{"mode": "random","narrow":false,"autoplay": false,"music": [{"title": "可爱女人","author": "Jay","url": "https://www.ytmp3.cn/down/53696.mp3"},{"title": "北","author": "Jay","url": "https://www.ytmp3.cn/down/69847.mp3"}]}{% endaplayerlist %}

        

        

音乐外链网站

1
2
3
4
5
6
<audio controls>    
<source src="https://www.ytmp3.cn/down/53696.mp3" type="audio/mpeg">
</audio>
<audio controls autoplay>
<source src="/music/Berliner Philharmoniker _ 小澤征爾Symphony No_ 1 in C Minor, WAB 101.mp3" type="audio/mpeg">
</audio>

END

作者

ivy

发布于

2020-06-19

更新于

2023-03-25

许可协议

CC BY-NC-SA 4.0

评论