|
| 1 | +{{/* |
| 2 | + Project-level override of themes/hugo-xmin/layouts/partials/header.html |
| 3 | + |
| 4 | + This file is a copy of the theme's header with ONE addition: |
| 5 | + - Line 40: {{ partial "announcement.html" . }} - Injects site-wide announcement banner |
| 6 | + |
| 7 | + The announcement banner is configured in config.toml under [params.announcement] |
| 8 | + |
| 9 | + Created: 2025-01-04 for bookdown.org sunset announcement |
| 10 | +*/}} |
| 11 | +<!DOCTYPE html> |
| 12 | +<html lang="{{ .Site.LanguageCode }}"> |
| 13 | + <head> |
| 14 | + <meta charset="utf-8"> |
| 15 | + <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 16 | + <title>{{ .Title }} | {{ .Site.Title }}</title> |
| 17 | + <meta name="twitter:card" content="summary" /> |
| 18 | + <meta name="twitter:title" content="bookdown: Authoring Books and Technical Documents with R Markdown" /> |
| 19 | + <meta name="twitter:description" content="The platform bookdown.org is provided by RStudio for authors to publish books online for free. The bookdown package is an open-source R package that facilitates writing books and long-form articles/reports with R Markdown." /> |
| 20 | + <meta name="twitter:image" content="https://bookdown.org/yihui/bookdown/images/logo.png" /> |
| 21 | + <meta property="og:image" content="https://bookdown.org/yihui/bookdown/images/logo.png" /> |
| 22 | + <link rel="icon" type="image/png" href="{{ "/images/favicon.png" | relURL }}" /> |
| 23 | + <link rel="stylesheet" href="{{ "/css/style.css" | relURL }}" /> |
| 24 | + <link rel="stylesheet" href="{{ "/css/fonts.css" | relURL }}" /> |
| 25 | + </head> |
| 26 | + |
| 27 | + <body> |
| 28 | + <nav class="menu"> |
| 29 | + {{ partial "icons.html" . }} |
| 30 | + <ul> |
| 31 | + {{ range .Site.Menus.logo }} |
| 32 | + <li class="icon left"> |
| 33 | + <a href="{{ .URL | relURL }}"><img src="{{ relURL .Pre }}" alt="{{ .Name }}" title="{{ .Name }}" /></a> |
| 34 | + </li> |
| 35 | + {{ end }} |
| 36 | + {{ range .Site.Menus.main }} |
| 37 | + <li{{ if .Identifier }} class="optional"{{ end }}> |
| 38 | + <a href="{{ .URL | relURL }}"{{ if eq .URL $.RelPermalink }} class="active"{{ end }}>{{ .Name }}</a> |
| 39 | + </li> |
| 40 | + {{ end }} |
| 41 | + {{ range .Site.Menus.icons }} |
| 42 | + <li class="icon right"> |
| 43 | + <a href="{{ .URL | relURL }}"><svg viewBox="0 0 16 16"><use xlink:href="#icon-{{ .Post }}"></use></svg></a> |
| 44 | + </li> |
| 45 | + {{ end }} |
| 46 | + </ul> |
| 47 | + </nav> |
| 48 | +{{ partial "announcement.html" . }} |
0 commit comments