Skip to content

Commit

Permalink
Site Updates 20240204
Browse files Browse the repository at this point in the history
1. Apply updates in the theme repo
2. Change default behavior of markdown code snippet (now it will not display line number by default)
3. Update robots.txt
4. Add background pictures.
  • Loading branch information
MegaOwIer committed Feb 4, 2024
1 parent a41bf3a commit f86901e
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 15 deletions.
5 changes: 1 addition & 4 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ languages:
# title: موقع تجريبي
# weight: 3

# Change it to your Disqus shortname before using
disqusShortname: hugo-theme-stack

# GA Tracking ID
googleAnalytics: __googleAnalytics__

Expand Down Expand Up @@ -174,6 +171,6 @@ markup:
codeFences: true
guessSyntax: true
lineNoStart: 1
lineNos: true
lineNos: false
lineNumbersInTable: true
tabWidth: 4
6 changes: 3 additions & 3 deletions content/post/games101-1/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ categories:
- SJTU
description: 主要还是 review 一下之前写的作业代码
draft: true
lastmod: 2023-12-03
lastmod: 2024-02-04
---

## MVP 变换
Expand All @@ -31,7 +31,7 @@ Projection 所做的工作是透视投影,课上将其分成两个小步:先

代码模板里关于深度插值的代码段大概长成这样

```c++
```c++ {linenos=table}
auto [alpha, beta, gamma] = computeBarycentric2D(x, y, t.v);
float w_reciprocal = 1.0 / (alpha / v[0].w() + beta / v[1].w() + gamma / v[2].w());
float z_interpolated = alpha * v[0].z() / v[0].w() + beta * v[1].z() / v[1].w() + gamma * v[2].z() / v[2].w();
Expand Down Expand Up @@ -61,7 +61,7 @@ z_interpolated *= w_reciprocal;

这里给出一种可能的构造方式,证明从略。

```c++
```c++ {linenos=table}
Eigen::Vector3f _x, _y;
if (_n.x() == 0) {
_x << 0, -_n.z(), _n.y();
Expand Down
4 changes: 2 additions & 2 deletions content/post/legacy-2018-01-22/legacy-2018-01-22.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ categories:
- ICPC
description: 本文由原 CSDN 博客直接迁移而来,迁移时仅作最基础的格式修缮,不保证其内容格式与本站完全适配。
draft: false
lastmod: 2018-01-22
lastmod: 2024-02-04
---

## Description
Expand Down Expand Up @@ -70,7 +70,7 @@ $$

空间复杂度:$O(n^3)$

```c++
```c++ {linenos=table}
#include<bits/stdc++.h>
using namespace std;
const int MX=55;
Expand Down
2 changes: 1 addition & 1 deletion layouts/shortcodes/highlight-content.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ if (isset .Params "args") }}
{{ highlight (.Page.Resources.GetMatch (.Get "file")).Content (.Get "lang") (.Get "args") }}
{{ highlight (.Page.Resources.GetMatch (.Get "file")).Content (.Get "lang") (printf "linenos=table,%s" (.Get "args")) }}
{{ else }}
{{ highlight (.Page.Resources.GetMatch (.Get "file")).Content (.Get "lang") "linenos=table" }}
{{ end }}
Binary file added static/background/pixiv-113819513.jpg
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 static/background/pixiv-114090839.jpg
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 static/background/pixiv-114204163.jpg
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 static/background/pixiv-49383596.jpg
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 static/background/pixiv-57793944.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 3 additions & 4 deletions static/robots.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
User-agent: *
Disallow: /cgi-bin/
Disallow: /search/
Disallow: /archives/
Disallow: /categories/
Disallow: /tags/
Disallow: /search
Disallow: /categories
Disallow: /tags

Sitemap: https://blog.megaowier.cc/sitemap.xml

0 comments on commit f86901e

Please sign in to comment.