From 039b99d5b29aebfe0c966156c3d5b26f32da5437 Mon Sep 17 00:00:00 2001 From: Haoxiang Wang Date: Thu, 2 May 2024 02:48:31 -0500 Subject: [PATCH] Remove layout configs --- layouts/_default/list.html | 123 ----------------------------------- layouts/_default/single.html | 79 ---------------------- 2 files changed, 202 deletions(-) delete mode 100644 layouts/_default/list.html delete mode 100644 layouts/_default/single.html diff --git a/layouts/_default/list.html b/layouts/_default/list.html deleted file mode 100644 index 690d248..0000000 --- a/layouts/_default/list.html +++ /dev/null @@ -1,123 +0,0 @@ -{{- define "main" }} - -{{- if (and site.Params.profileMode.enabled .IsHome) }} -{{- partial "index_profile.html" . }} -{{- else }} {{/* if not profileMode */}} - -{{- if not .IsHome | and .Title }} - -{{- end }} - -{{- if .Content }} -
- {{- if not (.Param "disableAnchoredHeadings") }} - {{- partial "anchored_headings.html" .Content -}} - {{- else }}{{ .Content }}{{ end }} -
-{{- end }} - -{{- $pages := union .RegularPages .Sections }} - -{{- if .IsHome }} -{{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }} -{{- $pages = where $pages "Params.hiddenInHomeList" "!=" "true" }} -{{- end }} - -{{- $paginator := .Paginate $pages }} - -{{- if and .IsHome site.Params.homeInfoParams (eq $paginator.PageNumber 1) }} -{{- partial "home_info.html" . }} -

Latest Posts

-{{- end }} - - -{{- $term := .Data.Term }} -{{- range $index, $page := $paginator.Pages }} - -{{- $class := "post-entry" }} - -{{- $user_preferred := or site.Params.disableSpecial1stPost site.Params.homeInfoParams }} -{{- if (and $.IsHome (eq $paginator.PageNumber 1) (eq $index 0) (not $user_preferred)) }} -{{- $class = "first-entry" }} -{{- else if $term }} -{{- $class = "post-entry tag-entry" }} -{{- end }} - -
- {{- $isHidden := (.Param "cover.hiddenInList") | default (.Param "cover.hidden") | default false }} - {{- partial "cover.html" (dict "cxt" . "IsSingle" false "isHidden" $isHidden) }} -
-

- {{- .Title }} - {{- if .Draft }} - - - - - - {{- end }} -

-
- {{- if (ne (.Param "hideSummary") true) }} -
-

{{ .Summary | plainify | htmlUnescape }}{{ if .Truncated }}...{{ end }}

-
- {{- end }} - {{- if not (.Param "hideMeta") }} -
- {{- partial "post_meta.html" . -}} -
- {{- end }} - -
-{{- end }} - -{{- if gt $paginator.TotalPages 1 }} - -{{- end }} - -{{- end }}{{/* end profileMode */}} - -{{- end }}{{- /* end main */ -}} \ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html deleted file mode 100644 index 3e57f83..0000000 --- a/layouts/_default/single.html +++ /dev/null @@ -1,79 +0,0 @@ -{{- define "main" }} - - - - - - -
-
- {{ partial "breadcrumbs.html" . }} -

- {{ .Title }} - {{- if .Draft }} - - - - - - {{- end }} -

- {{- if .Description }} -
- {{ .Description }} -
- {{- end }} - {{- if not (.Param "hideMeta") }} - - {{- end }} -
- {{- $isHidden := (.Param "cover.hiddenInSingle") | default (.Param "cover.hidden") | default false }} - {{- partial "cover.html" (dict "cxt" . "IsSingle" true "isHidden" $isHidden) }} - {{- if (.Param "ShowToc") }} - {{- partial "toc.html" . }} - {{- end }} - - {{- if .Content }} -
- {{- if not (.Param "disableAnchoredHeadings") }} - {{- partial "anchored_headings.html" .Content -}} - {{- else }}{{ .Content }}{{ end }} -
- {{- end }} - - - - {{- if not (.Param "noComments") }} - {{- partial "comments.html" . }} - {{- end }} -
- -{{- end }}{{/* end main */}}