開発環境
- 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 2(Building a Basic Theme)、Your Turn 2.の解答を求めてみる。
portfolio/themes/bootstrap/layouts/partials/head.html
baseURL = "http://example.org/"
languageCode = "ja-jp"
title = "Kamimura's Site"
theme = "bootstrap"
portfolio/themes/bootstrap/layouts/partials/head.html
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ .Site.Title }}</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"
integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI"
crossorigin="anonymous"></script>
</head>
入出力結果(Zsh、PowerShell、Terminal)
% tree themes/bootstrap
themes/bootstrap
├── LICENSE
├── archetypes
│ └── default.md
├── layouts
│ ├── 404.html
│ ├── _default
│ │ ├── baseof.html
│ │ ├── list.html
│ │ └── single.html
│ ├── index.html
│ └── partials
│ ├── baseof.html
│ ├── footer.html
│ ├── head.html
│ ├── header.html
│ ├── list.html
│ ├── nav.html
│ └── single.html
├── static
│ ├── css
│ └── js
└── theme.toml
7 directories, 15 files
%
0 コメント:
コメントを投稿