Build Static (Web)sites w/ Hugo and Go Templates (Slide Deck) - Golang Vienna Meetup

agolangf · · 463 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Hello,</p> <p>For tonight&#39;s Golang Vienna meetup the slide deck titled:</p> <p><a href="http://slideshow-s9.github.io/demos/gohugo.html" rel="nofollow">Build Static (Web)sites w/ Hugo and Go Templates</a>&#34; in HTML (use space to flip through or use the t-key to toggle) or see the <a href="https://github.com/geraldb/talks/blob/master/gohugo.md" rel="nofollow">all-in-one-page source</a> in Markdown</p> <p>The agenda reads:</p> <ul> <li>Hello, Hugo!</li> <li>Hugo Stay Static Sample Site - Posts, Pages, Datafiles</li> <li>Markdown Madness - Markdown Extensions n Goodies</li> <li>HTML Template Options in Go</li> <li>Demo - Go Live - Free (Static) Site Hosting Options</li> <li>Why Static?</li> <li>Best of &#34;Both Worlds&#34;</li> <li>Thanks - Stay Static</li> </ul> <p>Questions, comments welcome. What are you using Hugo for? Blog, Project Sites, Books, etc. Let us know. </p> <p>Go Hugo! Go Nuts! Cheers. </p> <hr/>**评论:**<br/><br/>earthboundkid: <pre><p>The ability to use Go 1.6 blocks in the new version of Hugo makes the template language 1000x better. Having to do the same <code>&lt;html&gt;</code> boilerplate and partials because of the lack of template extensions was a pain.</p></pre>mgutz: <pre><p>Wordpress and the others can cache a page for you without having to hit the database (except on the first hit). If you can setup and deploy Hugo you can optimize a platfform like Wordpress. A $5/mo hosted site can and has served tens of thousands of pages with caching configured properly. The speed of Hugo becomes a wash when pages are deployed.</p> <p>With that said, I prefer static site generators because I&#39;m a coder and prefer version control. I don&#39;t recommend generator to friends because I don&#39;t want to be their customer support.</p></pre>GoTheFuckToBed: <pre><p><a href="http://slideshow-s9.github.io/demos/gohugo.html#25" rel="nofollow">http://slideshow-s9.github.io/demos/gohugo.html#25</a></p> <p>The figure shortcode is very opinionated. How about just using markdown inside the caption?</p></pre>geraldbauer: <pre><p>Good point. The figure shortcode is just an example (copied from the Go Hugo Docu) - showing that you can use more than just (simple) parameters in a shortcode e.g. if/else etc.</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

463 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传