浏览代码

Permit a single layout stylesheet for each content type

Eg: /css/post.css
master
Adrian Short 7 年前
父节点
当前提交
eabe679e89
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. +5
    -0
      layouts/partials/header.html

+ 5
- 0
layouts/partials/header.html 查看文件

@@ -6,6 +6,11 @@
{{ "<!-- Tumble theme for Hugo: https://github.com/adrianshort/tumble -->" | safeHTML }}
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="{{ relURL "/css/main.css" }}">

{{- with .Type -}}
<link rel="stylesheet" href="{{ relURL "/css/" }}{{ . }}.css">
{{ end }}

<link rel="alternate" type="application/rss+xml" title="{{ partial "data/title" . }}"
href="{{ .RSSLink }}">
{{- template "_internal/opengraph.html" . -}}


正在加载...
取消
保存