设为首页 收藏本站
查看: 882|回复: 0

[软件发布] Hugo v0.15 发布,Go 静态网站生成器

[复制链接]

尚未签到

发表于 2015-11-29 05:38:35 | 显示全部楼层 |阅读模式
欢迎加入运维网交流群:263444886   DSC0000.jpg
  Hugo v0.15 发布, 更新如下:
新特性
  

  •   new hugo import jekyll command. 1469
  •   The new Param convenience method on Page and Node can be used to get the most specific parameter value for a given key. 1462
  •   Several new information elements have been added to Page and Node:

    •   RuneCount: The number of runes in the content, excluding any whitespace. This may be a good>.WordCount  for Japanese and other CJK languages where a word-split by spaces makes no sense.  1266
    •   RawContent: Raw Markdown as a string. One use case may be of embedding remarkjs.com slides.
    •   IsHome: tells the truth about whether you're on the home page or not.

提升

  •   hugo server now builds ~30%+ faster by rendering to memory instead of disk. To get the old behavior, start the server with --renderToDisk=true.

  •   Hugo now supports dynamic>
  •   We now use a custom-built LazyFileReader for reading file contents, which means we don't read media files in /content into memory anymore -- and file reading is now performed in parallel on multicore PCs. 1181
  •   Hugo is now built with Go 1.5 which, among many other improvements, have fixed the last known data race in Hugo. 917
  •   Paginator now also supports page groups. 1274
  •   Markdown improvements:

    •   Option to disable Blackfriday's Smartypants.
    •   Option for Blackfriday to open links in a new window/tab. 1220
    •   Option to disable Blackfriday's LaTeX style dashes 1231
    •   Definition lists extension support.
    •   Hugo now supports GitHub-flavoured markdown code fences for highlighting for md-files (Blackfriday rendered markdown) and mmark files (MMark rendered markdown). 3621258
    •   Several new Blackfriday options are added:

  •   Scratch now has built-in map support.
  •   We now fall back to link> for the default page sort. 1299
  •   Some notable new configuration options:

    •   IgnoreFiles can be set with a list of Regular Expressions that matches files to be ignored during build. 1189
    •   PreserveTaxonomyNames, when set to true, will preserve what you type as the taxonomy name both in the folders created and the taxonomy key, but it will be normalized for the URL.  1180

  •   hugo gen can now generate man files, bash auto complete and markdown documentation
  •   Hugo will now make suggestions when a command is mistyped
  •   Shortcodes now have a boolean .IsNamedParams property. 1597
新模版特性

  •   All template engines:

    •   The new dict function that could be used to pass maps into a template.1463
    •   The new pluralize and singularize template funcs.
    •   The new base64Decode and base64Encode template funcs.
    •   The sort template func now accepts field/key chaining arguments and pointer values. 1330
    •   Several fixes for slicestr and substr, most importantly, they now have full utf-8-support. 1190 1333 1347
    •   The new last template function allows the user to select the last N items of a slice. 1148
    •   The new after func allows the user to select the items after the Nth item. 1200
    •   Add time.Time type support to the where, ge, gt, le, and lt template functions.
    •   It is now possible to use constructs like where Values ".Param.key" nil to filter pages that doesn't have a particular parameter. 1232
    •   getJSON/getCSV: Add retry on invalid content. 1166
    •   The new readDir func lists local files. 1204
    •   The new safeJS function allows the embedding of content into JavaScript contexts in Go templates.
    •   Get the main site RSS link from any page by accessing the .Site.RSSLink property. 1566

  •   Ace templates:

    •   Base templates now also works in themes. 1215.
    •   And now also on Windows. 1178

  •   Full support for Amber templates including all template functions.
  •   A built-in template for Google Analytics. 1505
  •   Hugo is now shipped with new built-in shortcodes: 1576

    •   youtube for YouTube videos
    •   vimeo for Vimeo videos
    •   gist for GitHub gists
    •   tweet for Twitter Tweets
    •   speakerdeck for Speakerdeck slides

Bug 修复
  

  •   Fix data races in page sorting and page reversal. These operations are now also cached. 1293
  •   page.HasMenuCurrent() and node.HasMenuCurrent() now work correctly in multi-level nested menus.
  •   Support Fish and Chips style section>Fish And Chips. Now, the first character is made toupper, but the rest are preserved as-is. 1176
  •   Hugo now removes superfluous p-tags around shortcodes. 1148
注意

  •   hugo server will watch by default now.
  •   Some fields and methods were deprecated in 0.14. These are now removed, so the error message isn't as friendly if you still use the old values. So please change:

    •   getJson to getJSON, getCsv to getCSV, safeHtml tosafeHTML, safeCss to safeCSS, safeUrl to safeURL, Url to URL,UrlPath to URLPath, BaseUrl to BaseURL, Recent to Pages.

  下载页面:v0.15
  Hugo 是 Go 编写的静态网站生成器,速度快,易用,可配置。Hugo 有一个内容和模板目录,把他们渲染到完全的 HTML 网站。

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.iyunv.com/thread-144716-1-1.html 上篇帖子: Spring Social 1.1.4 发布,Spring 社交扩展框架 下篇帖子: Plotly.js v1.1.0 发布,JavaScript 图表库
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表