mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
09e08d0772
**Breaking changes**: 1. Legacy custom style/script files are no longer loaded automatically. 2. Users must migrate custom files to: - `custom.scss` - `override.scss` - `_variables.scss` - `assets/js/custom.js` **Migration guide**: 1. Move `assets/css/_custom.scss` to `assets/scss/custom.scss`. 2. Move `assets/css/_override.scss` to `assets/scss/override.scss`. 3. Keep variables in `assets/scss/_variables.scss`. 4. Move `assets/js/_custom.js` to `assets/js/custom.js`. 5. Rebuild site and verify no deprecation warnings remain.
41 lines
1.7 KiB
HTML
41 lines
1.7 KiB
HTML
{{- partial "init/index.html" . -}}
|
|
|
|
<!DOCTYPE html>
|
|
<html itemscope itemtype="http://schema.org/WebPage" lang="{{ .Site.Language.Locale }}">
|
|
<head>
|
|
{{- if .IsHome | and (ne .Site.Params.disableThemeInject true) }}
|
|
<meta name="theme" content='FixIt {{ hugo.Store.Get "version" }}'>
|
|
{{- end }}
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
|
|
<meta name="robots" content="noodp" />
|
|
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
|
|
|
|
{{- partial "layouts/head.html" . -}}
|
|
{{- /* TODO preload script https://developer.mozilla.org/zh-CN/docs/Web/HTML/Attributes/rel/preload */ -}}
|
|
{{- /* Custom head */ -}}
|
|
{{- block "custom-head" . }}{{ end -}}
|
|
</head>
|
|
<body data-instant-intensity="viewport" data-header-desktop="{{ .Site.Params.header.desktopMode }}" data-header-mobile="{{ .Site.Params.header.mobileMode }}">
|
|
{{- /* Body wrapper */ -}}
|
|
<div class="wrapper" data-page-style="{{ (partial `function/params.html`).pageStyle | default `normal` }}">
|
|
{{- partial "layouts/header.html" . -}}
|
|
{{- partial "layouts/breadcrumb.html" . -}}
|
|
{{- $toc := .Store.Get "toc" -}}
|
|
<main class="fi-container"{{ if (eq $toc.enable true) | and (eq $toc.position `left`) }} data-reverse{{ end }}>
|
|
{{- block "content" . }}{{ end -}}
|
|
</main>
|
|
{{- /* Comment */ -}}
|
|
{{- block "comments" . }}{{ end -}}
|
|
{{- /* Footer */ -}}
|
|
{{- partialCached "layouts/footer.html" . -}}
|
|
</div>
|
|
|
|
{{- /* Theme widgets */ -}}
|
|
{{- partial "layouts/widgets.html" . -}}
|
|
|
|
{{- /* Load JavaScript scripts and CSS */ -}}
|
|
{{- partial "layouts/assets.html" . -}}
|
|
</body>
|
|
</html>
|