You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2020/10/23 13:58:05 UTC

[lucenenet] 01/08: website: Converted to use master page instead of header template for Fork me on GitHub

This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit 4bdae18f82f377e06c214d08cdda363ba6bea112
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Fri Oct 23 20:24:27 2020 +0700

    website: Converted to use master page instead of header template for Fork me on GitHub
---
 websites/site/lucenetemplate/layout/_master.tmpl   | 56 ++++++++++++++++++++++
 .../lucenetemplate/partials/navbar.tmpl.partial    |  1 -
 2 files changed, 56 insertions(+), 1 deletion(-)

diff --git a/websites/site/lucenetemplate/layout/_master.tmpl b/websites/site/lucenetemplate/layout/_master.tmpl
new file mode 100644
index 0000000..b244170
--- /dev/null
+++ b/websites/site/lucenetemplate/layout/_master.tmpl
@@ -0,0 +1,56 @@
+{{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
+{{!include(/^styles/.*/)}}
+{{!include(/^fonts/.*/)}}
+{{!include(favicon.ico)}}
+{{!include(logo.svg)}}
+{{!include(search-stopwords.json)}}
+<!DOCTYPE html>
+<!--[if IE]><![endif]-->
+<html>
+  {{>partials/head}}
+  <body data-spy="scroll" data-target="#affix" data-offset="120">
+    <span id="forkongithub"><a href="https://github.com/apache/lucenenet">Fork me on GitHub</a></span>
+    <div id="wrapper">
+      <header>
+        {{^_disableNavbar}}
+        {{>partials/navbar}}
+        {{/_disableNavbar}}
+        {{^_disableBreadcrumb}}
+        {{>partials/breadcrumb}}
+        {{/_disableBreadcrumb}}
+      </header>
+      {{#_enableSearch}}
+      <div class="container body-content">
+        {{>partials/searchResults}}
+      </div>
+      {{/_enableSearch}}
+      <div role="main" class="container body-content hide-when-search">
+      {{^_disableToc}}
+        {{>partials/toc}}
+        <div class="article row grid-right">
+      {{/_disableToc}}
+      {{#_disableToc}}
+        <div class="article row grid">
+        {{/_disableToc}}
+          {{#_disableAffix}}
+          <div class="col-md-12">
+          {{/_disableAffix}}
+          {{^_disableAffix}}
+          <div class="col-md-10">
+          {{/_disableAffix}}
+            <article class="content wrap" id="_content" data-uid="{{uid}}">
+                {{!body}}
+            </article>
+          </div>
+          {{^_disableAffix}}
+          {{>partials/affix}}
+          {{/_disableAffix}}
+        </div>
+      </div>
+      {{^_disableFooter}}
+      {{>partials/footer}}
+      {{/_disableFooter}}
+    </div>
+    {{>partials/scripts}}
+  </body>
+</html>
diff --git a/websites/site/lucenetemplate/partials/navbar.tmpl.partial b/websites/site/lucenetemplate/partials/navbar.tmpl.partial
index 3f4168b..ab8f519 100644
--- a/websites/site/lucenetemplate/partials/navbar.tmpl.partial
+++ b/websites/site/lucenetemplate/partials/navbar.tmpl.partial
@@ -1,6 +1,5 @@
 {{!Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}}
 
-<span id="forkongithub"><a href="https://github.com/apache/lucenenet">Fork me on GitHub</a></span>
 <nav id="autocollapse" class="navbar ng-scope" role="navigation">
   <div class="container">
     <div class="navbar-header">