From 4a7e7565e87cb96c9248fdbae2792dca5ab74b36 Mon Sep 17 00:00:00 2001 From: Unknown Date: Fri, 10 Jan 2020 10:37:07 -0800 Subject: [PATCH] Simplify structure and add content --- content/docs/hardware/_index.md | 2 +- content/docs/hardware/phone/index.md | 8 ++- layouts/partials/docs/html-head.html | 25 --------- layouts/partials/docs/menu-filetree.html | 66 ------------------------ 4 files changed, 7 insertions(+), 94 deletions(-) delete mode 100644 layouts/partials/docs/html-head.html delete mode 100644 layouts/partials/docs/menu-filetree.html diff --git a/content/docs/hardware/_index.md b/content/docs/hardware/_index.md index a3a638e3b..7c1d80d13 100644 --- a/content/docs/hardware/_index.md +++ b/content/docs/hardware/_index.md @@ -8,4 +8,4 @@ weight: 5 ## Reference Links * http://www.notebookcheck.net - +* https://www.ixbt.com (Russian) diff --git a/content/docs/hardware/phone/index.md b/content/docs/hardware/phone/index.md index a0609ec67..cb4cceb6c 100644 --- a/content/docs/hardware/phone/index.md +++ b/content/docs/hardware/phone/index.md @@ -9,7 +9,6 @@ bookToc: 2 ## Reference Links * [LED Strain {{< param title >}} Tag](https://ledstrain.org/t/{{< param title >}}?sort=top) * ["Usable Smartphones" mega-thread](https://ledstrain.org/d/21-usable-smartphones) -* https://www.ixbt.com (Russian) * [CF.lumen](https://ledstrain.org/d/21-usable-smartphones/277) @@ -155,7 +154,12 @@ bookToc: 2 {{< forum-post 2732 >}} {{< forum-post 6829 >}} -### iPhone XS +### iPhone X + +* [Reddit - iPhone X Uses Pulse Width Modulation, Which Is a Serious Issue for a Sensitive Few + ](https://www.reddit.com/r/apple/comments/7uv6m3/iphone_x_uses_pulse_width_modulation_which_is_a/) + +#### iPhone XS {{< youtube lUCB3WMWdeY >}} diff --git a/layouts/partials/docs/html-head.html b/layouts/partials/docs/html-head.html deleted file mode 100644 index 3f74dba82..000000000 --- a/layouts/partials/docs/html-head.html +++ /dev/null @@ -1,25 +0,0 @@ - - - -{{- template "_internal/opengraph.html" . -}} - -{{ partial "docs/title" . }} - {{ .Site.Title -}} - - - -{{- $styles := resources.Get "book.scss" | resources.ExecuteAsTemplate "book.scss" . | resources.ToCSS | resources.Minify | resources.Fingerprint }} - - -{{ if default true .Site.Params.BookSearch }} -{{- .Scratch.Set "bookSearchConfig" (i18n "bookSearchConfig") -}} -{{- $searchJSFile := printf "%s.search.js" .Language.Lang -}} -{{- $searchJS := resources.Get "search.js" | resources.ExecuteAsTemplate $searchJSFile . | resources.Minify | resources.Fingerprint }} - -{{ end }} - -{{- template "_internal/google_analytics_async.html" . -}} - - -{{ with .OutputFormats.Get "rss" -}} - {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} -{{ end -}} diff --git a/layouts/partials/docs/menu-filetree.html b/layouts/partials/docs/menu-filetree.html deleted file mode 100644 index 30fc2cee0..000000000 --- a/layouts/partials/docs/menu-filetree.html +++ /dev/null @@ -1,66 +0,0 @@ -{{ $bookSection := default "docs" .Site.Params.BookSection }} -{{ if eq $bookSection "*" }} - {{ .Scratch.Set "BookSections" .Site.Sections }} -{{ else }} - {{ $bookSections := where .Site.Sections "Section" $bookSection }} - {{ .Scratch.Set "BookSections" $bookSections }} -{{ end }} - - -{{ $sections := .Scratch.Get "BookSections" }} -{{/* If there is only one section to render then render its children, else render all sections */}} -{{ if eq (len $sections) 1 }} - {{ with index $sections 0 }} - {{ template "book-section-children" (dict "Section" . "CurrentPage" $) }} - {{ end }} -{{ else }} - -{{ end }} - -{{ define "book-section" }} -{{ with .Section }} -
  • - {{ if .Content }} - {{ template "book-page-link" (dict "Page" . "CurrentPage" $.CurrentPage) }} - {{ else }} - {{ partial "docs/title" . }} - {{ end }} - - {{ template "book-section-children" (dict "Section" . "CurrentPage" $.CurrentPage) }} -
  • -{{ end }} -{{ end }} - -{{ define "book-section-children" }} -{{ $ancestor := .Section.IsAncestor .CurrentPage }} -{{ $collapsed := .Section.Params.bookCollapseSection }} - -{{ if or $ancestor (not $collapsed) }} - {{ with .Section }} - - {{ end }} -{{ end }} - -{{ end }} - -{{ define "book-page-link" }} -{{ with .Page }} - - {{ partial "docs/title" . }} - -{{ end }} -{{ end }}