git: 34aaac36f5 - main - Fix single page problem in FAQ, dev-model and design-44bsd

Sergio Carlavilla Delgado <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
The branch main has been updated by carlavilla:

URL: https://cgit.FreeBSD.org/doc/commit/?id=34aaac36f56c4b56a168d9f392f5bc2a25998a63

commit 34aaac36f56c4b56a168d9f392f5bc2a25998a63
Author:     Ciarán Ainsworth <[email protected]>
AuthorDate: 2023-01-28 08:53:27 +0000
Commit:     Sergio Carlavilla Delgado <[email protected]>
CommitDate: 2023-01-28 08:53:27 +0000

    Fix single page problem in FAQ, dev-model and design-44bsd
    
    PR:             265276
    Reported by:    grahamperrin@
---
 documentation/content/en/books/design-44bsd/_index.adoc | 1 +
 documentation/content/en/books/dev-model/_index.adoc    | 1 +
 documentation/content/en/books/faq/_index.adoc          | 1 +
 documentation/themes/beastie/layouts/books/single.html  | 4 ----
 4 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/documentation/content/en/books/design-44bsd/_index.adoc b/documentation/content/en/books/design-44bsd/_index.adoc
index 289efebf32..c149640619 100644
--- a/documentation/content/en/books/design-44bsd/_index.adoc
+++ b/documentation/content/en/books/design-44bsd/_index.adoc
@@ -10,6 +10,7 @@ description: Donated by Addison-Wesley, provides a design overview of 4.4BSD, fr
 trademarks: ["design-44bsd"] 
 bookOrder: 60
 tags: ["4.4BSD", "design", "operating system", "BSD", "UNIX"]
+layout: single
 ---
 
 = The Design and Implementation of the 4.4BSD Operating System
diff --git a/documentation/content/en/books/dev-model/_index.adoc b/documentation/content/en/books/dev-model/_index.adoc
index 8e0a1b8226..3e3371ca07 100644
--- a/documentation/content/en/books/dev-model/_index.adoc
+++ b/documentation/content/en/books/dev-model/_index.adoc
@@ -7,6 +7,7 @@ description: A formal study of the organization of the FreeBSD project
 trademarks: ["freebsd", "ibm", "ieee", "adobe", "intel", "linux", "microsoft", "opengroup", "sun", "netbsd", "general"]
 bookOrder: 45
 tags: ["model", "project model", "FreeBSD"]
+layout: single
 ---
 
 ////
diff --git a/documentation/content/en/books/faq/_index.adoc b/documentation/content/en/books/faq/_index.adoc
index 80e9ee53b7..bc9a3c7524 100644
--- a/documentation/content/en/books/faq/_index.adoc
+++ b/documentation/content/en/books/faq/_index.adoc
@@ -7,6 +7,7 @@ description: Frequently Asked Questions, and answers, covering all aspects of Fr
 trademarks: ["freebsd", "ibm", "ieee", "adobe", "intel", "linux", "microsoft", "opengroup", "sun", "netbsd", "general"] 
 bookOrder: 5
 tags: ["FAQ", "FreeBSD FAQ"]
+layout: single
 ---
 
 = Frequently Asked Questions for FreeBSD {rel2-relx} and {rel-relx}
diff --git a/documentation/themes/beastie/layouts/books/single.html b/documentation/themes/beastie/layouts/books/single.html
index ea5653a6ed..70793376f1 100644
--- a/documentation/themes/beastie/layouts/books/single.html
+++ b/documentation/themes/beastie/layouts/books/single.html
@@ -121,10 +121,6 @@
         <h3>{{ i18n "resources" }}</h3>
         <ul class="contents">
           {{ $pathSections := split .Page.File "/" }}
-          {{ if $.Site.Params.isOnline }}
-            {{ $singlePagePath := printf "%s/%s/book/" (index $pathSections 0) (index $pathSections 1) }}
-            <li><i class="fa fa fa-book" aria-hidden="true" title="{{ i18n "single-html" }}"></i><a href={{ $singlePagePath | absLangURL }}>{{ i18n "single-html" }}</a></li>
-          {{ end }}
           {{ $path := printf "%s/%s/%s_%s.pdf" (index $pathSections 0) (index $pathSections 1) (index $pathSections 1) $.Site.Home.Language }}
           {{ $pdfUrl := printf "%s%s/%s" $.Site.Params.downloadBaseUrl $.Site.Home.Language $path }}
           <li><i class="fa fa-file-pdf-o" aria-hidden="true" title="{{ i18n "download-pdf" }}"></i><a href="{{ $pdfUrl }}">{{ i18n "download-pdf" }}</a></li>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.