From fec4c531dba0a30062136884316fdd96e3de2217 Mon Sep 17 00:00:00 2001 From: bisnsh Date: Fri, 15 Aug 2025 10:26:00 +0800 Subject: [PATCH] update --- _config.butterfly.yml | 2 +- _config.yml | 6 ++---- scaffolds/post.md | 2 ++ source/_posts/c-first-in-first.md | 33 +++++++++++++++++++++++++++++++ 4 files changed, 38 insertions(+), 5 deletions(-) create mode 100644 source/_posts/c-first-in-first.md diff --git a/_config.butterfly.yml b/_config.butterfly.yml index 2243b63..746f805 100644 --- a/_config.butterfly.yml +++ b/_config.butterfly.yml @@ -570,7 +570,7 @@ busuanzi: math: # Choose: mathjax, katex # Leave it empty if you don't need math - use: + use: mathjax per_page: true hide_scrollbar: false diff --git a/_config.yml b/_config.yml index f7491bb..3081f4b 100644 --- a/_config.yml +++ b/_config.yml @@ -69,13 +69,13 @@ index_generator: default_category: uncategorized category_map: 建站手札: website - 学习: learning - 编程: program + 学习: learning 随笔: essay tag_map: 网站: web 生活: life 英语: english + 编程: program # Metadata elements ## https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta @@ -211,8 +211,6 @@ aisummary: # 内容清洗设置 ignoreRules: # 可选:自定义内容清洗的正则规则 - # - "\\{%.*?%\\}" - # - "!\\[.*?\\]\\(.*?\\)" max_token: 5000 # 输入内容最大 token 长度(非输出限制) concurrency: 2 # 并发处理数,建议不高于 5hexo s diff --git a/scaffolds/post.md b/scaffolds/post.md index 1f9b9a4..03325e1 100644 --- a/scaffolds/post.md +++ b/scaffolds/post.md @@ -1,5 +1,7 @@ --- title: {{ title }} date: {{ date }} +categories: +series: tags: --- diff --git a/source/_posts/c-first-in-first.md b/source/_posts/c-first-in-first.md new file mode 100644 index 0000000..abc03df --- /dev/null +++ b/source/_posts/c-first-in-first.md @@ -0,0 +1,33 @@ +--- +title: C# 入门 +categories: 学习 +tags: C# +abbrlink: bc56f789 +date: 2025-08-15 09:56:17 +--- +今天开始学习C# +# 环境安装 +下载Visual Studio,社区版就可以 +{% link Visual Studio,Visual Studio,https://visualstudio.microsoft.com/zh-hans/downloads/ %} +下载的是安装器选择.Net桌面开发,注意修改安装位置 +
.Net 桌面开发
+ +# 第一个程序 +```c# +using System; +namespace HelloWorldApplication +{ + /* 类名为 HelloWorld */ + class HelloWorld + { + /* main函数 */ + static void Main(string[] args) + { + /* 我的第一个 C# 程序 */ + Console.WriteLine("Hello World!"); + Console.ReadKey(); + } + } +} +``` +这也是一个默认的格式 \ No newline at end of file