瀏覽代碼

Merge branch 'master' of github.com:budparr/gohugo-theme-ananke into 81-site-logo

81-site-logo
mountainbug95 4 年之前
父節點
當前提交
a39356e56c
沒有連結到貢獻者的電子郵件帳戶。
共有 3 個檔案被更改,包括 6 行新增0 行删除
  1. 5
    0
      README.md
  2. 1
    0
      layouts/_default/baseof.html
  3. 0
    0
      layouts/partials/head-additions.html

+ 5
- 0
README.md 查看文件

@@ -141,6 +141,11 @@ For example, if your css files are `static/css/custom.css` and `static/css/custo
If you add a key of `show_reading_time` true to either the Config Params, a page or section's front matter, articles will show the reading time and word count.


### Adding Scripts to the Page Head

Some scripts need to be added within the page head. To add your own scripts to the page head, simply insert them into the `head-additions.html` partial located in the `layouts/partials` folder.


### Nearly finished

In order to see your site in action, run Hugo's built-in local server.

+ 1
- 0
layouts/_default/baseof.html 查看文件

@@ -42,6 +42,7 @@
{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
{{ template "_internal/google_analytics_async.html" . }}
{{ end }}
{{ block "head" . }}{{ partial "head-additions.html" }}{{ end }}
</head>

<body class="ma0 {{ $.Param "body_classes" | default "avenir bg-near-white"}}{{ with getenv "HUGO_ENV" }} {{ . }}{{ end }}">

+ 0
- 0
layouts/partials/head-additions.html 查看文件


Loading…
取消
儲存