mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 12:03:31 +08:00
Merge branch 'master' into update-i18n
This commit is contained in:
commit
f965dfd03a
@ -3,6 +3,10 @@
|
||||
|
||||
> Card-style Hugo theme designed for bloggers.
|
||||
|
||||
## Quickstart
|
||||
|
||||
Use this template: [CaiJimmy/hugo-theme-stack-starter](https://github.com/CaiJimmy/hugo-theme-stack-starter)
|
||||
|
||||
## Demo
|
||||
|
||||
[Example Site](https://demo.stack.jimmycai.com/)
|
||||
@ -28,6 +32,7 @@ Stack is a simple card-style Hugo theme designed for bloggers, some of its featu
|
||||
- Properly cropped thumbnails
|
||||
- Subsection support
|
||||
- Table of contents
|
||||
- Multilingual mode and RTL support
|
||||
|
||||
## Requirements
|
||||
|
||||
|
@ -6,7 +6,14 @@
|
||||
</head>
|
||||
<body class="{{ block `body-class` . }}{{ end }}">
|
||||
{{- partial "head/colorScheme" . -}}
|
||||
{{- $hasWidget := default (gt (len .Site.Params.widgets.homepage) 0) (.Scratch.Get "hasWidget") -}}
|
||||
|
||||
{{/* The container is wider when there's any activated widget */}}
|
||||
{{- $hasWidget := false -}}
|
||||
{{- range .Site.Params.widgets -}}
|
||||
{{- if gt (len .) 0 -}}
|
||||
{{- $hasWidget = true -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
<div class="container main-container flex on-phone--column {{ if $hasWidget }}extended{{ else }}compact{{ end }}">
|
||||
{{- block "left-sidebar" . -}}
|
||||
{{ partial "sidebar/left.html" . }}
|
||||
|
@ -1,4 +1,4 @@
|
||||
{{- $ThemeVersion := "3.9.0" -}}
|
||||
{{- $ThemeVersion := "3.10.0" -}}
|
||||
<footer class="site-footer">
|
||||
<section class="copyright">
|
||||
©
|
||||
|
Loading…
Reference in New Issue
Block a user