Giter VIP home page Giter VIP logo

gor's Issues

#42 的尾巴,部分文件生成的记过每次不一样

#42 解决了每篇post里边连接可能不一样的问题,但是还有以下几个文件还有同样的问题。即使不改变内容,重新compile以下几个文件就不一样。

#
#   modified:   categories/index.html
#   modified:   rss.xml
#   modified:   tags/index.html
#

rss.xml 只是变时间戳,这个应该是正常的。

diff --git a/categories/index.html b/categories/index.html
index 58ffd40..6066397 100755
--- a/categories/index.html
+++ b/categories/index.html
@@ -88,23 +88,23 @@
 <ul class="tag_box inline">

   <li>
-  <a href="/categories/#woodworking-ref">woodworking <span>15</span></a>
+  <a href="/categories/#legacy-ref">legacy <span>279</span></a>
 </li>

   <li>
-  <a href="/categories/#octopress-ref">octopress <span>2</span></a>
+  <a href="/categories/#binary-ref">binary <span>12</span></a>
 </li>

   <li>
-  <a href="/categories/#IEEE802.11-ref">IEEE802.11 <span>1</span></a>
+  <a href="/categories/#orgmode-ref">orgmode <span>2</span></a>
 </li>
diff --git a/tags/index.html b/tags/index.html
index c9798ab..71eb850 100755
--- a/tags/index.html
+++ b/tags/index.html
@@ -104,7 +104,7 @@
 </li>

   <li>
-  <a href="/tags/#alaskan-sawmill-ref">alaskan sawmill <span>1</span></a>
+  <a href="/tags/#gor-ref">gor <span>1</span></a>
 </li>

   <li>
@@ -124,7 +124,7 @@
 </li>

   <li>
-  <a href="/tags/#gor-ref">gor <span>1</span></a>
+  <a href="/tags/#alaskan-sawmill-ref">alaskan sawmill <span>1</span></a>
 </li>

图片在哪儿?

我把图片放到 media 里面,然后 gor http,但是访问 http://localhost:8080/media/a.png 就 404 not found 啊。

能不能清楚的描述下呢?

每次compile的结果不一样

我的博客每次compile的时候会产生很多文件的改动,按说只有新写的那篇改动才对。
diff一下可以看到, 很多文件的改动类似这样

@@ -951,10 +953,10 @@

     <li><span>2006-12-21</span> &raquo; <a href="/blog/2006/12/21/2006-12-21-1/">后天考6级,又要给国家做贡献了...</a></li>

-    <li><span>2006-12-16</span> &raquo; <a href="/blog/2006/12/16/2006-12-16-3/">工作终于搞定了,可以轻松一下了</a></li>
-  
     <li><span>2006-12-16</span> &raquo; <a href="/blog/2006/12/16/2006-12-16-1/">触电可分为哪几种情况</a></li>

+    <li><span>2006-12-16</span> &raquo; <a href="/blog/2006/12/16/2006-12-16-3/">工作终于搞定了,可以轻松一下了</a></li>
+  
     <li><span>2006-12-16</span> &raquo; <a href="/blog/2006/12/16/2006-12-16-2/">太阳耀斑爆发出现大磁暴 已影响全国的短波通讯</a></li>

好像是那些一天之类多篇博客的地方会出现这种 next/prev 链接的变化。每次compile的结果不一致,虽然差异很小,但是也不利于管理。

我想应该和 map 的遍历有关吧。应该按固定顺序来输出。

博客中方便插入图片的方法

今天刚发现gor这个好东东,来支持一下。
之前用octopress,但是导入之前的博客后,几百篇博客每次生成都很慢,今天又一次想解决的时候,搜到这里来了。简单配置了下,觉得gor挺简洁。

想问下,gor下有没有什么方法快速插入图片的?请教下作者写博客是怎么样实现的?也是手动cp图片到制定文件夹,然后在markdown里添加link么?我翻了下,你的博客图片是按日期存放的,请问是自动的吗?

不支持忽略无关文件

例如有a.md文件,其中图片引用了当前目录的xx.jpg,结果编译的时候xx.jpg停止了,应该忽略掉这些不属于markdown的文件

页内链接跳转

测试了这个Markdown文档
就在README.md里面。点击 Table of Contents段落中的目录,可以直接跳转到对应的段落。
在本地使用Gor编译后,点击目录无法跳转到对应段落。

the zip file in new.go

Hello, I am wondering why did you use the const INIT_ZIP rather than read from the zip file?

config文件中加入date_format选项

现在的data的format是yyyy-MM-dd hh:mm:ss这样的格式,能不能添加有关于data的format选项让人自己设置(比如支持MM-dd-yyyy hh:mm这样的)

安装失败

cat $GOROOT
cat: /usr/local/go: Is a directory

cat $GOPATH
cat: /Users/Ray/Workspace/sandbox/go: Is a directory

go get -u github.com/wendal/gor 执行成功 然后执行go install github.com/wendal/gor/gor 报错
go install github.com/wendal/gor/gor
go install github.com/wendal/gor/gor: open /usr/local/go/bin/gor: permission denied

以为是权限问题 然后添加sudo执行报错为:
sudo go install github.com/wendal/gor/gor
can't load package: package github.com/wendal/gor/gor: cannot find package "github.com/wendal/gor/gor" in any of:
/usr/local/go/src/pkg/github.com/wendal/gor/gor (from $GOROOT)
($GOPATH not set)

好像不能生成RSS?

没有RSS不方便啊。
新手,因为win的机器不好弄ruby环境所以尝试这个gor.

gor使用什么许可证?

我建立一个gor的分支,但是代码我改动比较大,似乎不太合适跟gor合并,我想知道我能不能独立出来呢?

CommentsWidget增加友言支持吧

// 其他的,想不到还有啥,哈哈,需要其他的就报个issue吧
return nil, errors.New("CommentsWidget Only for disqus yet")

lz代码里,嘿嘿。。。。

针对天朝特色,可以考虑支持友言,**版的disqus,顺便增加下“加网”提供一键式站外分享^_^

如何修改8080端口

我vps上的8080端口已被占用:

as3:# gor http
2013/08/28 04:09:36 gor.go:25: gor ver 2.4
2013/08/28 04:09:36 gor.go:78: Listen at :8080
2013/08/28 04:09:36 gor.go:79: listen tcp :8080: address already in use
as3:
#

如何修改8080端口?以使得运行gor http后能看到预览效果?

目前只支持markdown格式么?html可以不?

如题,我有一些旧的博客是从百度博客上导出来的 html。
之前在octopress下边,html也可以用来生成博客。我试了下gor好像不行,不知道有没有什么简单的方法能支持下?

代码高亮有问题

最近博客页面代码高亮有问题:行号,高亮都没有显示。代码能加载出来

环境:Ubuntu 12.04 下chrome, firefox情况一样,麻烦作者看一下

重构gor的代码

现在的代码, 大量的基于map[string]interface{} 各种混乱的调用

widgets

widgets 对应的 layout 在哪里?难道写死到 go 代码里了?

你还真写死在代码里面啦,这个不是应该单独拿出来的吗?

一直搞不明白payload是什么意思?

实在不好意思,问了这么一个比较傻的问题,不过我确实没整明白,这个payload的是干嘛的……网上查了一圈也感觉不太对……可否不吝赐教……

gor new 生成目录不对

gor new astaxie.github.com
2013/01/09 22:44:02 new.go:28: Download init content zip
2013/01/09 22:44:08 new.go:43: Downloading init content zip
2013/01/09 22:44:09 new.go:56: Unpack init content zip
2013/01/09 22:44:09 new.go:82: Done

然后生成的目录是new,不是astaxie.github.com

Markdown文档【图片+链接】编译失败

测试了这个Markdown文档
就在README.md里面第2行,
原文如下:

[![Build Status](https://travis-ci.org/scripted-editor/scripted.png?branch=master)](https://travis-ci.org/scripted-editor/scripted)

如果正确编译,应该看到是一个图片,带有URL --> Build Status
Gor里面无法正常编译, 编译完,Web页面显示:

![Build Status](https://travis-ci.org/scripted-editor/scripted.png?branch=master)

上面这段是有正确链接的。 说明编译器正确处理了超链接编译,但没有想到这个链接的正文本身又是一个Markup,也需要编译。

不支持相对引用

我有文件a.md和b.md,a.md中bbb这样编译出来并没有引用到b.html,希望这个处理下.

404 page not found

我用 gor new example.com 创建项目,然后执行 gor http 开启项目,结果打开地址提示: 404 ,哪里出错呢?

gor命令增加提示帮助,类似输入go的时候提示

输入go的提示如下:

➜ ~ go
Go is a tool for managing Go source code.

Usage:

go command [arguments]

The commands are:

build       compile packages and dependencies
clean       remove object files
doc         run godoc on package sources
env         print Go environment information
fix         run go tool fix on packages
fmt         run gofmt on package sources
get         download and install packages and dependencies
install     compile and install packages and dependencies
list        list packages
run         compile and run Go program
test        test packages
tool        run specified go tool
version     print Go version
vet         run go tool vet on packages

layout渲染可能存在问题

https://github.com/douo/douo.ruhoh.com/tree/master/themes/moon

用了一下这个皮肤,然后在papers/index.html处使用了
layout: home
home: 1
直接在compile的时候报错空指针:

panic: interface conversion: interface is nil, not *gor.DocContent

goroutine 1 [running]:
github.com/wendal/gor.RenderInLayout(0xf84012e000, 0x65d, 0xf840092c20, 0xf800000004, 0xf84007bda0, ...)
    /usr/local/go/src/pkg/github.com/wendal/gor/compile.go:129 +0x212
github.com/wendal/gor.Compile(0x7fff5fbffa84, 0xf800000007)
    /usr/local/go/src/pkg/github.com/wendal/gor/compile.go:87 +0xdff
main.main()
    /usr/local/go/src/pkg/github.com/wendal/gor/gor/gor.go:64 +0x50d

goroutine 2 [syscall]:
created by runtime.main
    /usr/local/go/src/pkg/runtime/proc.c:221

Ruhoh 2.1

Do you have a plan to support Ruhoh 2.* ?

不支持域名+路径

我在production_url里面设置abc.com/blog
生成出来的页面会有路径问题

比如说所有的素材都会拷贝在根目录 和blog平级
而twitter的一些CSS引用却到/blog/下面去找 就找不到了

Gor是不是目前暂时不支持域名+路径?

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.