Giter Club home page Giter Club logo

elvenhut's People

Contributors

countcain avatar halfelf avatar ultragtx avatar wyvernbai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

elvenhut's Issues

File layout 大修改

由于现在route.rb 中的东西已经比较多了,考虑到后续会加入更多内容,所以考虑把不同的功能分化出去,这样便于添加,也方便查找不同的功能模块。

我把route.rb的route和helper功能划分出来了,对应route和helpers文件夹下面不同的rb文件。其中helpers是用module的方式直接关联到Elvenhut.helpers。

route.rb改名为elvenhub.rb,只完成加载配置信息的功能,现在缩减到了50行。

我先创建了个分支file_layout_change,大家讨论下这么修改怎么样吧

管理员控制,编辑,删除文章

采用wordpress adminbar得方式,添加了管理员控制拦,登陆后在每个页面顶部静态显示。对于archilves/* 得adminbar较其他页面多了修改文章和删除文章得选项。后续可以加入更多功能。logout后admin bar自动消失。

对于文章得编辑,我觉得采用 http://dillinger.io 这种可以实时显示结果得方式比较好玩,有现成得js插件,回头可以折腾下。把这中编辑方式作为可选得一种提供给用户。

Review of route.rb

  • Improve database_clean efficiency and conciseness.
  • Use block in file operations.
  • Extract duplicate code.

Naming Conventions

Class/Module: 单词首字母大写
Method: 全小写,下划线连接
local/instance/class var: 同上
global var: 全大写,下划线连接

Tags, Comments, User Management

I'm working on tags at present, hoping comments and user management will be completed soon.
Comments should be in a simple style, easy to post, read and locate.

Unify encoding declaration

# encoding: utf-8

Use lowercase.
Use : instead of =.

A space between # and encoding, another between : and utf-8.
A newline after this declaration.

导入wordpress文章功能

支持导入的wordpress文件:wordpress->工具->导出->文章 (xml文件)


  • 访问/import 上传xml文件
  • 解析xml,获取作者,编辑日期,文章内容,tag内容
  • 在数据库中添加相关表项,创建md文件。

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.