This commit is contained in:
nanxiaobei 2018-03-13 13:46:37 +08:00
parent 0b63124530
commit 01aa49cb24
1 changed files with 23 additions and 23 deletions

View File

@ -25,32 +25,32 @@
<!-- Styles --> <!-- Styles -->
<link href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700,700i" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700,700i" rel="stylesheet">
<link href="https://cdn.bootcss.com/highlight.js/9.12.0/styles/default.min.css" rel="stylesheet"> <link href="https://cdn.bootcss.com/highlight.js/9.12.0/styles/default.min.css" rel="stylesheet">
<link href="./css/style.css" rel="stylesheet"> <link href="/css/style.css" rel="stylesheet">
<!-- Favicons --> <!-- Favicons -->
<link rel="apple-touch-icon" href="./img/apple-touch-icon.png"> <link rel="apple-touch-icon" href="/img/apple-touch-icon.png">
<link rel="icon" href="./img/favicon.ico"> <link rel="icon" href="/img/favicon.ico">
<!-- Generator --> <!-- Generator -->
<meta name="generator" content="Hugo {{ .Hugo.Version }}"> <meta name="generator" content="Hugo {{ .Hugo.Version }}">
<!-- RSS --> <!-- RSS -->
<link rel="alternate" type="application/atom+xml" href="./index.xml" title="{{ .Site.Title }}"> <link rel="alternate" type="application/atom+xml" href="/index.xml" title="{{ .Site.Title }}">
</head> </head>
<body class="{{if eq .Kind `page` }}single{{else}}list{{end}}"> <body class="{{if eq .Kind `page` }}single{{else}}list{{end}}">
<header class="header"> <header class="header">
{{ if .IsHome }} {{ if .IsHome }}
<h1 class="title"><a href="{{ `./` | absURL }}"><span>🍱</span>{{ .Site.Title }}</a></h1> <h1 class="title"><a href="{{ `./` | absURL }}"><span>🍱</span>{{ .Site.Title }}</a></h1>
{{ else }} {{ else }}
<p class="title"><a href="{{ `./` | absURL }}"><span>🍱</span>{{ .Site.Title }}</a></p> <p class="title"><a href="{{ `./` | absURL }}"><span>🍱</span>{{ .Site.Title }}</a></p>
{{ end }} {{ end }}
<button class="menu-toggle" type="button"></button> <button class="menu-toggle" type="button"></button>
<nav class="menu"> <nav class="menu">
<ul> <ul>
{{ $currentPage := . }} {{ $currentPage := . }}
{{ range .Site.Menus.main }} {{ range .Site.Menus.main }}
<li class="{{ if $currentPage.IsMenuCurrent `main` . }}active{{ end }}"> <li class="{{ if $currentPage.IsMenuCurrent `main` . }}active{{ end }}">
<a href="{{ .URL }}">{{ .Name }}</a> <a href="{{ .URL }}">{{ .Name }}</a>
</li> </li>
{{ end }} {{ end }}
</ul> </ul>
</nav> </nav>
</header> </header>
<main class="main"> <main class="main">