2020年7月12日日曜日

開発環境

Build Websites With Hugo: Fast Web Development With Markdown (Brian P. Hogan(著)、Pragmatic Bookshelf)のChapter 4(Working with Data)、Your Turn 1.の解答を求めてみる。

portfolio/config.toml

baseURL = "http://example.org/"
languageCode = "ja-jp"
title = "Kamimura's Site"
theme = "basic"

[params]
 author = "kamimura"
 keywords = "Hugo,Go"

portfolio/themes/basic/layouts/partials/head.html

<head>
<meta charset="utf-8">
<meta name="author" content="{{ .Site.Params.author }}">
<meta name="keywords" content="{{ .Site.Params.keywords }}">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ .Site.Title }}</title>
<link rel="stylesheet" href="{{ "css/style.css" | relURL }}">
</head>

0 コメント:

コメントを投稿