mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 07:18:57 +00:00
♻️ Refactor: move all files in layouts/_default up to the layouts/ root (#607)
The `_default` folder is removed.
This commit is contained in:
@@ -114,7 +114,8 @@
|
||||
|
||||
.toc-content {
|
||||
overflow-y: scroll;
|
||||
max-height: calc(100vh - #{2*$header-height});
|
||||
// TODO 这里计算错误,待重构
|
||||
max-height: calc(100vh - #{2 * $header-height});
|
||||
@include scrollbar-width(none, 0);
|
||||
|
||||
&.always-active ul,
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{{- range (where .Site.Pages "Kind" "page") -}}
|
||||
{{- println .Permalink -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
@@ -1,13 +1,16 @@
|
||||
# {{ .Site.Title }}
|
||||
|
||||
> {{ .Site.Params.description }}
|
||||
|
||||
{{ $pages := .Scratch.Get "mainSectionPages" -}}
|
||||
{{- $pages = where $pages "Draft" "eq" false -}}
|
||||
{{- T "section.archiveCounter" (len $pages) }}
|
||||
{{- T "section.archiveCounter" (len $pages) }} by [{{ .Site.Params.author.name }}]({{ .Site.Params.author.link }}).
|
||||
{{ range $pages.GroupByPublishDate "2006" }}
|
||||
{{- if ne .Key "0001" -}}
|
||||
{{- printf "\n## %v\n\n%v\n\n" .Key (T "section.archiveCounter" .Pages.Len) -}}
|
||||
{{- printf "\n## %v\n\n<details>\n<summary>%v</summary>\n\n" .Key (T "section.archiveCounter" .Pages.Len) -}}
|
||||
{{- range .Pages -}}
|
||||
{{- printf "- %v [%v](%v \"%v\")\n" (.PublishDate.Format "01-02") .Title .Permalink (.PublishDate.Format "2006-01-02 15:04:05") -}}
|
||||
{{- end -}}
|
||||
{{- printf "\n</details>\n" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
@@ -1,5 +1,5 @@
|
||||
{{- $params := partial "function/params.html" -}}
|
||||
{{- $author := .Store.Get "author" -}}
|
||||
{{- $author := .Store.Get "author" | default (partial "function/get-author-map.html" .Params.author) -}}
|
||||
# {{ cond (.Param "capitalizeTitles") (title .Title) .Title }}
|
||||
|
||||
{{ if $params.password -}}
|
||||
Reference in New Issue
Block a user