bullet03 commented on code in PR #21959:
URL: https://github.com/apache/beam/pull/21959#discussion_r920911014


##########
website/www/site/layouts/get-started/playground_template.html:
##########
@@ -0,0 +1,42 @@
+{{/*
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+   http://www.apache.org/licenses/LICENSE-2.0
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License. See accompanying LICENSE file.
+*/}}
+
+<!DOCTYPE html>
+<html lang="{{ .Site.Language.Lang }}" class="no-js">
+<head>
+  {{ partial "head.html" . }}
+</head>
+<body class="body" data-spy="scroll" data-target=".page-nav" data-offset="0">
+  {{ partial "header.html" . }}
+  <div class="clearfix container-main-content">
+    <div class="section-nav closed" data-offset-top="90" 
data-offset-bottom="500">
+      <span class="section-nav-back glyphicon glyphicon-menu-left"></span>
+      <nav>
+        <ul class="section-nav-list" data-section-nav>
+          {{ partial (printf "section-menu/%s/get-started.html" .Lang) . }}
+        </ul>
+      </nav>
+    </div>
+
+    <nav class="page-nav clearfix" data-offset-top="90" 
data-offset-bottom="500">
+      {{ .TableOfContents }}
+    </nav>
+
+    <div class="body__contained body__section-nav">
+      {{ .Content }}
+      {{ partial "feedback.html" . }}
+    </div>
+  </div>
+{{ partial "footer.html" . }}
+{{ partial "hooks/body-end-playground.html"}}

Review Comment:
   Thank you, used approach #1. 
   Made a partial from this code, so it could be reusable in future, since 
playground will be used on many pages.
   ```
   {{ if .HasShortcode "playground_iframe" }}
     {{ $fixPlaygroundNestedScroll := resources.Get 
"js/fix-playground-nested-scroll.js" | minify | fingerprint }}
     <script type="text/javascript" src="{{ 
$fixPlaygroundNestedScroll.RelPermalink }}" defer></script>
   {{ end }}
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to