-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.xml
More file actions
27 lines (27 loc) · 5.8 KB
/
index.xml
File metadata and controls
27 lines (27 loc) · 5.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Why1te@blog.io</title>
<link>https://youngtingwang.cn/</link>
<description>Recent content on Why1te@blog.io</description>
<generator>Hugo</generator>
<language>en-us</language>
<copyright>© Why1te</copyright>
<lastBuildDate>Mon, 02 Feb 2026 15:41:59 +0800</lastBuildDate>
<atom:link href="https://youngtingwang.cn/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>My First Blog</title>
<link>https://youngtingwang.cn/posts/2024/05/my-first-blog/</link>
<pubDate>Thu, 02 May 2024 10:35:08 +0800</pubDate>
<guid>https://youngtingwang.cn/posts/2024/05/my-first-blog/</guid>
<description><h2 id="welcome">Welcome</h2>
<p>a</p>
<div class="code-container">
 <div class="code-header">
 <span class="language-label">c</span>
 <button class="copy-code" onclick="copyCode(this)">Copy</button>
 </div>
 <div class="highlight">
 <div class="highlight"><div style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;">
<table style="border-spacing:0;padding:0;margin:0;border:0;"><tr><td style="vertical-align:top;padding:0;margin:0;border:0;">
<pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code><span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1
</span><span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">2
</span><span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">3
</span><span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">4
</span><span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">5
</span><span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">6
</span><span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">7
</span></code></pre></td>
<td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
<pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-c" data-lang="c"><span style="display:flex;"><span><span style="color:#ff79c6">#include</span> <span style="color:#ff79c6">&lt;stdio.h&gt;</span><span style="color:#ff79c6">
</span></span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#8be9fd">int</span> <span style="color:#50fa7b">main</span>()
</span></span><span style="display:flex;"><span>{
</span></span><span style="display:flex;"><span> <span style="color:#50fa7b">printf</span>(<span style="color:#f1fa8c">&#34;Hello why1te!!!&#34;</span>);
</span></span><span style="display:flex;"><span> <span style="color:#ff79c6">return</span> <span style="color:#bd93f9">0</span>;
</span></span><span style="display:flex;"><span>}</span></span></code></pre></td></tr></table>
</div>
</div>
 </div>
</div>

<script>
 function copyCode(button) {
 
 const codeContainer = button.closest('.code-container');

 
 const codeBlock = codeContainer.querySelector('.highlight table td:nth-child(2)');

 
 const codeText = codeBlock.innerText
 .trim() 
 .replace(/^\s*[\r\n]/gm, ''); 

 
 navigator.clipboard.writeText(codeText).then(() => {
 
 button.textContent = 'Copied';
 setTimeout(() => {
 button.textContent = 'Copy';
 }, 2000); 
 }).catch(err => {
 
 console.error('Failed to copy text: ', err);
 button.textContent = 'Failed to copy';
 });
 }
</script><blockquote>
<p>这是我的第一篇博客,以此作为一个开始,记录有趣的事情</p></description>
</item>
<item>
<title>About</title>
<link>https://youngtingwang.cn/about/</link>
<pubDate>Tue, 30 Jan 2024 15:45:52 +0800</pubDate>
<guid>https://youngtingwang.cn/about/</guid>
<description><h2 id="about-me">ABOUT ME</h2></description>
</item>
</channel>
</rss>