<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>追星 &#8211; CYFOR&#039;blog</title>
	<atom:link href="https://www.cyfor.cn/category/star/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.cyfor.cn</link>
	<description>是个人，还活着，争取再活几年</description>
	<lastBuildDate>Thu, 21 Aug 2025 07:24:15 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.5</generator>

<image>
	<url>https://www.cyfor.cn/wp-content/uploads/2020/04/cropped-狗粮-2-150x150.png</url>
	<title>追星 &#8211; CYFOR&#039;blog</title>
	<link>https://www.cyfor.cn</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>腾讯云EdgeOne Pages默认浅克隆无法获取全部项目Git记录</title>
		<link>https://www.cyfor.cn/%e8%85%be%e8%ae%af%e4%ba%91edgeone-pages%e9%bb%98%e8%ae%a4%e6%b5%85%e5%85%8b%e9%9a%86%e6%97%a0%e6%b3%95%e8%8e%b7%e5%8f%96%e5%85%a8%e9%83%a8%e9%a1%b9%e7%9b%aegit%e8%ae%b0%e5%bd%95/</link>
					<comments>https://www.cyfor.cn/%e8%85%be%e8%ae%af%e4%ba%91edgeone-pages%e9%bb%98%e8%ae%a4%e6%b5%85%e5%85%8b%e9%9a%86%e6%97%a0%e6%b3%95%e8%8e%b7%e5%8f%96%e5%85%a8%e9%83%a8%e9%a1%b9%e7%9b%aegit%e8%ae%b0%e5%bd%95/#respond</comments>
		
		<dc:creator><![CDATA[CYFOR]]></dc:creator>
		<pubDate>Fri, 13 Jun 2025 01:40:32 +0000</pubDate>
				<category><![CDATA[奇怪的技能]]></category>
		<category><![CDATA[追星]]></category>
		<category><![CDATA[CI/CD]]></category>
		<category><![CDATA[vuepress]]></category>
		<category><![CDATA[周杰伦]]></category>
		<category><![CDATA[开源]]></category>
		<category><![CDATA[网站]]></category>
		<category><![CDATA[腾讯云]]></category>
		<guid isPermaLink="false">https://www.cyfor.cn/?p=211</guid>

					<description><![CDATA[添加完整克隆的构建命令，解决腾讯云 EdgeOne Pages 浅克隆无法获取全部Git信息问题
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="1910" height="933" src="https://www.cyfor.cn/wp-content/uploads/2025/06/image-1.png" alt="JayChou's WIKI 更新日志" class="wp-image-215" srcset="https://www.cyfor.cn/wp-content/uploads/2025/06/image-1.png 1910w, https://www.cyfor.cn/wp-content/uploads/2025/06/image-1-300x147.png 300w, https://www.cyfor.cn/wp-content/uploads/2025/06/image-1-1024x500.png 1024w, https://www.cyfor.cn/wp-content/uploads/2025/06/image-1-768x375.png 768w, https://www.cyfor.cn/wp-content/uploads/2025/06/image-1-1536x750.png 1536w" sizes="(max-width: 1910px) 100vw, 1910px" /></figure>



<p>自从把 JayChou&#8217;s wiki 的 CI 迁移到腾讯云 EdgeOne Pages 就发现了一个问题，好像每个页面的撰写时间都是错的，全部显示的是最近一次构建的时间（实际上是最近一次提交的时间），一直想探究下怎么回事，是不是我项目配置有问题，之前检查过Vuepress-Hope有关页面元数据的的文档，没有发现任何我的项目存在错误的。</p>



<p>直到昨天想根据hope提供的插件方法在每个页面增加更新日志，提交更新后访问，每个页面的更新日志都是相同的最近一次提交的消息。试着访问了 Vercel 和 Netlify 的默认项目域名发现其他CICD平台都是正常展示的，这就不能忍了。</p>



<p>问了 DeepSeek 才得到正确答案，是因为<strong>腾讯云 EdgeOne Pages 的浅克隆机制</strong>：</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p><strong>默认浅克隆 (Shallow Clone)</strong>：</p>



<ul id="block-7d108256-a1e9-4223-ad79-36397062c1bb" class="wp-block-list">
<li>EdgeOne Pages 在构建时默认使用&nbsp;<code>git clone --depth=1</code>（只克隆最近一次提交）</li>



<li>导致 Git 插件无法访问完整历史记录，只能获取到最近一次提交信息</li>
</ul>
</blockquote>



<p>DeepSeek同时给出了解决办法：</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>方案一：强制深度克隆（推荐）</p>



<p>在&nbsp;<code>package.json</code>&nbsp;的构建命令前添加深度克隆指令：<br><code>"scripts": {<br>"prebuild": "git fetch --unshallow || true",<br>"build": "vuepress build src"<br>}</code></p>



<p>方案二：自定义构建命令</p>



<p><code>git config core.quotepath false &amp;&amp;<br>git fetch --unshallow &amp;&amp;<br>npm install &amp;&amp;<br>npm run build</code></p>
</blockquote>



<p>不想在项目Git提交记录拉屎测试了（拉了太多了），所以选择了在腾讯的控制台里改构建命令，注意 DeekSeek 给出的命令是有问题的，正确的构建命令应该是</p>



<p><code>git config core.quotepath false &amp;&amp; git fetch --unshallow &amp;&amp; pnpm docs:build</code></p>



<figure class="wp-block-image size-full"><img decoding="async" width="1750" height="866" src="https://www.cyfor.cn/wp-content/uploads/2025/06/image.png" alt="腾讯云 EdgeOne Pages 配置" class="wp-image-213" srcset="https://www.cyfor.cn/wp-content/uploads/2025/06/image.png 1750w, https://www.cyfor.cn/wp-content/uploads/2025/06/image-300x148.png 300w, https://www.cyfor.cn/wp-content/uploads/2025/06/image-1024x507.png 1024w, https://www.cyfor.cn/wp-content/uploads/2025/06/image-768x380.png 768w, https://www.cyfor.cn/wp-content/uploads/2025/06/image-1536x760.png 1536w" sizes="(max-width: 1750px) 100vw, 1750px" /></figure>



<p>重新部署，完美 一切都正常了。</p>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.cyfor.cn/%e8%85%be%e8%ae%af%e4%ba%91edgeone-pages%e9%bb%98%e8%ae%a4%e6%b5%85%e5%85%8b%e9%9a%86%e6%97%a0%e6%b3%95%e8%8e%b7%e5%8f%96%e5%85%a8%e9%83%a8%e9%a1%b9%e7%9b%aegit%e8%ae%b0%e5%bd%95/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>修改index.scss给VuePress增加图片左右滑动区块</title>
		<link>https://www.cyfor.cn/%e4%bf%ae%e6%94%b9index-scss%e7%bb%99vuepress%e5%a2%9e%e5%8a%a0%e5%9b%be%e7%89%87%e5%b7%a6%e5%8f%b3%e6%bb%91%e5%8a%a8%e5%8c%ba%e5%9d%97/</link>
					<comments>https://www.cyfor.cn/%e4%bf%ae%e6%94%b9index-scss%e7%bb%99vuepress%e5%a2%9e%e5%8a%a0%e5%9b%be%e7%89%87%e5%b7%a6%e5%8f%b3%e6%bb%91%e5%8a%a8%e5%8c%ba%e5%9d%97/#respond</comments>
		
		<dc:creator><![CDATA[CYFOR]]></dc:creator>
		<pubDate>Tue, 20 May 2025 03:00:22 +0000</pubDate>
				<category><![CDATA[奇怪的技能]]></category>
		<category><![CDATA[追星]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[vuepress]]></category>
		<category><![CDATA[开源]]></category>
		<category><![CDATA[网站]]></category>
		<guid isPermaLink="false">https://www.cyfor.cn/?p=202</guid>

					<description><![CDATA[通过在styles\index.scss添加自定义全局样式CSS，实现VuePress图片左右滑动效果
]]></description>
										<content:encoded><![CDATA[
<p>更新<a href="http://www.jaychou.wiki" target="_blank" rel="noopener">JayChou-Wiki</a>时从各处收集了很多历史图片资源，VuePress的是基于MarkDown文件生成的页面，所以支持md的插入图片语法和html标签。因为用了<a href="https://theme-hope.vuejs.press/zh/" target="_blank" rel="noopener">hope</a>主题，内置了<a href="https://theme-hope.vuejs.press/zh/guide/feature/photo-swipe.html" target="_blank" rel="noopener">图片预览插件</a>，实现了以下交互效果：<br></p>



<p>&#8211; 左右滑动按顺序浏览页面内其他的图片<br>&#8211; 查看图片的描述<br>&#8211; 对图片进行缩放<br>&#8211; 全屏浏览图片<br>&#8211; 下载图片<br>&#8211; 分享图片</p>



<p>但无法实现图片的左右滑动，当单个页面需要引用大量图片时，即便每张图片都单独设置了尺寸，也会显得很杂乱。找了很久解决方案，在hope页面的<a href="https://github.com/vuepress-theme-hope/vuepress-theme-hope/edit/main/docs/theme/src/zh/guide/feature/photo-swipe.md" target="_blank" rel="noopener">源码仓库</a>中发现作者本人是直接写的html平铺效果。</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="500" src="https://www.cyfor.cn/wp-content/uploads/2025/05/image-1024x500.png" alt="github-hope-photo-swipe.md" class="wp-image-203" srcset="https://www.cyfor.cn/wp-content/uploads/2025/05/image-1024x500.png 1024w, https://www.cyfor.cn/wp-content/uploads/2025/05/image-300x147.png 300w, https://www.cyfor.cn/wp-content/uploads/2025/05/image-768x375.png 768w, https://www.cyfor.cn/wp-content/uploads/2025/05/image-1536x751.png 1536w, https://www.cyfor.cn/wp-content/uploads/2025/05/image.png 1911w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption class="wp-element-caption">github-hope-photo-swipe.md</figcaption></figure>



<p>但是每个页面都单独写html也太麻烦了，所以使用AiAgent（忘记是阿里通义灵码还是腾讯CodeBuddy了，反正这种小任务都差不多）在<strong>src.vuepress\styles\index.scss</strong>添加了<a href="https://theme-hope.vuejs.press/zh/config/style.html" target="_blank" rel="noopener">自定义全局样式</a>，最终实现效果如下：</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="500" src="https://www.cyfor.cn/wp-content/uploads/2025/05/image-1-1024x500.png" alt="jaychou.wiki自定义vuepress图片左右滑动效果" class="wp-image-204" srcset="https://www.cyfor.cn/wp-content/uploads/2025/05/image-1-1024x500.png 1024w, https://www.cyfor.cn/wp-content/uploads/2025/05/image-1-300x147.png 300w, https://www.cyfor.cn/wp-content/uploads/2025/05/image-1-768x375.png 768w, https://www.cyfor.cn/wp-content/uploads/2025/05/image-1-1536x751.png 1536w, https://www.cyfor.cn/wp-content/uploads/2025/05/image-1.png 1911w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<pre class="wp-block-code"><code><code>// 图片滑动组件样式
.image-scroll-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin: 1rem 0;
}

.image-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 0;
}

.image-scroll-content {
  display: flex;
  gap: 1rem;
  padding: 0 1rem;
  min-width: max-content;
}

.image-scroll-content img {
  height: 200px;
  min-width: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

// 图片说明文本样式
.image-scroll-content figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-scroll-content figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}

@media (max-width: 768px) {
  .image-scroll-content img {
    height: 150px;
    min-width: 200px;
  }
  
  .image-scroll-content figcaption {
    font-size: 0.8rem;
  }
}</code></code></pre>



<p>使用时直接在页面中添加：</p>



<pre class="wp-block-code"><code>&lt;div class="image-scroll-container">
  &lt;div class="image-scroll-wrapper">
    &lt;div class="image-scroll-content">
        &lt;figure>
            &lt;img src="图片链接" alt="图片标签" />
            &lt;figcaption>图片显示名&lt;/figcaption>
        &lt;/figure>
    &lt;/div>
  &lt;/div>
&lt;/div></code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://www.cyfor.cn/%e4%bf%ae%e6%94%b9index-scss%e7%bb%99vuepress%e5%a2%9e%e5%8a%a0%e5%9b%be%e7%89%87%e5%b7%a6%e5%8f%b3%e6%bb%91%e5%8a%a8%e5%8c%ba%e5%9d%97/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>VuePress踩坑记录</title>
		<link>https://www.cyfor.cn/vuepress_boom/</link>
					<comments>https://www.cyfor.cn/vuepress_boom/#respond</comments>
		
		<dc:creator><![CDATA[CYFOR]]></dc:creator>
		<pubDate>Thu, 24 Apr 2025 09:05:32 +0000</pubDate>
				<category><![CDATA[奇怪的技能]]></category>
		<category><![CDATA[追星]]></category>
		<category><![CDATA[vuepress]]></category>
		<category><![CDATA[周杰伦]]></category>
		<category><![CDATA[开源]]></category>
		<guid isPermaLink="false">https://www.cyfor.cn/?p=176</guid>

					<description><![CDATA[这是一个创建了很久的页面，一直在草稿箱里&#46;&#46;&#46;]]></description>
										<content:encoded><![CDATA[
<p>这是一个创建了很久的页面，一直在草稿箱里，总觉得之前写过了什么东西，因为等cn域名备案所以没发布，但备案下来之后看竟然是空的。所以一直在草稿箱里。</p>



<p>好么，刚觉得这个需要删了，就给我贡献素材了</p>



<p>25-04-24 Markdown内的HTML标签内使用相对路径链接错误<br>可能因为vue是单页应用，html表格中不能直接使用/show/2001这样的相对路径导航，可以正常跳转但会导致页面样式错误，必须使用完整的https://链接<br>更新：好像不是因为这个，发布到线上之后发现问题还是存在！！应该是页面内容少就会出现这个问题，人麻了</p>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.cyfor.cn/vuepress_boom/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>JayChou&#8217;s wiki工作进度</title>
		<link>https://www.cyfor.cn/jaychous-wiki-list/</link>
					<comments>https://www.cyfor.cn/jaychous-wiki-list/#respond</comments>
		
		<dc:creator><![CDATA[CYFOR]]></dc:creator>
		<pubDate>Thu, 16 May 2024 04:02:20 +0000</pubDate>
				<category><![CDATA[追星]]></category>
		<category><![CDATA[周杰伦]]></category>
		<category><![CDATA[开源]]></category>
		<guid isPermaLink="false">https://www.cyfor.cn/?p=109</guid>

					<description><![CDATA[一个周杰伦百科集，详细记录周杰伦所有作品&#46;&#46;&#46;]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="649" height="416" src="https://www.cyfor.cn/wp-content/uploads/2024/05/4034970a304e251f95caf0e3dad2de177f3e6709f5d6.webp" alt="最伟大的作品" class="wp-image-110" style="width:840px;height:auto" srcset="https://www.cyfor.cn/wp-content/uploads/2024/05/4034970a304e251f95caf0e3dad2de177f3e6709f5d6.webp 649w, https://www.cyfor.cn/wp-content/uploads/2024/05/4034970a304e251f95caf0e3dad2de177f3e6709f5d6-300x192.webp 300w" sizes="auto, (max-width: 649px) 100vw, 649px" /></figure>



<p></p>



<p>一个周杰伦百科集，详细记录周杰伦所有作品、演出、访谈、影视等。目前整体工作进度5%。项目开源在Github，欢迎加入贡献内容。本项目由百度周杰伦吧驱动，数据来源自互联网。项目目标为全网最全面的周杰伦在线百科，收录全部作品、演出、访谈等。</p>



<ul class="wp-block-list">
<li>访问：<a data-type="link" data-id="www.jaychou.asia" href="http://www.jaychou.asia" target="_blank" rel="noopener">JayChou&#8217;s wiki</a></li>



<li>开源地址：<a href="https://github.com/y-cyfor/JayChou-wiki" target="_blank" rel="noopener">https://github.com/y-cyfor/JayChou-wiki</a></li>
</ul>



<p><s>也是个开源作者了</s></p>



<h3 class="wp-block-heading">逼逼赖赖</h3>



<ul class="wp-block-list">
<li>250424：站长骂骂咧咧，每打开项目三个小时，两个小时在研究问题
<ul class="wp-block-list">
<li>另外 终于骄傲的把演出记录更新进度改成了1%！鼓掌！</li>
</ul>
</li>
</ul>



<h3 class="wp-block-heading">当前进度</h3>



<ul class="wp-block-list">
<li>音乐作品完成度：10%</li>



<li>演出记录完成度：1%</li>



<li>影视作品完成度：0%</li>



<li>其他内容完成度：10%</li>
</ul>



<h3 class="wp-block-heading">规划目标</h3>



<ul class="wp-block-list">
<li>每张专辑的wiki页
<ul class="wp-block-list">
<li>专辑简介、曲目、<strong>版本</strong>、获奖</li>
</ul>
</li>



<li>每首歌的wiki页
<ul class="wp-block-list">
<li>歌曲简介、<strong>轶事</strong>、获奖、<strong>版本、live记录</strong></li>
</ul>
</li>



<li>演唱会主题
<ul class="wp-block-list">
<li>每站点单独页面，时间、人次、票务、主办、歌单、talking</li>
</ul>
</li>



<li>其他类型页面内容随缘吧</li>
</ul>



<p><s>以上远期目标预计一年完成</s>（已经过期了）<br>以上远期目标预计两年完成（也就是重新计算。。。）</p>



<p><strong>TODO List</strong></p>



<ul class="wp-block-list">
<li>所有专辑的基础信息 4月</li>



<li>未结束演出专题的补充完整 5月（嘉年华）</li>



<li>所有现场的基础信息 6月</li>



<li>所有专辑的版本信息收集 7月</li>



<li>所有现场的歌单收集 8月</li>



<li>书影音收集 10月</li>



<li>综艺、奖项收集 11月</li>



<li>其他完善 12月</li>
</ul>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.cyfor.cn/jaychous-wiki-list/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
