博客已完全开源欢迎修改和添加你的故事!
欢迎来到我的博客
大家好,我是粉红小猪p1slave,考虑到愿意写故事在这发表的用户不一定是码农群体,就算是码农也可能懒得去本地安装我的博客,甚至懒得看大段的英文教学文档。之前的文档用英文写不是因为要装逼而是习惯了,并且希望有更多人(不仅限于中文社区的朋友)可以使用和学习我的博客框架和搭建过程。
以下是欢迎投稿的主题:
- 与BDSM主题相关的故事,包括个人经历的叙述和心得体会,最好带有很多的细节描述,能图文并茂就更好了
- 跨越种族,文化,国界的正常恋爱交往故事或者心路历程,当然不正常的震碎三观世界观的也十分欢迎
- 对富有争议性两性情感话题的深入探讨和自己的独特看法
- 任何对人类社会有价值的原创文章,你可以把我的博客看作一个分布式存储容器,就算不公开发表也可以静静的躺在草稿里
- 一些奇怪的东西,比如川普的裸照,可以放到
source/images
的文件夹下面,说不定哪天我还会在文章里直接引用你上传的图片
如何在我的博客添加你的故事
为了降低给我博客做贡献的门槛,我在这里就用中文也写一下如何在浏览器网页上就能修改博客发表自己故事的教程,后面还有动画教学视频来更加直观的解释如何操作。
- 首先你需要注册一个Github账号,然后搜索到我的博客p1slave/blog
- 点击fork就可以把我的博客的当前版本拷贝一份到你自己的账号下,当我的博客有更新的时候,你本地的版本是保持不变的,除非你pull我最新的代码合并到你的旧版本代码
- 在网页端指定位置按照规定写一个
external-contribution-xxx.md
这样的新文件并加上你的文章内容,文章前面必须加上标题,时间,标签等数据,具体可以按照其他文章的开头格式作为模板 - 前面都完成后点提交会生成一个pull request,在我审核通过后即可上线,具体操作可以看下面的动画教学。加入图片等多媒体的教程可以参加倒数第二段的英文介绍,媒体文件统一都放在一个和标题同名的文件夹中。
Welcome to my blog
Hello, I’m p1slave and this is my personal blog to document my fetish life online and I do not wish to reveal my identity on the internet. I have been using VPN and proxy to hide my traces even with fake names when browsing the websites and pushing my commits here. Please don’t try to figure out who I am but you are welcome to share your stories with the rest of the world freely by sending pull requests to this repo p1slave/blog or even start your own blog.
Make contribution as a technical user
You are welcome to follow the instructions and post new stories about the following topics:
- Stories about your fetish and BDSM related experience.
- Interesting dating experience outside your own bubble with people from different countries and cultures.
- Discussion and your in-depth thoughts on some controversial topics about special relationships or general relationships.
- Anything valuable for the betterment of humanity that you want to spread to more audiences and persist it with distributed storage on Github.
- Trump’s latest nude photos? Why not? You can directly add photos to
source/images
without publishing a post at all. I may quote your photos one day:)
Preferably, the stories you write should be very detailed followed by your own thoughts, reflections, analysis, photos or even videos but do not leak any personal information unless you intentionally want to be famous.
I hope you can publish your stories here because eventually I will build a fetish forum exclusively for all the well-mannered lovely kinksters I love to hear from and I will automate the migration of your blog posts to the new website so you don’t have to copy and paste your stories one by one to a new place.
Note that your story will be added to my blog immediately once your PR is merged into the master branch if you follow the instruction to make contribution to my repo. If you see typos and errors in the existing posts and blog, feel free to send PR to correct them too. The pen sign on the upper right corner of each blog post is the editing link of that post on Github so you can directly make changes on Github rather than clone the repo locally.
Git config for your alt life
I want to make my repo public so everyone can fork my repo and add their own stories to my blog. Therefore, I have to be extra cautious about my privacy and I cannot use the same username and email from my normal life because my alt life will shock many people in my real life. The following commands will change your contact info globally if you are working on a complete new laptop or VM for your alt life blog writing.
1 | git config --global user.name "p1slave" |
However, I don’t want to switch machines and choose to set my alt life username and email specifically only for this repo so I put the git configuration file in /git-config/config
and I can just replace /.git/cofig
with this file to avoid the horrible accident when I use my alt life username and push commits to my daily work repo.
The other tricky thing is that this blog is hosted under a different GitHub account with different SSH keys but Windows may still use the default id_rsa
private key and fail to authenticate.
A workaround to solve this issue is to add the following one line sshCommand = ssh -i ~/.ssh/id_ed25519_xxx
to the git configuration file so now we specify which key we want to use instead of the default key.
The complete git configuration is below:
1 | [core] |
What if we want to clone the repository for the first time? The solution is to add the same sshCommand
as parameter when cloning the repository. The complete clone command will be:
1 | git clone git@github.com:p1slave/blog.git --config core.sshCommand="ssh -i ~/.ssh/id_ed25519_xxx" |
Installation and testing
I’m not an expert on Nodejs and the installation of conflicted dependencies could be a nightmare sometimes. Try to use a Node Package Manager like nvm and switch back to a previous version of Node if a newer version of some packages does not work.
1 | curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash |
Install all dependencies in package.json
:
1 | npm install |
Install the Hexo command line tools from Hexo globally:
1 | npm install hexo-cli -g |
Run Hexo blog locally with commands:
1 | # Run in linux or MacOS environment and add `npx` before your commands in Windows |
Generate a new post if you have a new story to share. The post title should start with external-contribution-
and please follow the naming convention of my other blog posts for the rest of your post title. The Chinese version of your post title should start with XXX投稿 - 你的文章标题
to be consistent.
1 | # Here is a good example for naming |
After the execution of the command above, a new Markdown post file will be created in _posts
folder and inside _post
folder there is another folder with the exact same name of your post to hold assets. Put your photos and videos in the corresponding folder and they can be accessed directly in your post without specifying the relative path.
Add the following code block to the end your blog post for showing some multimedia assets. For example, if you have four pictures and choose the third layout to group pictures, you write {% grouppicture 4-3 %}
followed by {% asset_img xxx.jpg %}
for each picture you add to the group. No need to specify the path since the photos are put into the asset folder.
1 | {% grouppicture 4-3 %} |
The complete documentation about how to use tags can be found in Next theme and the official Hexo tags. You can easily add and render some Youtube links with {% youtube xxx_id %}
or even tabs and buttons, etc. There are a lot of goodies for you to explore if you try to play around with Hexo plugins from the Hexo ecosystem or even you may want to write your plugins at some point.
Deployment
I deploy my blog to Netlify with 100GB bandwidth for free and actually don’t have to do anything for the deployment. Every time I push the latest commits to my repo, the webhook will automatically pull the latest commit from master branch to Netlify and build the blog. Netlify even builds your blog for every pull request and provides a preview link. It’s the best solution I found so far and hope I don’t have to pay extra money once I have more visitors and traffic beyond 100GB.
If your pull request is merged into the master branch but you accidentally commit a photo of you holding your dick and ID card, you are screwed because you cannot reverse the commit without my permission. Send me an Github issue, email or DM immedicately and I will help you to take it down before more people see it. Be careful about the things you want to post online because now anyone can access and analyze the information. Don’t tell your friends in your real life about your alt life unless you are ready to take the risk.