From 56a0cc2e9b3ff0de3384088749a20af97055682c Mon Sep 17 00:00:00 2001 From: jackfiled Date: Sun, 28 Jul 2024 14:03:54 +0800 Subject: [PATCH] fix: styles of title and subtitles. --- YaeBlog.Core/Services/RendererService.cs | 29 +++++----- YaeBlog/Components/BlogInformationCard.razor | 21 ++++---- YaeBlog/source/2021-final.md | 2 - YaeBlog/source/2022-final.md | 2 - YaeBlog/source/2022-summer-vacation.md | 3 -- YaeBlog/source/big-homework.md | 2 - YaeBlog/source/build-blog-record.md | 6 +-- YaeBlog/source/c-include-problems.md | 1 - YaeBlog/source/compile-mediapipe.md | 3 +- YaeBlog/source/daily-linux-0.md | 3 -- YaeBlog/source/daily-linux-1.md | 2 - YaeBlog/source/daily-linux-2.md | 2 - YaeBlog/source/daily-linux-3.md | 2 - YaeBlog/source/dotnet-come-to-go.md | 48 ----------------- YaeBlog/source/environment-setting.md | 2 - YaeBlog/source/genshin-gacha-1.md | 2 +- YaeBlog/source/install-pytorch.md | 4 +- YaeBlog/source/laptop-for-computer.md | 2 - YaeBlog/source/linux-genshin-cloud.md | 3 -- YaeBlog/source/minecraft-wayland.md | 4 +- YaeBlog/source/post-calendar.md | 54 ------------------- YaeBlog/source/post-calendar/Activity.png | 3 -- YaeBlog/source/post-calendar/Calendar.png | 3 -- YaeBlog/source/post-calendar/DDL.png | 3 -- YaeBlog/source/program-design-introduction.md | 4 +- YaeBlog/source/qt-learning.md | 2 - YaeBlog/source/question-in-install-vs-2019.md | 1 - .../source/spring-boot-custom-authorize.md | 3 +- YaeBlog/source/using-vpn-elegant.md | 2 +- YaeBlog/source/vscode-in-browser.md | 1 - YaeBlog/source/wsl-setup-csapp.md | 3 -- YaeBlog/wwwroot/globals.css | 9 ++++ 32 files changed, 45 insertions(+), 186 deletions(-) delete mode 100644 YaeBlog/source/dotnet-come-to-go.md delete mode 100644 YaeBlog/source/post-calendar.md delete mode 100644 YaeBlog/source/post-calendar/Activity.png delete mode 100644 YaeBlog/source/post-calendar/Calendar.png delete mode 100644 YaeBlog/source/post-calendar/DDL.png diff --git a/YaeBlog.Core/Services/RendererService.cs b/YaeBlog.Core/Services/RendererService.cs index 0e82fdb..be69f7e 100644 --- a/YaeBlog.Core/Services/RendererService.cs +++ b/YaeBlog.Core/Services/RendererService.cs @@ -1,6 +1,7 @@ using System.Collections.Concurrent; using System.Diagnostics; using System.Text; +using System.Text.RegularExpressions; using Markdig; using Microsoft.Extensions.Logging; using YaeBlog.Core.Abstractions; @@ -11,7 +12,7 @@ using YamlDotNet.Serialization; namespace YaeBlog.Core.Services; -public class RendererService(ILogger logger, +public partial class RendererService(ILogger logger, EssayScanService essayScanService, MarkdownPipeline markdownPipeline, IDeserializer yamlDeserializer, @@ -172,30 +173,34 @@ public class RendererService(ILogger logger, } } + [GeneratedRegex(@"(?"; int pos = content.FileContent.IndexOf(delimiter, StringComparison.Ordinal); - StringBuilder builder = new(); + bool breakSentence = false; if (pos == -1) { // 自动截取前50个字符 pos = content.FileContent.Length < 50 ? content.FileContent.Length : 50; + breakSentence = true; } - for (int i = 0; i < pos; i++) + string rawContent = content.FileContent[..pos]; + MatchCollection matches = DescriptionPattern().Matches(rawContent); + + StringBuilder builder = new(); + foreach (Match match in matches) { - char c = content.FileContent[i]; + builder.Append(match.Value); + } - if (char.IsControl(c) || char.IsSymbol(c) || - char.IsSeparator(c) || char.IsPunctuation(c) || - char.IsAsciiLetter(c)) - { - continue; - } - - builder.Append(c); + if (breakSentence) + { + builder.Append("……"); } string description = builder.ToString(); diff --git a/YaeBlog/Components/BlogInformationCard.razor b/YaeBlog/Components/BlogInformationCard.razor index 6c85775..fd97c76 100644 --- a/YaeBlog/Components/BlogInformationCard.razor +++ b/YaeBlog/Components/BlogInformationCard.razor @@ -41,20 +41,17 @@ -
-
-
- 广而告之 -
+
+
+ 广而告之
+
-
-
-

- @(Options.Announcement) -

-
+
+
+

+ @(Options.Announcement) +

- diff --git a/YaeBlog/source/2021-final.md b/YaeBlog/source/2021-final.md index aeffade..e29deb8 100644 --- a/YaeBlog/source/2021-final.md +++ b/YaeBlog/source/2021-final.md @@ -5,8 +5,6 @@ tags: - 随笔 --- - -# 2021年终总结 2021年已经过去,2022年已经来临。每每一年开始的时候,我都会展开一张纸或者新建一个文档,思量着又是一年时光,也该同诸大杂志一般,写几句意味深长的话语,怀念过去的时光,也祝福未来的自己。可往往脑海中已是三万字的长篇,落在笔头却又是一个字都没有了。 如今跨年的时候已经过去,朋友圈中已经不见文案的踪影,我也该重新提笔,细说自己2021年中做过的种种。 diff --git a/YaeBlog/source/2022-final.md b/YaeBlog/source/2022-final.md index 70ff87e..f9c31f8 100644 --- a/YaeBlog/source/2022-final.md +++ b/YaeBlog/source/2022-final.md @@ -6,8 +6,6 @@ date: 2022-12-30 14:58:12 --- -# 2022年终总结 - 2022是困难的一年。我们需要为2023年做好准备。 diff --git a/YaeBlog/source/2022-summer-vacation.md b/YaeBlog/source/2022-summer-vacation.md index 1c5b359..3fab150 100644 --- a/YaeBlog/source/2022-summer-vacation.md +++ b/YaeBlog/source/2022-summer-vacation.md @@ -6,9 +6,6 @@ typora-root-url: 2022-summer-vacation date: 2022-08-22 15:39:13 --- - -# 2022年暑假总结 - 在8个月的漫长寒假的最后两个月,~~也就是俗称的暑假中~~,我都干了些什么? diff --git a/YaeBlog/source/big-homework.md b/YaeBlog/source/big-homework.md index 0af5f28..f8df144 100644 --- a/YaeBlog/source/big-homework.md +++ b/YaeBlog/source/big-homework.md @@ -7,8 +7,6 @@ typora-root-url: big-homework date: 2022-07-27 11:34:49 --- -# 代码大作业初体验 - 在大学也呆了一年了,终于遇上了第一个需要多人合作的写代码项目。从四月底分组完成,任务部署下来到七月初接近尾声,在这两个多月的时间里,也算是经历了不少,学到了不少。 diff --git a/YaeBlog/source/build-blog-record.md b/YaeBlog/source/build-blog-record.md index ac84ed2..e57c557 100644 --- a/YaeBlog/source/build-blog-record.md +++ b/YaeBlog/source/build-blog-record.md @@ -7,10 +7,6 @@ tags: --- -# 建立博客过程的记录 - -## 博客之始 - 当我已经在Python的浩瀚大海遨(zheng)游(zha)了半个暑假后,我决定尝试一下传说中程序员专用的学(zhuang)习(bi)手(fangfa)段(fa)——建立自己的个人博客。作为一个半懂不懂的Python程序员,心中冒出的第一个想法自然是采用Python的Django作为开发自己的个人博客的手段。然而,在阅读了[用Django搭建个人博客](https://www.dusaiphoto.com/article/2/)等的其他人搭建这类动态博客的过程记录之后,我便义无反顾的转向了采用javascript开发的博客框架[Hexo](https://hexo.io),说好的Python信仰呢。无他,唯简单尔。 @@ -454,4 +450,4 @@ nginx大部分的默认设置都没有改动,指设置了Let's Encrypt提供 一路上读了许多人的博客,已经无法一一指出,在此一并表示感谢。 -文中也不免有许多疏漏之处,因时间飞逝,当时遇到的一些问题也无法一一记录,还请诸位读者海涵。 \ No newline at end of file +文中也不免有许多疏漏之处,因时间飞逝,当时遇到的一些问题也无法一一记录,还请诸位读者海涵。 diff --git a/YaeBlog/source/c-include-problems.md b/YaeBlog/source/c-include-problems.md index 5037201..5993d12 100644 --- a/YaeBlog/source/c-include-problems.md +++ b/YaeBlog/source/c-include-problems.md @@ -7,7 +7,6 @@ typora-root-url: c-include-problems date: 2022-05-08 11:35:19 --- - 最近在完成一门`C`语言课程的大作业,课设老师要求我们将程序分模块的开发。在编写项目头文件的时候,遇到了一些令本菜鸡大开眼界的问题。 diff --git a/YaeBlog/source/compile-mediapipe.md b/YaeBlog/source/compile-mediapipe.md index cb7cb00..15bf441 100644 --- a/YaeBlog/source/compile-mediapipe.md +++ b/YaeBlog/source/compile-mediapipe.md @@ -6,8 +6,7 @@ tags: date: 2022-11-11 22:20:25 --- -# 编译MediaPipe框架 - +编译MediaPipe框架。 最近开始研究自己的大创项目,一个关于动作捕捉的小玩意儿,第一步就是~~抄袭开源代码~~借鉴他人优秀成果。在众多的项目中,我看上了这个Google开源的优秀框架,先把这个项目在本地上跑起来再说。这篇文章就记录了我编译这个框架的过程。 diff --git a/YaeBlog/source/daily-linux-0.md b/YaeBlog/source/daily-linux-0.md index 3c0730d..b5bd2ff 100644 --- a/YaeBlog/source/daily-linux-0.md +++ b/YaeBlog/source/daily-linux-0.md @@ -7,9 +7,6 @@ date: 2023-01-15 22:23:08 typora-root-url: daily-linux-0 --- - -# 日用Linux挑战 第0篇 - 在将开发重心移到`WSL`上一年之后,我最终还是决定完全抛弃Windows,转向使用Linux作为我日常使用的主力系统。目前,我已经使用Linux作为主力系统一个月了。 diff --git a/YaeBlog/source/daily-linux-1.md b/YaeBlog/source/daily-linux-1.md index 39f1377..abae00c 100644 --- a/YaeBlog/source/daily-linux-1.md +++ b/YaeBlog/source/daily-linux-1.md @@ -7,8 +7,6 @@ date: 2023-03-08 22:37:29 --- -# 日用Linux挑战第1篇 - 从去年12月底正式切换到`Linux`开始算起,我日常使用`Linux`已经过去了2个月的时间。在本系列的上一篇文章——[日用Linux挑战 第0篇 - Ricardo的博客](https://rrricardo.top/blog/2023/01/15/daily-linux-0/)中,我讲述了我配置自己的`Arch Linux`的过程,还小小的赞扬了一波`Linux`在近些年来取得的进展。但是在这篇文章中,我将重点指出日常使用过程中遇到的问题和困难。 diff --git a/YaeBlog/source/daily-linux-2.md b/YaeBlog/source/daily-linux-2.md index 0ef64b1..be84541 100644 --- a/YaeBlog/source/daily-linux-2.md +++ b/YaeBlog/source/daily-linux-2.md @@ -8,8 +8,6 @@ typora-root-url: daily-linux-2 --- -# 日用Linux挑战 第2篇 - 使用`Linux`6个月,我成功戒掉了原神。 diff --git a/YaeBlog/source/daily-linux-3.md b/YaeBlog/source/daily-linux-3.md index 8fd3f12..b1a6160 100644 --- a/YaeBlog/source/daily-linux-3.md +++ b/YaeBlog/source/daily-linux-3.md @@ -8,8 +8,6 @@ date: 2023-09-04 14:47:46 --- -# 日用Linux挑战 第三篇 - 成也开源,败也开源。 diff --git a/YaeBlog/source/dotnet-come-to-go.md b/YaeBlog/source/dotnet-come-to-go.md deleted file mode 100644 index e857908..0000000 --- a/YaeBlog/source/dotnet-come-to-go.md +++ /dev/null @@ -1,48 +0,0 @@ ---- -title: .net从入门到放弃再到入门 -tags: - - 技术笔记 - - dotnet -date: 2022-08-21 16:59:08 ---- - -# .net从入门到放弃再到入门 - -我宣布下面的内容都是我在胡扯。在写了一学期的`Java`和`Springboot`之后,我的评价是`Java`是什么垃圾东西,`C#`才是永远的神! - -~~这是一篇专业的.net劝退指南,详细记述了我为啥选择了.net又为啥选择了放弃。~~ - - - -### 开端——WPF桌面应用 - -~~在今年年初的时候,受到[通知大全](https://squidward.top/)启发,我决定编写一款自己的DDL管理应用程序。在一开始,我打算先在Windows平台上编写,当时我了解到Windows上最正统的桌面应用程序开发方式就是采用微软自家的.net平台开发,同时在[知乎](https://zhihu.com)上一群人在吹`C#`在设计上是如何如何的优于`JAVA`,当然在这里没有说他们的观点错误的意思,把我忽悠的一愣一愣的。.net在当时已经有了比较老旧的`WinForms`框架、比较流行的`WPF`框架和最新的`MAUI`框架。~~秉持着中国人中庸的思想潮流~~,我选择了`WPF`图形框架作为我当时开发的框架,从此入了.net平台的坑。~~ - -> 如今这个桌面端的项目已经基本烂尾,项目开源在[github](https://github.com/jackfiled/PostCalendarWindows),算是警醒后来的我在技术选型时应该更加的慎重 - -~~说实话,在开发的一开始,我就感觉力不从心。~~ - -~~第一,官方文档好但不完全好。微软虽然提供了本地化过的文档,但是有很大比例都是机翻的文档。我觉得吧,放机翻的文档还不如直接放英文原文的文档。同时,文档的大部分都是API列表一类的参考资料,对于初学者来说比较重要的“实用教程”等等部分内容较少,虽然文档全面而详细,但对于初学者来说并没有很大的帮助。毕竟我们不知道在数以万计的API中,哪个才能实现自己的需求。~~ - -~~第二,国内缺少.net相关的社区氛围。这点也是最为劝退的地方,相比于`JAVA`在国内广泛的应用和丰富的社区内容,国内.net和`C#`相关的内容除了在`Unity`游戏开发中还算广泛,其他称得上是乏善可陈。~~ - -~~在一堆好几年前的博客和半懂不懂的英文文档中沉浮一个月之后,我总算是写出了一个可以运行的成品。随着新学期的到来,以学业繁忙为借口,我停止了这个应用的开发。~~ - -### 重启——服务器开发 - -~~在经历了桌面应用的失败之后,我转移了自己的开发重心,开始了移动应用的开发,这次我没有坚持被微软的`MAUI`那八字还没有一撇的技术忽悠进去,选择了`flutter`框架搞开发。有应用自然就得有提供数据的后端,在开发服务器时,我又被微软的`ASP.NET`给“忽悠”了进去。~~ - -~~平心而论,`ASP.NET`开发的过程比上文中的桌面应用程序的开发还是要顺利不少。毕竟现在采用`B/S`架构的服务更多,个人感觉国内应用这项技术的人也不少,相关的技术资料也就不少,我入门的过程也就流畅许多。~~ - -~~虽然但是,在开发的过程中劝退的地方也不少。第一是微软自己的版本更迭,尤其是在微软宣布`dotnet core`,将.net开源之后,个人感觉国内的开发者似乎不是很感冒,还是用着原来的老一套。第二是和现在的技术流行方向不同,原本采用`JAVA`搞服务器的开发不太可能再更换语言,第二新入行的开发者也会选择当下流行的`GO`等语言,这就导致在开发中有一种单打独斗的感觉,很难找到人同你合作。~~ - -### 放弃 - -~~在坚持学习.net八个月之后,我还是决定放弃,转向学习`JAVA`。~~ - -- ~~没人用的技术的技术不要硬刚,即使是好技术也不要。没人用的技术就像一潭死水,只有流动起来,才能孕育生机和活力,否则只能在原地腐烂。~~ -- ~~之于我而言,语言不仅仅是开发软件的工具,更是需要计算机相关知识的工具。转向`JAVA`的原因之一就是我目前学习的数据结合课——伯克利的`CS61b`就是采用`JAVA`作为编程语言的。~~ - -~~虽然我已经决定将我的主力语言转向`JAVA`,~~但不得不承认`C#`在语言上的特性还是很不错的,以后我的重心不会放在`C#`上,但是他也不会从的技能树上消失。也许在若干年之后,我的主力语言又变回`C#`了(笑)。 - -> 全文的最后一句话可能是我现在唯一认同的了 \ No newline at end of file diff --git a/YaeBlog/source/environment-setting.md b/YaeBlog/source/environment-setting.md index e42583e..704c465 100644 --- a/YaeBlog/source/environment-setting.md +++ b/YaeBlog/source/environment-setting.md @@ -6,8 +6,6 @@ tags: typora-root-url: 环境配置 --- - -# 环境配置备忘录 电脑上的环境三天两头出问题,写下一个备忘录记录一下电脑上环境的配置过程。 diff --git a/YaeBlog/source/genshin-gacha-1.md b/YaeBlog/source/genshin-gacha-1.md index 50bfc96..278895a 100644 --- a/YaeBlog/source/genshin-gacha-1.md +++ b/YaeBlog/source/genshin-gacha-1.md @@ -5,7 +5,7 @@ tags: date: 2022-12-31 13:38:19 --- -# 原神抽卡研究一 +实际上是“概率论和随机过程”课程的期末小论文。 diff --git a/YaeBlog/source/install-pytorch.md b/YaeBlog/source/install-pytorch.md index f3cd14f..11f8314 100644 --- a/YaeBlog/source/install-pytorch.md +++ b/YaeBlog/source/install-pytorch.md @@ -7,7 +7,7 @@ tags: typora-root-url: 安装pytorch,来有深度的学习 --- -# 深度学习预备篇——安装深度学习框架——pytorch +鄙人在下不才我精通深度学习框架的安装和卸载。 @@ -238,4 +238,4 @@ True ## 写在最后 -在安装`pytorch`的这一路下来,我在网上查了无数的资料,似乎在安装`pytorch`的一路上就死了不少的人~~大概是因为他们是在Ubuntu上安装的~~,特别是调用`cuda`的那里。不过我按照[官方文档](https://pytorch.org/get-started/locally/)一路下来,没有出什么大的幺蛾子,只能说希望我自己的经历能对大家有所帮助吧。 \ No newline at end of file +在安装`pytorch`的这一路下来,我在网上查了无数的资料,似乎在安装`pytorch`的一路上就死了不少的人~~大概是因为他们是在Ubuntu上安装的~~,特别是调用`cuda`的那里。不过我按照[官方文档](https://pytorch.org/get-started/locally/)一路下来,没有出什么大的幺蛾子,只能说希望我自己的经历能对大家有所帮助吧。 diff --git a/YaeBlog/source/laptop-for-computer.md b/YaeBlog/source/laptop-for-computer.md index 7873899..d5aaff2 100644 --- a/YaeBlog/source/laptop-for-computer.md +++ b/YaeBlog/source/laptop-for-computer.md @@ -7,8 +7,6 @@ date: 2022-06-13 16:17:27 --- -# 大学生用啥配置——计算机专业 - > 本文是应B站UP主[远古时代装机猿](https://space.bilibili.com/35359510)发起的[大学生用啥配置](https://www.bilibili.com/video/BV1kZ4y1i7Le)公益活动而写 > > 目前某不知名211大学计算机专业在读 diff --git a/YaeBlog/source/linux-genshin-cloud.md b/YaeBlog/source/linux-genshin-cloud.md index 6434afe..189aa13 100644 --- a/YaeBlog/source/linux-genshin-cloud.md +++ b/YaeBlog/source/linux-genshin-cloud.md @@ -6,9 +6,6 @@ tags: date: 2023-10-09 23:56:34 --- - -# 解决云原神无法在Linux中浏览器下运行的问题 - 本文为转载`bilibili`用户[@SocialismTeen](https://space.bilibili.com/33027704)在他的[专栏](https://www.bilibili.com/read/cv26576757)中给出的解决办法。 diff --git a/YaeBlog/source/minecraft-wayland.md b/YaeBlog/source/minecraft-wayland.md index 9591e6f..645915f 100644 --- a/YaeBlog/source/minecraft-wayland.md +++ b/YaeBlog/source/minecraft-wayland.md @@ -6,10 +6,10 @@ tags: date: 2024-1-12 20:10:06 --- - - 让Minecraft游戏使用`Wayland`显示协议。 + + ## Update At 2024-2-24 在两天前,2024年的2月22日,`glfw`释出了一个新版本`3.4`。在新版本中,`glfw`大幅强化了对于`wayland`显示协议的支持,在默认情况下就会直接使用`wayland`显示协议。但是为了能够正常的运行`minecraft`,还需要对源代码进行修改: diff --git a/YaeBlog/source/post-calendar.md b/YaeBlog/source/post-calendar.md deleted file mode 100644 index 48ab983..0000000 --- a/YaeBlog/source/post-calendar.md +++ /dev/null @@ -1,54 +0,0 @@ ---- -title: PostCalendar介绍 -typora-root-url: PostCalendar介绍 -date: 2022-03-05 14:18:50 -tags: ---- - - -# PostCalendar介绍 - -> 本文是[PostCalendarWindows](https://https://github.com/jackfiled/PostCalendarWindows)README文件的国内镜像 - -一款集日程管理与DDL管理于一身的日历软件。 - -下载地址:[GithubRelease](https://github.com/jackfiled/PostCalendarWindows/releases) - -# 开发未完成,仍在内测阶段 - - -## 支持的功能 - -### 日历部分 - -![日历部分截图](Calendar.png) - -1. 支持日历事件的添加,删除,修改。 -2. 支持读取教务处自动生成的excel课表文件。 - -> 这个功能需要电脑上安装excel应用程序. -> -> 目前这个功能仅作实验性的支持,不保证excel读取的完全准确。 -> -> > 使用帮助:在教务处网站“学期理论课表”页面有打印按钮,可以下载一个excel表格。 -> > -> > 下载完成后,在软件里点击“导入excel课表”按钮,选择excel文件下载的位置,即可自动导入。 - -### DDL部分 - -![DDL部分截图](DDL.png) - -1. 支持DDL事件的添加,修改,完成,删除。 - -2. 可以将活动界面中DDL类型的事件直接添加到个人DDL中。 - -### 活动部分 - -![活动部分截图](Activity.png) - -**本部分未完成,设想中将与[DDL网站](http://squidward.top)的数据进行同步** - -## 使用方法 - -软件依赖于.net6.0,请点击[链接](https://dotnet.microsoft.com/zh-cn/download/dotnet/thank-you/runtime-desktop-6.0.2-windows-x64-installer)下载.net6.0运行时。 -在安装完成或者确认电脑上已安装.net6.0运行时之后,点击下载旁边的release包,双击下载文件中的PostCalendarWindows.exe即可使用。 diff --git a/YaeBlog/source/post-calendar/Activity.png b/YaeBlog/source/post-calendar/Activity.png deleted file mode 100644 index ea41cc4..0000000 --- a/YaeBlog/source/post-calendar/Activity.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cd0400f5618f0f7744f1ea9e0789801a66bc69c730026a8100a294367cb682de -size 27562 diff --git a/YaeBlog/source/post-calendar/Calendar.png b/YaeBlog/source/post-calendar/Calendar.png deleted file mode 100644 index 2a0e0a2..0000000 --- a/YaeBlog/source/post-calendar/Calendar.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2b08f66405ead44d7528490af47b31c60422323ad1df12df7647a907f94cfb98 -size 96413 diff --git a/YaeBlog/source/post-calendar/DDL.png b/YaeBlog/source/post-calendar/DDL.png deleted file mode 100644 index 19ed2d3..0000000 --- a/YaeBlog/source/post-calendar/DDL.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e99070903250f8daf8ee0a14f4db63ae79ae5d6270d9aade8f62976ab1198e38 -size 29290 diff --git a/YaeBlog/source/program-design-introduction.md b/YaeBlog/source/program-design-introduction.md index 1c007aa..1171fdd 100644 --- a/YaeBlog/source/program-design-introduction.md +++ b/YaeBlog/source/program-design-introduction.md @@ -5,8 +5,6 @@ tags: - 学习资料 --- - -# 程序设计与计算导论笔记 直接扒的老黄的PPT ,简直毫无参考价值。 不保证笔记的绝对正确性。 如果导致考试爆炸,不承担任何责任。 @@ -17,4 +15,4 @@ tags: ## 第二章——C语言概述 ![第二章](./program-design-introduction/2.png) -![第二章](./program-design-introduction/3.png) \ No newline at end of file +![第二章](./program-design-introduction/3.png) diff --git a/YaeBlog/source/qt-learning.md b/YaeBlog/source/qt-learning.md index fcdf4ac..c18cf5e 100644 --- a/YaeBlog/source/qt-learning.md +++ b/YaeBlog/source/qt-learning.md @@ -7,8 +7,6 @@ typora-root-url: qt-learning date: 2022-07-01 14:32:39 --- -# 初学Qt的一点小笔记 - 最近的大作业需要用 `C/C++`的技术栈实现一个图形化界面,`Qt`作为C++图形化框架久负盛名,正好借着这个写大作业的机会学习一下这个应用广泛的框架。 diff --git a/YaeBlog/source/question-in-install-vs-2019.md b/YaeBlog/source/question-in-install-vs-2019.md index 84cdfae..4abbaf6 100644 --- a/YaeBlog/source/question-in-install-vs-2019.md +++ b/YaeBlog/source/question-in-install-vs-2019.md @@ -5,7 +5,6 @@ tags: - 技术笔记 --- -# 安装Visual Studio 2019中遇到的坑 在某个月黑风高的夜晚,我在折腾了很久的Python之后,突然感觉自己应该去学学C和C++,于是乎我便打算折腾一下在vscode上写C和C++。在网上一番搜寻之后,我发现了这篇[知乎文章](https://zhuanlan.zhihu.com/p/87864677)和这篇[知乎文章](https://zhuanlan.zhihu.com/p/147366852),然后我就被安装MinGW编译器和配置一大堆的json文件给干碎了。
于是,我决定转向传说中的宇宙第一IDE——Visual Studio。
diff --git a/YaeBlog/source/spring-boot-custom-authorize.md b/YaeBlog/source/spring-boot-custom-authorize.md index c814566..85736d1 100644 --- a/YaeBlog/source/spring-boot-custom-authorize.md +++ b/YaeBlog/source/spring-boot-custom-authorize.md @@ -6,8 +6,7 @@ tags: date: 2023-07-29 15:20:02 --- - -# SpringBoot自定义注解实现权限控制 +如题。 diff --git a/YaeBlog/source/using-vpn-elegant.md b/YaeBlog/source/using-vpn-elegant.md index ac4bffe..e508d30 100644 --- a/YaeBlog/source/using-vpn-elegant.md +++ b/YaeBlog/source/using-vpn-elegant.md @@ -5,7 +5,7 @@ tags: - 技术笔记 --- -# 优雅地使用学校VPN +睿智的Global Protect! diff --git a/YaeBlog/source/vscode-in-browser.md b/YaeBlog/source/vscode-in-browser.md index df5f086..fabede1 100644 --- a/YaeBlog/source/vscode-in-browser.md +++ b/YaeBlog/source/vscode-in-browser.md @@ -5,7 +5,6 @@ tags: - 技术笔记 --- -# 无论何处,都可以使用自己定制的VSCode开发环境 众所周知,VSCode作为大微软家开发的开源编辑器,一经发布便受到了两广大程序员群体的欢迎。如果我们深入的了解一下VSCode,就会知道VSCode是基于Electron框架构建的Web应用程序,而Electron框架是基于Web技术来开发桌面应用程序,即VSCode只要稍加改造,就可以流畅的在浏览器中运行。那么我们如何才能在浏览器打开一个VSCode呢? 最简单的方法是在浏览器中输入[这个网址](https://vscode.dev),就可以在浏览器中打开一个VSCode Online,这个版本的VSCode可以支持打开本地的文件,并且进行编辑。不过这个编辑器并不支持大部分的插件,而且并不支持程序的编译与运行,并不是一个可以开箱即用的编辑器。那么还有什么办法可以让我们拥有一个联网即可得的个人定制化开发环境呢? diff --git a/YaeBlog/source/wsl-setup-csapp.md b/YaeBlog/source/wsl-setup-csapp.md index 0f41676..9b2c144 100644 --- a/YaeBlog/source/wsl-setup-csapp.md +++ b/YaeBlog/source/wsl-setup-csapp.md @@ -7,9 +7,6 @@ typora-root-url: wsl-setup-csapp date: 2022-09-03 19:02:58 --- - -# 利用WSL设置CSAPP实验环境 - `CSAPP`这本书为自学的学生们提供了不少的`LAB`供大家在联系中提高,但是这些`LAB`的编写普遍需要一个`Linux`的实验环境,但是目前大多数人手中的环境都是`Windows`平台,没有办法原生的运行这些`LAB`。在以前的实践中,这个问题往往是通过安装虚拟机来解决的,但是现在我们有了更好的解决方案——`Windows Subsystem for Linux`,简称`WSL`。 diff --git a/YaeBlog/wwwroot/globals.css b/YaeBlog/wwwroot/globals.css index 34e86f7..2a424fa 100644 --- a/YaeBlog/wwwroot/globals.css +++ b/YaeBlog/wwwroot/globals.css @@ -79,3 +79,12 @@ table thead th { table thead tr { border: 1px var(--bs-border-color) solid; } + +blockquote { + margin: 20px 0; + padding: 0 20px; + color: var(--bs-body-color); + background-color: var(--bs-primary-bg-subtle); + border-block-start: .1em solid var(--bs-primary-border-subtle); + border-block-end: .1em solid var(--bs-primary-border-subtle); +}