STORY 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # 做一个企业主页
  2. 有次我要做一個企业的官网首页,当时有几个可选的方案。我势必要在其中选择:
  3. - Wordpress 及同类型的 CMS 方案
  4. - Hugo 及同类型的静态方案
  5. - html 模板
  6. 最终我选择了 html 模板方案,对我来说 Wordpress 过于强大,而一般的企业官网并不需要非常频繁的更新,
  7. 而往往,对于网站的设计风格和文案有更高的要求。
  8. 有的企业网站可能需要一个博客子系统或论坛,问答子系统,那么 Wordpress 可以作为博客模块使用。而
  9. 对于一般性的展示型网站,用 Wordpress 和 Hugo 都不合适。因为它们都设计为对发布友好。而且 Wordpress 使用
  10. PHP 和 Mysql,这增加了管理成本,从而必须配置Nginx, MySQL, PHP 等一系列工具,而且往往有版本兼容性问题。这适合有更高需求的运营者。
  11. 于是,我选择了 html 模板;但是当你需要做一个企业网站之后,很快,你就会需要做另一个。html 的弱点
  12. 就很快显现:很弱的模块化能力,可重用能力。
  13. Wordpress, Hugo 的特点是,通过同时提供美观的主题,网站运营者只需要“发表文章”即可。而小型企业网站
  14. 内容不多,更新频率低,而不同的企业往往需要与众不同的主题。
  15. 可以认为,企业官网模板需要一个简单的页面布局,以发表主题为主。
  16. graff 就应运而生了。
  17. graff 其实是一个标准(或原则)下的一个实现。这个标准定义如下:
  18. 1. 由模板生成所有 html 网页,通过直接编辑模板文件更新。
  19. 不使用后台系统,不使用动态语言及数据库
  20. 2. 支持更换主题。
  21. 3. 提供主题开发的详细文档
  22. 4. 一个实现不能提供过多功能。
  23. 有博客,论坛等需求的,博客,论坛建议由其他产品作为子系统提供。
  24. 5. 首次接触的技术人员必须能够在 5 分钟内掌握。
  25. # Question
  26. Once upon a time i was planning to build a website for my company when i faced
  27. a problem is that i had to make a choice from so many candidates. while in my opinion
  28. each of them have its problems.
  29. Lets see what's the point of a business homepage. some introduction pages, contacts.
  30. about us, career and hires. there may be a blog or/and forum for some bigger ones.
  31. - Wordpress. WP is one of the most famous and popular tools to build a homepage. most
  32. of the time it suits for building a blog. its dynamic fundations and many dependencies
  33. makes it more complicated for a simple homepage.
  34. - Hugo. Hugo is simpler than Wordpress, but it is also suit for blog, the real writer.
  35. but not for a business homepage.
  36. Then, what for a business homepage? Both Wordpress and Hugo does more efforts on article
  37. or post. It encourages users to download theme from some its support providers.
  38. but the business tools exactly the opposite: it should encourage user to create kinds of
  39. themes, the 'article' or 'post' is always easy.
  40. So, this is where graff comes.