開発環境
- 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 1.の解答を求めてみる。
portfolio/themes/basic/layouts/partials/nav.html
<nav>
<a href="/">ホーム</a>
<a href="/about">About</a>
<a href="/resume">Résumé</a>
<a href="/問い合わせ">問い合わせ</a>
</nav>
portfolio/themes/basic/layouts/_default/baseof.html
<!doctype html>
<html>
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
{{- partial "nav.html" . -}}
<div id="container">
<main>
{{- block "main" . }}{{- end }}
</main>
</div>
{{- partial "footer.html" . -}}
</body>
</html>
0 コメント:
コメントを投稿