I am interested in adding a blog to my Ruby on Rails app. I do not want to waste my time coding up a bloggin app in rails - I can do it but I just prefer something more robust.
我有兴趣在我的Ruby on Rails应用程序中添加一个博客。我不想浪费时间在rails中编写一个bloggin应用程序 - 我可以做到,但我只是喜欢更强大的东西。
I have investigated Wordpress and it seems like one of the best bloggin platforms out there. My question is how would I get Wordpress integrated into my site? I would preferably like to use my existing rails layouts and CSS. Is this type of thing even possible.
我调查了Wordpress,它似乎是最好的博客平台之一。我的问题是如何将Wordpress集成到我的网站中?我最好使用我现有的rails布局和CSS。这种类型的东西是否可能。
My site is http://www.arenpatel.com/ and as an end result I would like to have the same Rails generated sidebar (Twitter feed) on the blog.
我的网站是http://www.arenpatel.com/,作为最终结果,我希望在博客上生成相同的Rails生成侧边栏(Twitter feed)。
Maybe there is a Rails alternative to Wordpress?
也许有一个Rails替代Wordpress?
Thanks for the help!
谢谢您的帮助!
4 个解决方案
#1
4
You can integrate a jekyll style blog with markdown files for blog posts very easily using the rails engine Postmarkdown.
您可以使用rails引擎Postmarkdown轻松地将jekyll风格的博客与用于博客帖子的markdown文件集成。
Edit: Updated URL.
编辑:更新的URL。
#2
0
To integrate WP, install Wordpress in a subdirectory, like /blog. So you'd have http://arenpatel.com/blog. Make the WP blog's home page the index / front page of the WP installation. You would have to manually port your layout in some shape or fashion into the WP theme. I can't think of a good way to share that, especially any dynamic code. You could share the same css using an @import statement in the WP theme's style.css (a required file). Wordpress works fine in this screnario.
要集成WP,请在/ blog等子目录中安装Wordpress。所以你有http://arenpatel.com/blog。使WP博客的主页成为WP安装的索引/首页。您必须以某种形状或方式手动将布局移植到WP主题中。我想不出一个分享它的好方法,特别是任何动态代码。您可以使用WP主题的style.css中的@import语句(必需的文件)共享相同的css。 Wordpress在这个screnario中运行良好。
I don't think there is anything in the Ruby world that does everything WP does, but maybe that's not necessary in your case???
我认为Ruby世界中没有任何东西可以完成WP所做的一切,但也许在你的情况下这不是必要的???
#3
0
Im not sure how well php and ruby play together under the same directory so the easies way i see is to host a Wordpress blog under a subdomain, for example, http://blog.arenpatel.com/.
我不确定php和ruby在同一目录下如何一起玩,所以我看到的简单方法是在子域下托管一个Wordpress博客,例如http://blog.arenpatel.com/。
You will of course have to write you own (or alter an existing) theme for wordpress in order to make it look the way your rails app does. You can read all about it here: http://codex.wordpress.org/Theme_Development
您当然必须为wordpress编写自己的(或更改现有的)主题,以使其看起来像您的rails应用程序。你可以在这里阅读所有相关内容:http://codex.wordpress.org/Theme_Development
As for your twitter feed; there are a bunch of plugins for wordpress do the same thing. All you will have to do is to style it via css.
至于你的推特饲料;还有一堆用于wordpress的插件做同样的事情。您所要做的就是通过CSS设置它的样式。
Cheers!
#4
0
You can just mount Blogo engine to you rails application: https://github.com/greyblake/blogo
您可以将Blogo引擎安装到rails应用程序:https://github.com/greyblake/blogo
#1
4
You can integrate a jekyll style blog with markdown files for blog posts very easily using the rails engine Postmarkdown.
您可以使用rails引擎Postmarkdown轻松地将jekyll风格的博客与用于博客帖子的markdown文件集成。
Edit: Updated URL.
编辑:更新的URL。
#2
0
To integrate WP, install Wordpress in a subdirectory, like /blog. So you'd have http://arenpatel.com/blog. Make the WP blog's home page the index / front page of the WP installation. You would have to manually port your layout in some shape or fashion into the WP theme. I can't think of a good way to share that, especially any dynamic code. You could share the same css using an @import statement in the WP theme's style.css (a required file). Wordpress works fine in this screnario.
要集成WP,请在/ blog等子目录中安装Wordpress。所以你有http://arenpatel.com/blog。使WP博客的主页成为WP安装的索引/首页。您必须以某种形状或方式手动将布局移植到WP主题中。我想不出一个分享它的好方法,特别是任何动态代码。您可以使用WP主题的style.css中的@import语句(必需的文件)共享相同的css。 Wordpress在这个screnario中运行良好。
I don't think there is anything in the Ruby world that does everything WP does, but maybe that's not necessary in your case???
我认为Ruby世界中没有任何东西可以完成WP所做的一切,但也许在你的情况下这不是必要的???
#3
0
Im not sure how well php and ruby play together under the same directory so the easies way i see is to host a Wordpress blog under a subdomain, for example, http://blog.arenpatel.com/.
我不确定php和ruby在同一目录下如何一起玩,所以我看到的简单方法是在子域下托管一个Wordpress博客,例如http://blog.arenpatel.com/。
You will of course have to write you own (or alter an existing) theme for wordpress in order to make it look the way your rails app does. You can read all about it here: http://codex.wordpress.org/Theme_Development
您当然必须为wordpress编写自己的(或更改现有的)主题,以使其看起来像您的rails应用程序。你可以在这里阅读所有相关内容:http://codex.wordpress.org/Theme_Development
As for your twitter feed; there are a bunch of plugins for wordpress do the same thing. All you will have to do is to style it via css.
至于你的推特饲料;还有一堆用于wordpress的插件做同样的事情。您所要做的就是通过CSS设置它的样式。
Cheers!
#4
0
You can just mount Blogo engine to you rails application: https://github.com/greyblake/blogo
您可以将Blogo引擎安装到rails应用程序:https://github.com/greyblake/blogo