Blog

Migrate to Hugo from Jekyll

March 10, 2014

Move static content to static # Jekyll has a rule that any directory not starting with _ will be copied as-is to the _site output. Hugo keeps all static content under static. You should therefore move it all there. With Jekyll, something that looked like ▾ <root>/ ▾ images/ logo.png should become ▾ <root>/ ▾ static/ ▾ images/ logo.png Additionally, you’ll want any files that should reside at the root (such as CNAME) to be moved to static. ...

“霸屏”的 PC 电脑网络弹窗也该治治了

July 18, 2021
新闻报道, 潜在有害, 弹窗骚扰

7月18日上午,江苏省消保委召开新闻发布会,通报了PC端应用软件网络弹窗调查情况。根据江苏消费网舆情监测中心数据显示,2021年1月至今,江苏省内有关网络弹窗的相关舆情信息共5935条,其中负面舆情信息3737条,问题主要集中在网络弹窗内置木马病毒、不能一键关闭,其内容涉嫌诈骗、低俗等。

在此背景下,江苏省消保委开展了PC端应用软件网络弹窗调查。体验调查结果显示,从官方渠道下载的30款应用软件中,有迅雷、小鸟壁纸、暴风影音、酷我音乐、爱剪辑、360安全浏览器、ACDsee、2345看图王、360安全卫士、QQ、腾讯视频等11款存在网络弹窗问题,占调查总量的37% 。

...

(Hu)go Template Primer

April 2, 2014
Development, golang
go, golang, templates, themes, development

Hugo uses the excellent Go html/template library for its template engine. It is an extremely lightweight engine that provides a very small amount of logic. In our experience that it is just the right amount of logic to be able to create a good static website. If you have used other template systems from different languages or frameworks you will find a lot of similarities in Go templates. This document is a brief primer on using Go templates. ...

Getting Started with Hugo

April 2, 2014
Development, golang
go, golang, hugo, development

Step 1. Install Hugo # Go to Hugo releases and download the appropriate version for your OS and architecture. Save it somewhere specific as we will be using it in the next step. More complete instructions are available at Install Hugo Step 2. Build the Docs # Hugo has its own example site which happens to also be the documentation site you are reading right now. Follow the following steps: ...