開発環境
- macOS Catalina - Apple (OS)
- Emacs (Text Editor)
- Windows 10 Pro (OS)
- Visual Studio Code (Text Editor)
- Hugo
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 コメント:
コメントを投稿