aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default/media.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/layouts/_default/media.html')
-rw-r--r--themes/default/layouts/_default/media.html68
1 files changed, 0 insertions, 68 deletions
diff --git a/themes/default/layouts/_default/media.html b/themes/default/layouts/_default/media.html
deleted file mode 100644
index f4bb3a9..0000000
--- a/themes/default/layouts/_default/media.html
+++ /dev/null
@@ -1,68 +0,0 @@
-{{ define "styles" }}
-{{ $author := partial "author-user.html" . }}
-<style>
- {{ partial "styles-navigator.html" (dict "Link" "/") | safeCSS }}
-
- tab-list a[href="{{ .Site.BaseURL }}/{{ $author }}/media/"] {
- color: #111;
- color: var(--foreground);
- display: inherit;
- font-weight: 700;
- text-decoration-color: #014cc6;
- text-decoration-color: var(--link);
- text-decoration: underline;
- }
-</style>
-{{ end }}
-
-{{ define "middle" }}
-
- {{ partial "navigator-middle.html"
- (dict
- "Title" "Media"
- "Subtitle" (partial "count-media.html" .)
- "Icon" "arrow-left"
- "IconLabel" "Back"
- "Href" "/"
- "Id" "back"
- "Context" .
- )
- }}
-
- {{ partial "profile.html" . }}
-
- {{- $author := partial "author-user.html" . -}}
-
- {{ $count := 0 }}
- {{ $result := false }}
-
- {{ range .Site.Pages }}
- {{ if or
- (in .Content "<figure>")
- (in .Content "<imgur-video>")
- (in .Content "<youtube-video>")
- (in .Content "<video-container>")
- }}
- {{ if eq .Type $author }}
- {{ $result = true }}
- {{ $count = add $count 1 }}
- {{ if le $count 10 }}
- {{ .Render "summary" }}
- {{ end }}
- {{ end }}
- {{ end }}
- {{ end }}
-
- {{ if not $result }}
- <footer>
- <code>No media found!</code>
- </footer>
- {{ end }}
-
- {{ partial "pagination.html" . }}
-
-{{ end }}
-
-{{ define "right" }}
- {{- partial "navigator-right.html" . -}}
-{{ end }}