<= back to home
//添加部分
关于本站搭建
关于本站搭建
Quick Start
免费api接口: https://apis.whyta.cn/
今日诗词:https://www.jinrishici.com/
天气接口:https://v2.jinrishici.com/info
本站配置
博客框架 jekyll
采用主题: no-style-please
直接去jekyll下载博客模板 , 之后只需要在模板修改内容, git上传即可
图床问题?
使用 public repository + page + raw.githubusercontent.com
图片链接替换
./img/
==>
https://raw.githubusercontent.com/i1oveyou/time-machine/master/_posts/img/
test img show 图床测试
ssh上传
为什么不用https,这个老是出现问题.
好吧也不能这样说,应该说 ssh出现问题就用https
git remote set-url origin git@github.com:i1oveyou/i1oveyou.github.io.git
upload
git add .
git commit -m "happy every day"
git push -u origin master
今日诗词
_layouts\home.html
---
layout: default
---
<header>
<h1>时光回忆录</h1>
<p><b>
<span>今日诗词: </span>
<span id="jinrishici-sentence">正在加载今日诗词....</span>
<script src="https://sdk.jinrishici.com/v2/browser/jinrishici.js" charset="utf-8"></script>
</b></p></header><ul><li>重拾记忆的碎片</li><ul><li>此去经年,应是良辰好景虚设。</li><li>便纵有千种风情,更与何人说?</li></ul><li>Category</li><ul><li><a href="category/love-story.html">那些女孩...在我的世界路过</a></li><li><a href="category/bad-boy.html">坏男孩系列</a></li><li><a href="category/people.html">忆往昔---人物篇</a></li><li><a href="category/shenzhen.html">儿时的深圳时光</a></li></ul><li>all posts</li><ul><li>
<span>2024-09-18</span>
<a href="/time-machine/2024/09/18/shenzhen-schoolthing">深圳小学发生的趣事</a>
</li><li>
<span>2024-09-18</span>
<a href="/time-machine/2024/09/18/shenzhen-goodshushu">中通快递站叔叔</a>
</li><li>
<span>2024-09-18</span>
<a href="/time-machine/2024/09/18/shenzhen-goodayi">车站售票阿姨</a>
</li><li>
<span>2024-09-18</span>
<a href="/time-machine/2024/09/18/badboy-thief">偷钱</a>
</li><li>
<span>2024-09-14</span>
<a href="/time-machine/2024/09/14/love-story-pxx-failedexpress">失败的几次蠢蠢欲动(大学)-未写</a>
</li><li>
<span>2024-09-14</span>
<a href="/time-machine/2024/09/14/love-story-p11-kuanghaorui">kuanghaorui(大学一年级)-未写</a>
</li><li><a href="category/archive.html">See more posts...</a></li></ul><li><a href="feed.xml">rss</a></li></ul>
去掉日期显示(日记网站不需要)
地方1 _includes\post_list.html
<span>2024-09-18</span>
<a href="/time-machine/2024/09/18/shenzhen-schoolthing">深圳小学发生的趣事</a>
//删除downcase小写显示
//删除post.date那一行
</li><li>
<span>2024-09-18</span>
<a href="/time-machine/2024/09/18/shenzhen-goodshushu">中通快递站叔叔</a>
//删除downcase小写显示
//删除post.date那一行
</li><li>
<span>2024-09-18</span>
<a href="/time-machine/2024/09/18/shenzhen-goodayi">车站售票阿姨</a>
//删除downcase小写显示
//删除post.date那一行
</li><li>
<span>2024-09-18</span>
<a href="/time-machine/2024/09/18/badboy-thief">偷钱</a>
//删除downcase小写显示
//删除post.date那一行
</li><li>
<span>2024-09-14</span>
<a href="/time-machine/2024/09/14/love-story-pxx-failedexpress">失败的几次蠢蠢欲动(大学)-未写</a>
//删除downcase小写显示
//删除post.date那一行
</li><li>
<span>2024-09-14</span>
<a href="/time-machine/2024/09/14/love-story-p11-kuanghaorui">kuanghaorui(大学一年级)-未写</a>
//删除downcase小写显示
//删除post.date那一行
</li><li>
<span>2024-09-14</span>
<a href="/time-machine/2024/09/14/love-story-p10-xxx">x某人(高中)-未写</a>
//删除downcase小写显示
//删除post.date那一行
</li><li>
<span>2024-09-14</span>
<a href="/time-machine/2024/09/14/love-story-p09-yangyunxia">yangyunxia(初中)-未写</a>
//删除downcase小写显示
//删除post.date那一行
</li><li>
<span>2024-09-14</span>
<a href="/time-machine/2024/09/14/love-story-p08-tanxinlian">tanxinlian(初中)-未写</a>
//删除downcase小写显示
//删除post.date那一行
</li><li>
<span>2024-09-14</span>
<a href="/time-machine/2024/09/14/love-story-p07-tianshihan">tianshihan(初中)-未写</a>
//删除downcase小写显示
//删除post.date那一行
</li><li>
<span>2024-09-14</span>
<a href="/time-machine/2024/09/14/love-story-p06-lvjing">lvjing(小学)-未写</a>
//删除downcase小写显示
//删除post.date那一行
</li><li>
<span>2024-09-14</span>
<a href="/time-machine/2024/09/14/love-story-p05-dengqin">dengqin(小学)-未写</a>
//删除downcase小写显示
//删除post.date那一行
</li><li>
<span>2024-09-14</span>
<a href="/time-machine/2024/09/14/love-story-p04-lixin">lixin(小学)</a>
//删除downcase小写显示
//删除post.date那一行
</li><li>
<span>2024-09-14</span>
<a href="/time-machine/2024/09/14/love-story-p03-pengxin">pengxin(小学)-未写</a>
//删除downcase小写显示
//删除post.date那一行
</li><li>
<span>2024-09-14</span>
<a href="/time-machine/2024/09/14/love-story-p02-lijiayan">lijiayan(小学)-未写</a>
//删除downcase小写显示
//删除post.date那一行
</li><li>
<span>2024-09-14</span>
<a href="/time-machine/2024/09/14/love-story-p01-xxx">x某人(小学)</a>
//删除downcase小写显示
//删除post.date那一行
</li><li>
<span>2021-09-01</span>
<a href="/time-machine/2021/09/01/hello-world">关于本站搭建</a>
//删除downcase小写显示
//删除post.date那一行
</li></ul>```
地方2
layout: default —<= back to home<article>
关于本站搭建
</article>
## _config.yml
### remote_theme
#theme: no-style-please # if you are using GitHub Pages, change it to remote_theme: riggraz/no-style-please remote_theme: riggraz/no-style-please
把theme修改为remote_theme
### permalink
原来的permalink有问题
修改如下
permalink: /:month/:day/:title
### theme_config
修改回退键样式
back_home_text: “..”
back_home_text: “<= back to home”
## 字体
在 `_includes\head.html`
ps: 图床使用的是他人的cdn加速,可能会挂掉
在 `\_sass\no-style-please.scss`
```css
body {
color: black;
font-family: "LXGW WenKai Screen","monospace", Arial, sans-serif;
font-size: 16px;
line-height: 1.4;
margin: 0;
min-height: 100%;
overflow-wrap: break-word;
}