Giter Site home page Giter Site logo

jockchou / gitblog Goto Github PK

View Code? Open in Web Editor NEW
842.0 842.0 246.0 10.78 MB

markdown blog base on CodeIgniter, writing blog with markdown!基于CI的markdown博客

Home Page: http://www.gitblog.cn/

License: Apache License 2.0

PHP 74.95% HTML 4.09% CSS 17.11% JavaScript 3.85%

gitblog's Issues

rss的bug

搭好之后发现/feed.xml打开报错.查了下源码:
Gitblog::feed()调用Markdown::initAllBlogData($postPath, $enableCache=false)的时候没有传入必要的参数$postPath.

markdown和latex解析混淆

在博客里面写latex公式的时候,latex公式里面会有很多下划线,而md解析的时候把下划线全解析成了,具体样子可以看我的gitblog。
今天刚建起来,觉得很不错,但是这个问题希望改进。可以参考这个网站
https://stackedit.io/
还有我的博客,可以看到问题。cherichy's blog

[TOC]不能正常显示

我试用的是2.2版,发现markdown转换成HTML的时候,有些是出不来的。比如[TOC]。是否考虑更新markdown转换程序

博文排序的问题

我昨天写了两篇博文,一篇就像是被置顶了一样,今天写的新博文也在它下面,不知道这是怎么回事,我尝试了改名,改时间,改文件名,改summary等方式都不行,昨天写的那篇还是依然置顶。

[bug] exportSite theme file copy failed

exportSite theme file copy failed

in GitBlog.php line:149

$targetPath = str_replace($fileName, "", $targetFile);

should be

$targetPath = str_replace(basename($fileName), "", $targetFile);

welcome页面打不开404

作者您好,感谢您的开源。我很喜欢您的这个项目,但在实践过程中,无法打开文章,跳转后显示404,我尝试了其他问题回复中的解决方案(将gitblog放在网站根目录下),依然不行。我在blog文件夹下创建同名welcome.html文件可以打开。
似乎无法解析Markdown为html

Add custom Page

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不支持PHP7

现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相当中意,不知道是否有转换工具

一个配置项无效和归档日期问题

首先非常感谢作者开发了这套系统。
在我的使用过程中有一些小的问题(我使用的是quest主题),conf.yml中avatar是否是用户头像的意思呢,我在自己的个人博客中配置了,无效,是还没有开发完嘛?

在按日期归档的的右侧栏(详情可以查看我的博客)中日期没有按照先后顺序排列,我检查了我写的几篇博客的日期,都是采用2016-08-12这样8个数字的日期格式。是否还有其他需要注意的地方呢?

YAML部分能否考虑与主流markdown博客建立一致规范

比如我需要将jekyll的博客内容导入到gitblog里来,那么在jekyll里YAML部分使用的是"---...---"来标识YAML部分,而gitblog则使用了""来标识,这样就导致需要将几百篇markdown文件挨个改一遍(当然可以使用程序处理,但编程还是很费时间),所以能否考虑这里能否考虑使用config来配置,包括YMAL里面的字段,如果也能使用config配置是不是会更灵活一点

分页错误

比如我的某个首页:
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

blog文件夹下的子文件夹名字不支持中文

blog文件夹下创建名字包含中文的文件夹, 访问里面的markdown文件返回错误:

Oops! 404.

您访问的页面不存在了,你可以试试查看下面的内容.

使用环境是nginx + php-fpm, 操作系统是linux (debian).

目录建议

把img目录和posts目录放在一个目录(如data)下,便于统一管理,例如使用一个git仓库,现在这种方式相当要麻烦些(目前我采用软连接的方式指向了同一个目录)。或者采用可配置的方式去设定目录

不能插入html代码

插入如下代码并不能嵌入视频,而且放入后,blog宕掉了。

<html>
<iframe width="560" height="315" src="https://www.youtube.com/embed/vi7lACKOUao" frameborder="0" allowfullscreen></iframe>
</html>

日期判断的bug

日期格式是2015-10-13这样,但是如果天数不是2位数就会造成博客排序错误。比如 2015-10-8 排在 2015-10-12 的文卓前面,2015-10-08 就好了。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.