Hugo bugfix for Congo.
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
{{ $jsHome := resources.Get "js/home.js" | resources.Minify | resources.Fingerprint "sha512" }}
|
{{ $jsHome := resources.Get "js/home.js" | resources.Minify | resources.Fingerprint "sha512" }}
|
||||||
<div id="page">
|
<div id="page">
|
||||||
{{ partial "partials/home/page.html" . }}
|
{{ partial "home/page.html" . }}
|
||||||
</div>
|
</div>
|
||||||
<div id="profile" class="hidden h-full">
|
<div id="profile" class="hidden h-full">
|
||||||
{{ partial "partials/home/profile.html" . }}
|
{{ partial "home/profile.html" . }}
|
||||||
</div>
|
</div>
|
||||||
<script
|
<script
|
||||||
defer
|
defer
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{{- partial "partials/functions/warnings.html" .Site -}}
|
{{- partial "functions/warnings.html" .Site -}}
|
||||||
{{- partial "partials/functions/init.html" . -}}
|
{{- partial "functions/init.html" . -}}
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html
|
<html
|
||||||
lang="{{- site.Language.LanguageCode | default "" -}}"
|
lang="{{- site.Language.LanguageCode | default "" -}}"
|
||||||
@@ -20,11 +20,11 @@
|
|||||||
>{{ i18n "nav.skip_to_main" }}</a
|
>{{ i18n "nav.skip_to_main" }}</a
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
{{ $header := print "partials/header/" .Site.Params.header.layout ".html" }}
|
{{ $header := print "header/" .Site.Params.header.layout ".html" }}
|
||||||
{{ if templates.Exists $header }}
|
{{ if templates.Exists $header }}
|
||||||
{{ partial $header . }}
|
{{ partial $header . }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ partial "partials/header/basic.html" . }}
|
{{ partial "header/basic.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="relative flex grow flex-col">
|
<div class="relative flex grow flex-col">
|
||||||
<main id="main-content" class="grow">
|
<main id="main-content" class="grow">
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
{{ partial "sharing-links.html" . }}
|
{{ partial "sharing-links.html" . }}
|
||||||
{{ partial "article-pagination.html" . }}
|
{{ partial "article-pagination.html" . }}
|
||||||
{{ if .Params.showComments | default (.Site.Params.article.showComments | default false) }}
|
{{ if .Params.showComments | default (.Site.Params.article.showComments | default false) }}
|
||||||
{{ if templates.Exists "partials/comments.html" }}
|
{{ if templates.Exists "comments.html" }}
|
||||||
<div class="pt-3">
|
<div class="pt-3">
|
||||||
<hr class="border-dotted border-neutral-300 dark:border-neutral-600" />
|
<hr class="border-dotted border-neutral-300 dark:border-neutral-600" />
|
||||||
<div class="pt-3">
|
<div class="pt-3">
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
{{ $partial := print "partials/home/" .Site.Params.homepage.layout ".html" }}
|
{{ $partial := print "home/" .Site.Params.homepage.layout ".html" }}
|
||||||
{{ if templates.Exists $partial }}
|
{{ if templates.Exists $partial }}
|
||||||
{{ partial $partial . }}
|
{{ partial $partial . }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ partial "partials/home/page.html" . }}
|
{{ partial "home/page.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
@@ -61,7 +61,7 @@
|
|||||||
{{ partial "badge.html" (i18n "article.draft" | emojify) }}
|
{{ partial "badge.html" (i18n "article.draft" | emojify) }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if templates.Exists "partials/extend-article-link.html" }}
|
{{ if templates.Exists "extend-article-link.html" }}
|
||||||
{{ partial "extend-article-link.html" . }}
|
{{ partial "extend-article-link.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</h3>
|
</h3>
|
||||||
|
|||||||
@@ -134,7 +134,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/* Extend footer - eg. for extra scripts, etc. */}}
|
{{/* Extend footer - eg. for extra scripts, etc. */}}
|
||||||
{{ if templates.Exists "partials/extend-footer.html" }}
|
{{ if templates.Exists "extend-footer.html" }}
|
||||||
{{ partial "extend-footer.html" . }}
|
{{ partial "extend-footer.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
@@ -99,7 +99,7 @@
|
|||||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .RelPermalink ($.Site.Title | emojify) | safeHTML }}
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .RelPermalink ($.Site.Title | emojify) | safeHTML }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{/* Icons */}}
|
{{/* Icons */}}
|
||||||
{{ if templates.Exists "partials/favicons.html" }}
|
{{ if templates.Exists "favicons.html" }}
|
||||||
{{ partialCached "favicons.html" .Site }}
|
{{ partialCached "favicons.html" .Site }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="{{ "apple-touch-icon.png" | relURL }}" />
|
<link rel="apple-touch-icon" sizes="180x180" href="{{ "apple-touch-icon.png" | relURL }}" />
|
||||||
@@ -140,7 +140,7 @@
|
|||||||
{{/* Analytics */}}
|
{{/* Analytics */}}
|
||||||
{{ partial "analytics.html" . }}
|
{{ partial "analytics.html" . }}
|
||||||
{{/* Extend head - eg. for custom analytics scripts, etc. */}}
|
{{/* Extend head - eg. for custom analytics scripts, etc. */}}
|
||||||
{{ if templates.Exists "partials/extend-head.html" }}
|
{{ if templates.Exists "extend-head.html" }}
|
||||||
{{ partial "extend-head.html" . }}
|
{{ partial "extend-head.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
Reference in New Issue
Block a user