Skip to content

Commit

Permalink
update temp i.loli link to repo cdn links
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuann-Kinoko committed Aug 8, 2024
1 parent a4535ca commit 384161f
Show file tree
Hide file tree
Showing 19 changed files with 387 additions and 74 deletions.
2 changes: 1 addition & 1 deletion content/posts/csp_s_drug_test.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
+++
title = "CSP-S测试 药品试验 题解"
thumbnail = 'https://i.loli.net/2019/11/08/9JiQw3Ef5W6TGse.jpg'
thumbnail = 'https://cdn.jsdelivr.net/gh/Fuann-Kinoko/[email protected]/posts/csps_s_drug_test.webp'
date = 2019-11-08
tags = ["OI"]
description = "数学"
Expand Down
2 changes: 1 addition & 1 deletion content/posts/otoge.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
+++
title = "音游成长记录"
thumbnail = 'https://i.loli.net/2019/11/01/K9GkpRHM3uNzQwv.jpg'
thumbnail = 'https://cdn.jsdelivr.net/gh/Fuann-Kinoko/[email protected]/posts/otoge.webp'
date = 2019-10-31
tags = ["随想", "音游"]
description = "我与音游"
Expand Down
10 changes: 5 additions & 5 deletions content/posts/random_math_thought.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
+++
title = "有关C(n+k-1,2k-1)的代数意义及证明"
thumbnail = 'https://i.loli.net/2020/02/09/C3KAxzGPo9TnSHq.jpg'
thumbnail = 'https://cdn.jsdelivr.net/gh/Fuann-Kinoko/[email protected]/posts/random_math_thought/random_math_thought.webp'
date = 2020-02-09
tags = ["随想", "math"]
description = "组合数学"
Expand Down Expand Up @@ -53,27 +53,27 @@ description = "组合数学"

将k元组$\alpha$与k维空间中的点$X(x_1,x_2,...,x_k)$对应,则$T(\alpha)$即为$\Omega(X)$中单位胞体的个数

![二维和三维图](https://i.loli.net/2020/02/09/T7Q5vxqmpu3nkhg.jpg)
![二维和三维图](https://cdn.jsdelivr.net/gh/Fuann-Kinoko/[email protected]/posts/random_math_thought/01.webp)

设A中元素对应的点集合为B,设$\Delta(X)$为$\Omega(X)$的单位胞体个数,则$\sum_{\alpha\in A}T(\alpha)=\sum_{X\in B}\Omega(X)$。

易知B中元素皆是空间$\delta:x_1+x_2+...+x_k=n$上的极点。

![二维图](https://i.loli.net/2020/02/09/4Ac9ilFNuwrJ3Px.jpg)
![二维图](https://cdn.jsdelivr.net/gh/Fuann-Kinoko/[email protected]/posts/random_math_thought/02.webp)

现在就要考虑每个单位胞体被计算的次数,即求它被多少个B中元素的生成胞体包含。



我们用一个单位胞体中,坐标之和最大的那个点来代指这个单位胞体。如果一个单位胞体$Q(q_1,q_2,...,q_k)$满足$n-(q_1+q_2+...+q_k)=i-1$,则称它位于第$i$层。

![二维图](https://i.loli.net/2020/02/09/xKgnE7Y6fSNJvcu.jpg)
![二维图](https://cdn.jsdelivr.net/gh/Fuann-Kinoko/[email protected]/posts/random_math_thought/03.webp)

因为在第$i$层的胞体Q满足$q_1+q_2+...+q_k=n-i+1$,所以这一层有$C_{i-1}^{k-1}$个单位胞体。注意到一个胞体Q被包含在点$P(p_1,p_2,...,p_k)$的生成胞体$\Omega(P)$中的充要条件是:

​ $\forall i\in{(1,2,...,k)},p_i>=q_i$成立

![二维图](https://i.loli.net/2020/02/09/cj4aEMvTOlI9Ktd.jpg)
![二维图](https://cdn.jsdelivr.net/gh/Fuann-Kinoko/[email protected]/posts/random_math_thought/04.webp)

因此可以得到,对于某个位于第$i$层的单位胞体Q,若B中的点X的生成胞体包含它,则

Expand Down
360 changes: 339 additions & 21 deletions themes/sakura/LICENSE

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions themes/sakura/archetypes/default.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
date = {{ .Date }}
draft = true
thumbnail = "Please place your thumbnail(1024x576) link"
+++
6 changes: 3 additions & 3 deletions themes/sakura/assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ a {
#banner_wave_1 {
width:auto;
height:65px;
background:url("https://cdn.jsdelivr.net/gh/honjun/[email protected]/img/other/wave1.png") repeat-x;
/* background:url("../images/wave1.png") repeat-x; */
_filter:alpha(opacity=80);
position:absolute;
bottom:0;
Expand All @@ -222,7 +222,7 @@ a {
#banner_wave_2 {
width:auto;
height:80px;
background:url("https://cdn.jsdelivr.net/gh/honjun/[email protected]/img/other/wave2.png") repeat-x;
/* background:url("../images/wave2.png") repeat-x; */
_filter:alpha(opacity=80);
position:absolute;
bottom:0;
Expand All @@ -249,7 +249,7 @@ a {
background-attachment:fixed
}
.headertop.filter-dot::before {
background-image:url(https://cdn.jsdelivr.net/gh/honjun/[email protected]/img/other/dot.gif)
background-image:url("../images/dot.gif")
}
#centerbg {
width:100%;
Expand Down
Binary file added themes/sakura/assets/images/404.webp
Binary file not shown.
Binary file added themes/sakura/assets/images/banner.webp
Binary file not shown.
Binary file added themes/sakura/assets/images/dot.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/sakura/assets/images/wave1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/sakura/assets/images/wave2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 6 additions & 4 deletions themes/sakura/hugo.toml → themes/sakura/config.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
baseURL = 'https://example.org/'
languageCode = 'en-US'
title = '不安きのこ'
title = 'My New Blog'

[[menus.main]]
name = 'Home'
Expand Down Expand Up @@ -47,6 +47,8 @@ weight = 30

[params]
[params.Images]
section = "https://cdn.jsdelivr.net/gh/Fuann-Kinoko/[email protected]/banner/placebo.webp"
taxonomy = "https://cdn.jsdelivr.net/gh/Fuann-Kinoko/[email protected]/banner/placebo.webp"
terms = "https://cdn.jsdelivr.net/gh/Fuann-Kinoko/[email protected]/banner/placebo.webp"
home = ""
# refer to static/banner/placebo.webp
section = "/banner/placebo.webp"
taxonomy = "/banner/placebo.webp"
terms = "/banner/placebo.webp"
12 changes: 8 additions & 4 deletions themes/sakura/layouts/_default/home.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{{ define "main" }}
{{ $wave1Image := resources.Get "images/wave1.png" | resources.Fingerprint }}
{{ $wave2Image := resources.Get "images/wave2.png" | resources.Fingerprint }}
{{ $bannerImage := resources.Get "images/banner.webp" | resources.Fingerprint }}
<div class="headertop filter-dot" style="height: auto;">
<div id="banner_wave_1" style="left: -1233px;"></div>
<div id="banner_wave_2" style="left: -1009px;"></div>
<figure id="centerbg" class="centerbg" style="background-image: url(&quot;https://cdn.jsdelivr.net/gh/Fuann-Kinoko/[email protected]/Covers/116.webp&quot;); height: 650px;">
<div id="banner_wave_1" style="left: -1233px; background: url(&quot;{{ $wave1Image.Permalink }}&quot;) repeat-x;"></div>
<div id="banner_wave_2" style="left: -1009px; background: url(&quot;{{ $wave2Image.Permalink }}&quot;) repeat-x;"></div>
<figure id="centerbg" class="centerbg" style="background-image: url(&quot;{{ $bannerImage.Permalink }}&quot;); height: 650px;">
</figure>
</div>

Expand All @@ -14,10 +17,11 @@
<article class="post post-list-thumb {{ if eq (mod $index 2) 0 }}post-list-thumb-left{{ else }}post-list-thumb-right{{ end }}">
<div class="post-thumbnail">
<a href="{{ .Permalink }}">
{{ $defaultImage := resources.Get "images/404.webp" | resources.Fingerprint }}
{{ with .Params.thumbnail }}
<img src="{{ . }}" alt="{{ $.Title }}">
{{ else }}
<img src="https://cdn.jsdelivr.net/gh/Fuann-Kinoko/[email protected]/posts/404.jpg" alt="{{ $.Title }}">
<img src="{{ $defaultImage.Permalink }}" alt="{{ $.Title }}">
{{ end }}
</a>
</div>
Expand Down
14 changes: 10 additions & 4 deletions themes/sakura/layouts/_default/list.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
{{ define "main" }}

<div class="pattern-center-blank"></div>
{{ $defaultImage := "https://cdn.jsdelivr.net/gh/Fuann-Kinoko/[email protected]/posts/404.jpg" }}
{{ $defaultImage := resources.Get "images/404.webp" | resources.Fingerprint }}

{{- $listImage := "" -}}

{{- $sectionImage := .Site.Params.Images.section }}
{{- $taxonomyImage := .Site.Params.Images.taxonomy }}
{{- $termsImage := .Site.Params.Images.terms }}

{{- if eq .Kind "section" -}}
{{- $listImage = .Site.Params.Images.section | default $defaultImage -}}
{{- $listImage = $sectionImage -}}
{{- else if eq .Kind "taxonomy" -}}
{{- $listImage = .Site.Params.Images.taxonomy | default $defaultImage -}}
{{- $listImage = $taxonomyImage -}}
{{- else if eq .Kind "terms" -}}
{{- $listImage = .Site.Params.Images.term | default $defaultImage -}}
{{- $listImage = $termsImage -}}
{{- else -}}
{{- $listImage = $defaultImage -}}
{{- end -}}
Expand Down
4 changes: 2 additions & 2 deletions themes/sakura/layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ <h1>{{ .Title }}</h1>
<!-- 文章页面 -->
<div class="pattern-center-blank"></div>

{{ $defaultImage := "https://cdn.jsdelivr.net/gh/Fuann-Kinoko/[email protected]/posts/404.jpg" }}
{{ $thumbnail := .Params.thumbnail | default $defaultImage }}
{{ $defaultImage := resources.Get "images/404.webp" | resources.Fingerprint }}
{{ $thumbnail := .Params.thumbnail | default $defaultImage.Permalink }}
<div class="pattern-center single-center">
<!-- 配图或备用图片 -->
<div class="pattern-attachment-img lazyload" style="background-image: url({{ $thumbnail }});" src="{{ $thumbnail }}" data-src="{{ $thumbnail }}"></div>
Expand Down
1 change: 0 additions & 1 deletion themes/sakura/layouts/partials/head.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
<link rel="stylesheet" href="../../static/css/style.css">
{{ partialCached "head/css.html" . }}
{{ partialCached "head/js.html" . }}
4 changes: 2 additions & 2 deletions themes/sakura/layouts/partials/list-entries.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<div class="post-entry">
<div class="feature">
<a href="{{ $entry.Permalink }}">
{{ $defaultImage := "https://cdn.jsdelivr.net/gh/Fuann-Kinoko/[email protected]/posts/404.jpg" }}
{{ $entryImage := $entry.Params.thumbnail | default $defaultImage }}
{{ $defaultImage := resources.Get "images/404.webp" | resources.Fingerprint }}
{{ $entryImage := $entry.Params.thumbnail | default $defaultImage.Permalink }}
{{ if . }}
<img width="150" height="150" src="{{ $entryImage }}" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" style="object-fit: cover;">
{{ end }}
Expand Down
Binary file added themes/sakura/static/banner/placebo.webp
Binary file not shown.
35 changes: 9 additions & 26 deletions themes/sakura/theme.toml
Original file line number Diff line number Diff line change
@@ -1,36 +1,19 @@
name = 'Theme name'
license = 'MIT'
licenselink = 'https://github.com/owner/repo/LICENSE'
description = 'Theme description'
name = 'Sakura Clone'
license = 'GPL 2.0'
licenselink = 'https://github.com/Fuann-Kinoko/hugo-theme-sakura-clone/LICENSE'
description = "An incomplete port of the Hexo theme 'Sakura', which was originally ported from the WordPress theme 'Sakura'"

# The home page of the theme, where the source can be found
homepage = 'https://github.com/owner/repo'

# If you have a running demo of the theme
demosite = 'https://owner.github.io/repo'
homepage = 'https://github.com/Fuann-Kinoko/hugo-theme-sakura-clone'

# Taxonomy terms
tags = ['blog', 'company']
features = ['some', 'awesome', 'features']

# If the theme has multiple authors
authors = [
{name = 'Name of author', homepage = 'Website of author'},
{name = 'Name of author', homepage = 'Website of author'}
]
tags = ['blog']

# If the theme has a single author
[author]
name = 'Your name'
homepage = 'Your website'
name = 'Fuann-Kinoko'

# If porting an existing theme
[original]
author = 'Name of original author'
homepage = 'Website of original author'
repo = 'https://github.com/owner/repo'

[pagination]
disableAliases = false
pagerSize = 2
path = 'page'
author = 'honjun'
repo = 'https://github.com/honjun/hexo-theme-sakura?tab=readme-ov-file'

0 comments on commit 384161f

Please sign in to comment.