jockchou / gitblog Goto Github PK
View Code? Open in Web Editor NEWmarkdown blog base on CodeIgniter, writing blog with markdown!基于CI的markdown博客
Home Page: http://www.gitblog.cn/
License: Apache License 2.0
markdown blog base on CodeIgniter, writing blog with markdown!基于CI的markdown博客
Home Page: http://www.gitblog.cn/
License: Apache License 2.0
有时候浏览blog时,一页显示的内容太少,比如移动端屏幕比较小,需要切换另一个主题,或者更改日志条数
见博客。很奇怪,这种现象应该是模板生成时解析错误吧。
ping 正常,但是访问出现502, 使用的地址是http://www.gitblog.cn/index.html 中引用的fonts.useso.com的地址:
是否需要更换字体cdn或者不用?
搭好之后发现/feed.xml打开报错.查了下源码:
在Gitblog::feed()
调用Markdown::initAllBlogData($postPath, $enableCache=false)
的时候没有传入必要的参数$postPath
.
1.5版本的Parsedown在php7下会报错。升级到1.6就没有问题了。
在博客里面写latex公式的时候,latex公式里面会有很多下划线,而md解析的时候把下划线全解析成了,具体样子可以看我的gitblog。
今天刚建起来,觉得很不错,但是这个问题希望改进。可以参考这个网站
https://stackedit.io/
还有我的博客,可以看到问题。cherichy's blog
如题,图片能否自动加水印?
我试用的是2.2版,发现markdown转换成HTML的时候,有些是出不来的。比如[TOC]。是否考虑更新markdown转换程序
我昨天写了两篇博文,一篇就像是被置顶了一样,今天写的新博文也在它下面,不知道这是怎么回事,我尝试了改名,改时间,改文件名,改summary等方式都不行,昨天写的那篇还是依然置顶。
exportSite theme file copy failed
in GitBlog.php line:149
$targetPath = str_replace($fileName, "", $targetFile);
should be
$targetPath = str_replace(basename($fileName), "", $targetFile);
PHP 5.6.31 + nginx/1.12.1
run:
HTTP ERROR 500
我用phpstudy在windows上搭的环境,发现中文名的md文件就打不开,英文名的能打开!
作者您好,感谢您的开源。我很喜欢您的这个项目,但在实践过程中,无法打开文章,跳转后显示404,我尝试了其他问题回复中的解决方案(将gitblog放在网站根目录下),依然不行。我在blog文件夹下创建同名welcome.html文件可以打开。
似乎无法解析Markdown为html
Hello, sorry for my ignorance,
how to add custom page or contact us page, without using the markdown and imlement on the pages thanks a lot
现gitblog内置的CI和Parsedown插件不支持PHP7。 我简单的升级了下CI和Parsedown,可以兼容PHP7了
另:
Markdown.php 中 line 483
$ctime = date("Y-m-d H:i:s", $fileProp['cdate']);
cdate在Markdown中不存在,导致PHP报错
想在二級目錄安裝
結果發現不行
“proudly powered by Gitblog”
点击后 跳转到hhttp://gitblog.cn
当然只会报错...
(为了防止侵权神马专门弄的?)
目前使用wordpress中,实在太臃肿了,gitblog相当中意,不知道是否有转换工具
感觉这种操作太麻烦,能进行优化吗?现在的定位是写日志的人操作不频繁,但是像我这种类型的操作就比较频繁
再就是能否增加,直接在网页上编辑md文件,那样就更方便了
首先非常感谢作者开发了这套系统。
在我的使用过程中有一些小的问题(我使用的是quest主题),conf.yml中avatar是否是用户头像的意思呢,我在自己的个人博客中配置了,无效,是还没有开发完嘛?
在按日期归档的的右侧栏(详情可以查看我的博客)中日期没有按照先后顺序排列,我检查了我写的几篇博客的日期,都是采用2016-08-12这样8个数字的日期格式。是否还有其他需要注意的地方呢?
比如我需要将jekyll的博客内容导入到gitblog里来,那么在jekyll里YAML部分使用的是"---...---"来标识YAML部分,而gitblog则使用了""来标识,这样就导致需要将几百篇markdown文件挨个改一遍(当然可以使用程序处理,但编程还是很费时间),所以能否考虑这里能否考虑使用config来配置,包括YMAL里面的字段,如果也能使用config配置是不是会更灵活一点
rss中图片路径有问题
发现一个不错的轮子:https://github.com/pandao/editor.md
我们可以在后端只做标签,分类等工作,关于md解析部分可以直接用前端现成的轮子
189行 年份及作者未填写
比如我的某个首页:
https://xxx.xxx.com/category/1155787600.html
里面有5页,我点第2页的时候,链接中有一部分路径重复了:
https://xxx.xxx.com/category/category/1155787600/page/2.html
删掉一个 “category/”恢复正常
某个分类下面的分页:
https://xxx.xxx.com/category/1155787600/page/category/1155787600/page/2.html
正常:
https://xxx.xxx.com/category/1155787600/page/2.html
主题使用default
gitblog网站域名都被别人注册了,你也不换一下!
今天看一下了 ckeyer/gitblog@02220ce ,Parsedown.php 的作者在扩展项目 ParsedownExtra.php 中提供了类似的功能[1],如果直接使用 ParsedownExtra.php,可以免去维护 gitblog 项目中对 Parsedown.php 的手动修改,@jockchou @ckeyer 觉得可行吗?
blog文件夹下创建名字包含中文的文件夹, 访问里面的markdown文件返回错误:
Oops! 404.
您访问的页面不存在了,你可以试试查看下面的内容.
使用环境是nginx + php-fpm, 操作系统是linux (debian).
markdown文件名为汉字的时候,访问文章详情就报404,文件名该问英文,就正常了
是否可以按标签分类?
把img目录和posts目录放在一个目录(如data)下,便于统一管理,例如使用一个git仓库,现在这种方式相当要麻烦些(目前我采用软连接的方式指向了同一个目录)。或者采用可配置的方式去设定目录
插入如下代码并不能嵌入视频,而且放入后,blog宕掉了。
<html>
<iframe width="560" height="315" src="https://www.youtube.com/embed/vi7lACKOUao" frameborder="0" allowfullscreen></iframe>
</html>
如果自己写,需要先浏览遍历blog文件夹,然后勾选日志文件,删除,而且最好能用你们的主题,好复杂!
tag为 中文的时候, 链接url无法访问
RT
比如我依次点击“首页”->“GitBlog安装”,网址会跳转到http://localhost/blog/gitblog/install.html,无法找到页面,实际上源码路径在"http://localhost/gitblog-2.0.2/"下面,改成"http://localhost/gitblog-2.0.2/index.php/blog/gitblog/install.html",能够成功跳转。
虽然可以,岂不是每次都得改,太麻烦了,还是应该怎么弄~
在侧边栏上可以固定一些favorite的文章,功能如同顶置,效果就像wordpress里面设置页面
日期格式是2015-10-13这样,但是如果天数不是2位数就会造成博客排序错误。比如 2015-10-8 排在 2015-10-12 的文卓前面,2015-10-08 就好了。
感觉 /tags/tag['id'].html 和 /category/category['id'] 不够直观。
使用全站静态导出时,主题相关的文件,例如js文件等都没有打包进去
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.