You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/06/14 18:29:32 UTC

[GitHub] [beam] bullet03 commented on a diff in pull request #21731: add guard expressions to fix-menu and page-nav

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


##########
website/www/site/layouts/partials/head_homepage.html:
##########
@@ -0,0 +1,83 @@
+{{/*
+ 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.
+*/}}
+
+<meta charset="utf-8">
+<meta http-equiv="X-UA-Compatible" content="IE=edge">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+
+<title>{{ if .Title }}{{ .Title }}{{ else }}{{ .Site.Title }}{{ end }}</title>
+<meta name="description" content="{{ .Description | default $.Site.Params.description }}">
+
+<link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700" rel="stylesheet">
+
+{{ $scssMain := "scss/main.scss"}}
+{{ if .Site.IsServer }}
+    {{ $css := resources.Get $scssMain | toCSS (dict "enableSourceMap" true) | postCSS }}
+    <link href="{{ $css.RelPermalink }}" rel="stylesheet">
+{{ else }}
+    {{ $css := resources.Get $scssMain | toCSS (dict "enableSourceMap" false) | postCSS | minify | fingerprint }}
+    <link rel="preload" href="{{ $css.RelPermalink }}" as="style">
+    <link href="{{ $css.RelPermalink }}" rel="stylesheet" integrity="{{ $css.Data.integrity }}">
+{{ end }}
+
+<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
+
+<style>
+  .body__contained img { max-width: 100% }
+</style>
+
+{{ $bootstrap := resources.Get "js/bootstrap.min.js" | fingerprint }}
+<script type="text/javascript" src="{{ $bootstrap.RelPermalink }}" defer></script>
+
+<!-- TODO [BEAM-12644]: Create an asset pipeline so we don't have to version .js files. -->
+{{ $switchV2 := resources.Get "js/language-switch-v2.js" | minify | fingerprint }}
+<script type="text/javascript" src="{{ $switchV2.RelPermalink }}" defer></script>
+
+{{ $sectionNav := resources.Get "js/section-nav.js" | minify | fingerprint }}
+<script type="text/javascript" src="{{ $sectionNav.RelPermalink }}" defer></script>
+
+{{ $expandableList := resources.Get "js/expandable-list.js" | minify | fingerprint }}
+<script type="text/javascript" src="{{ $expandableList.RelPermalink }}" defer></script>
+
+{{ $copyToClipboard := resources.Get "js/copy-to-clipboard.js" | minify | fingerprint }}
+<script type="text/javascript" src="{{ $copyToClipboard.RelPermalink }}" defer></script>
+
+{{ $calendar := resources.Get "js/calendar.js" | minify | fingerprint }}
+<script type="text/javascript" src="{{ $calendar.RelPermalink }}" defer></script>
+
+<link rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" href="/feed.xml">
+<link rel="canonical" href="{{ .Site.Params.hostName }}{{ .Permalink | absURL }}" data-proofer-ignore>
+<link rel="shortcut icon" type="image/x-icon" href="/images/favicon.ico">
+<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.1/css/all.css" integrity="sha384-5sAR7xN1Nv6T6+dT2mhtzEpVJvfS3NScPQTrOxhwjIuvcA67KV2R5Jz6kr4abQsz" crossorigin="anonymous">

Review Comment:
   done



-- 
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: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org