Skip to content

Commit

Permalink
languageCode = "zh-CN"
Browse files Browse the repository at this point in the history
  • Loading branch information
CYRUS-STUDIO committed Aug 10, 2024
1 parent 7d7dfbc commit d5af1e4
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion hugo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
baseURL = 'https://cyrus-studio.github.io/blog/'
languageCode = 'en-us'
languageCode = "zh-CN"
title = 'CYRUS STUDIO'
theme = "ananke"
4 changes: 2 additions & 2 deletions public/404.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en-us">
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
Expand Down Expand Up @@ -37,7 +37,7 @@
<meta property="og:url" content="https://cyrus-studio.github.io/blog/404.html">
<meta property="og:site_name" content="CYRUS STUDIO">
<meta property="og:title" content="404 Page not found">
<meta property="og:locale" content="en_us">
<meta property="og:locale" content="zh_CN">
<meta property="og:type" content="website">

<meta itemprop="name" content="404 Page not found">
Expand Down
4 changes: 2 additions & 2 deletions public/categories/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en-us">
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
Expand Down Expand Up @@ -42,7 +42,7 @@
<meta property="og:url" content="https://cyrus-studio.github.io/blog/categories/">
<meta property="og:site_name" content="CYRUS STUDIO">
<meta property="og:title" content="Categories">
<meta property="og:locale" content="en_us">
<meta property="og:locale" content="zh_CN">
<meta property="og:type" content="website">

<meta itemprop="name" content="Categories">
Expand Down
2 changes: 1 addition & 1 deletion public/categories/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<link>https://cyrus-studio.github.io/blog/categories/</link>
<description>Recent content in Categories on CYRUS STUDIO</description>
<generator>Hugo</generator>
<language>en-us</language>
<language>zh-CN</language>
<atom:link href="https://cyrus-studio.github.io/blog/categories/index.xml" rel="self" type="application/rss+xml" />
</channel>
</rss>
4 changes: 2 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en-us">
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
Expand Down Expand Up @@ -42,7 +42,7 @@
<meta property="og:url" content="https://cyrus-studio.github.io/blog/">
<meta property="og:site_name" content="CYRUS STUDIO">
<meta property="og:title" content="CYRUS STUDIO">
<meta property="og:locale" content="en_us">
<meta property="og:locale" content="zh_CN">
<meta property="og:type" content="website">

<meta itemprop="name" content="CYRUS STUDIO">
Expand Down
2 changes: 1 addition & 1 deletion public/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<link>https://cyrus-studio.github.io/blog/</link>
<description>Recent content on CYRUS STUDIO</description>
<generator>Hugo</generator>
<language>en-us</language>
<language>zh-CN</language>
<lastBuildDate>Sat, 10 Aug 2024 16:09:41 +0800</lastBuildDate>
<atom:link href="https://cyrus-studio.github.io/blog/index.xml" rel="self" type="application/rss+xml" />
<item>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en-us">
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
Expand Down Expand Up @@ -64,7 +64,7 @@
choco install hugo -confirm 升级软件包:
choco upgrade hugo 卸载软件包:
choco uninstall hugo 验证安装:">
<meta property="og:locale" content="en_us">
<meta property="og:locale" content="zh_CN">
<meta property="og:type" content="article">
<meta property="article:section" content="posts">
<meta property="article:published_time" content="2024-08-10T15:08:54+08:00">
Expand Down
4 changes: 2 additions & 2 deletions public/posts/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en-us">
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
Expand Down Expand Up @@ -42,7 +42,7 @@
<meta property="og:url" content="https://cyrus-studio.github.io/blog/posts/">
<meta property="og:site_name" content="CYRUS STUDIO">
<meta property="og:title" content="Posts">
<meta property="og:locale" content="en_us">
<meta property="og:locale" content="zh_CN">
<meta property="og:type" content="website">

<meta itemprop="name" content="Posts">
Expand Down
2 changes: 1 addition & 1 deletion public/posts/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<link>https://cyrus-studio.github.io/blog/posts/</link>
<description>Recent content in Posts on CYRUS STUDIO</description>
<generator>Hugo</generator>
<language>en-us</language>
<language>zh-CN</language>
<lastBuildDate>Sat, 10 Aug 2024 16:09:41 +0800</lastBuildDate>
<atom:link href="https://cyrus-studio.github.io/blog/posts/index.xml" rel="self" type="application/rss+xml" />
<item>
Expand Down
2 changes: 1 addition & 1 deletion public/posts/page/1/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en-us">
<html lang="zh-CN">
<head>
<title>https://cyrus-studio.github.io/blog/posts/</title>
<link rel="canonical" href="https://cyrus-studio.github.io/blog/posts/">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en-us">
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
Expand Down Expand Up @@ -58,7 +58,7 @@
通过自定义 transform 来实现自定义的代码块样式来支持有道云docx的代码块
def ynote_docx_markdown_transform(document):...passresult = convert_to_markdown(docx_file, transform_document=ynote_docx_markdown_transform) 通过在自定义 transform 断点调试可以看到 document 都是由一个一个 Paragraph 组成的,代码块的 Bookmark 的 name 都是相同的,由此代码块其中一个特征就是相同且相邻的 Bookmark name。 但是有的代码块只是单独的一段 这时可以通过自定义 代码/bash 特征判断该 Paragraph 中的 Text 是不是一段 代码/bash。
def is_possible_code_or_bash(text):# 常见的代码关键字code_keywords = [r&#39;\bif\b&#39;, r&#39;\bfor\b&#39;, r&#39;\bwhile\b&#39;, r&#39;\bdef\b&#39;, r&#39;\bclass\b&#39;, r&#39;\breturn\b&#39;, r&#39;\bimport\b&#39;,r&#39;\bint\b&#39;, r&#39;\bfloat\b&#39;, r&#39;\bmain\b&#39;, r&#39;\binclude\b&#39;, r&#39;#include&#39;, r&#39;\becho\b&#39;, r&#39;\bcd\b&#39;,r&#39;\bgrep\b&#39;, r&#39;\bexit\b&#39;, r&#39;\belse\b&#39;, r&#39;\belif\b&#39;, r&#39;#!">
<meta property="og:locale" content="en_us">
<meta property="og:locale" content="zh_CN">
<meta property="og:type" content="article">
<meta property="article:section" content="posts">
<meta property="article:published_time" content="2024-08-10T16:09:41+08:00">
Expand Down
4 changes: 2 additions & 2 deletions public/tags/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en-us">
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
Expand Down Expand Up @@ -42,7 +42,7 @@
<meta property="og:url" content="https://cyrus-studio.github.io/blog/tags/">
<meta property="og:site_name" content="CYRUS STUDIO">
<meta property="og:title" content="Tags">
<meta property="og:locale" content="en_us">
<meta property="og:locale" content="zh_CN">
<meta property="og:type" content="website">

<meta itemprop="name" content="Tags">
Expand Down
2 changes: 1 addition & 1 deletion public/tags/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<link>https://cyrus-studio.github.io/blog/tags/</link>
<description>Recent content in Tags on CYRUS STUDIO</description>
<generator>Hugo</generator>
<language>en-us</language>
<language>zh-CN</language>
<atom:link href="https://cyrus-studio.github.io/blog/tags/index.xml" rel="self" type="application/rss+xml" />
</channel>
</rss>

0 comments on commit d5af1e4

Please sign in to comment.