惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

I
Intezer
GbyAI
GbyAI
The Register - Security
The Register - Security
Martin Fowler
Martin Fowler
B
Blog RSS Feed
Engineering at Meta
Engineering at Meta
Blog — PlanetScale
Blog — PlanetScale
B
Blog
Vercel News
Vercel News
T
The Blog of Author Tim Ferriss
A
About on SuperTechFans
I
InfoQ
爱范儿
爱范儿
D
Docker
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
N
Netflix TechBlog - Medium
L
LINUX DO - 热门话题
SecWiki News
SecWiki News
酷 壳 – CoolShell
酷 壳 – CoolShell
C
CXSECURITY Database RSS Feed - CXSecurity.com
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
The GitHub Blog
The GitHub Blog
Microsoft Security Blog
Microsoft Security Blog
博客园_首页
F
Full Disclosure
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Vulnerabilities – Threatpost
Y
Y Combinator Blog
阮一峰的网络日志
阮一峰的网络日志
S
SegmentFault 最新的问题
H
Help Net Security
D
Darknet – Hacking Tools, Hacker News & Cyber Security
P
Privacy & Cybersecurity Law Blog
小众软件
小众软件
aimingoo的专栏
aimingoo的专栏
Recorded Future
Recorded Future
Last Week in AI
Last Week in AI
Microsoft Azure Blog
Microsoft Azure Blog
Apple Machine Learning Research
Apple Machine Learning Research
M
MIT News - Artificial intelligence
C
Cyber Attacks, Cyber Crime and Cyber Security
V
V2EX
C
CERT Recently Published Vulnerability Notes
AWS News Blog
AWS News Blog
Jina AI
Jina AI
T
Tenable Blog
IT之家
IT之家
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Threat Research - Cisco Blogs

Hugo News

Release v0.164.0 · gohugoio/hugo Release v0.163.3 · gohugoio/hugo Release v0.163.2 · gohugoio/hugo Release v0.163.1 · gohugoio/hugo Release v0.163.0 · gohugoio/hugo Release v0.162.1 · gohugoio/hugo Release v0.162.0 · gohugoio/hugo Release v0.161.1 · gohugoio/hugo Release v0.160.1 · gohugoio/hugo Release v0.160.0 · gohugoio/hugo Release v0.159.2 · gohugoio/hugo Release v0.159.1 · gohugoio/hugo Release v0.159.0 · gohugoio/hugo Release v0.158.0 · gohugoio/hugo Release v0.157.0 · gohugoio/hugo Release v0.156.0 · gohugoio/hugo Release v0.155.3 · gohugoio/hugo Release v0.155.2 · gohugoio/hugo Release v0.155.1 · gohugoio/hugo Release v0.155.0 · gohugoio/hugo Release v0.154.5 · gohugoio/hugo Release v0.154.4 · gohugoio/hugo Release v0.154.3 · gohugoio/hugo Release v0.154.2 · gohugoio/hugo Release v0.154.1 · gohugoio/hugo Release v0.154.0 · gohugoio/hugo Release v0.153.5 · gohugoio/hugo Release v0.153.4 · gohugoio/hugo
Release v0.161.0 · gohugoio/hugo
2026-04-28 · via Hugo News

This release contains two security hardening fixes:

  • We now run the Node tools PostCSS, Babel and TailwindCSS, by default, with the --permission flag with the permissions defined in security.node.permissions. This means that you need Node >= 22 installed and that css.TailwindCSS now requires that the Tailwind CSS CLI must be installed as a Node.js package. The standalone executable is no longer supported
  • We have made the defaults in security.http.urls more restrictive.

But there are some notable new features, as well:

Nested vars support in css.Build and css.Sass

A practical example in css.Build would be to have something like this in hugo.toml:

[params.style]
    primary    = "#000000"
    background = "#ffffff"
    [params.style.dark]
        primary    = "#ffffff"
        background = "#000000"

And in the stylesheet:

@import "hugo:vars";
@import "hugo:vars/dark" (prefers-color-scheme: dark);

:root {
  color-scheme: light dark;
}

Slice-based permalinks config

The permalinks configuration is now much more flexible (the old setup still works). It uses the same target matchers as in the cascade config, meaning you can now do:

permalinks:
  - target:
      kind: page
      path: "/books/**"
    pattern: /books/:year/:slug/
  - target:
      kind: section
      path: "/{books,books/**}"
    pattern: /libros/:sections[1:]
  - target:
      kind: page
    pattern: /other/:slug/

The above example isn't great, but it at least shows the gist of it.

A more flexible scheme for identifiers in filenames

What we had before was e.g. content/mypost.en.md which told Hugo that the content files was in English. With the new setup you could also name the file content/mypost._language_en_.md. This alone doesn't sound very useful, but this allows you to use more prefixes:

Prefix Description Relevant for
language_ Language Content and layout files.
role_ Role Content and layout files.
version_ Version Content and layout files.
outputformat_ Output format Layout files.
mediatype_ Media type Layout files.
kind_ Page kind Layout files.
layout_ Layout Layout files.

All Changes