Google Analyticsのスクリプトがanalytics.js
からgtag.js
に変えた方が良さそうということで、変えてみた。
Hugo(v0.80.0)および使用しているテンプレートでgtag.js
に対応していないので、Hugoの機能を使ってテンプレートの一部をオーバーライドすることでリプレイスすることにした。
ハッピーエンド至上主義者のメモ書き
This message, related to the development of the theme, only displays on the
localhost
homepage to notify you of any important theme changes.
With this version, the theme has fully implemented static search using
lunr.js
. That being said, a few modifications were necessary to implement this
feature.
To utilize this, or future version of Hugo Future Imperfect Slim, please make the following changes:
config.toml
before [params]
:...
disableLanguages = [""]
[outputs]
home = ["html", "json"]
[params]
...
Remove the underscore from all about
and contact
page file names:
_index.md --> index.md
Add layout = "about"
or layout = "contact"
to all of the files you just
just adjusted the file names for.
While I realize this is inconvenient, I hope that it is worth it to you in the long run. Thanks for using the theme, and feel free to submit issues as needed.