Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
JianzheXiao committed Aug 25, 2023
1 parent 0397261 commit 2bf7fce
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# full override: we're not tracking changes to the docsy base file.

baseURL = "https://bytedance.github.io/bytemlperf"
baseURL = "https://bytedance.github.io/ByteMLPerf"
relativeURLS = true
canonifyurls = true
title = "ByteMLPerf"
Expand Down
Binary file added content/zh/about/featured-background.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/zh/featured-background.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions layouts/shortcodes/blocks/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@
{{ with $promo_image }}
{{ $promo_image_big := (.Fill (printf "1920x1080 %s" $image_anchor)) }}
{{ $promo_image_small := (.Fill (printf "960x540 %s" $image_anchor)) }}
<link rel="preload" as="image" href="{{ $promo_image_small.RelPermalink }}" media="(max-width: 1200px)">
<link rel="preload" as="image" href="{{ $promo_image_big.RelPermalink }}" media="(min-width: 1200px)">
<link rel="preload" as="image" href="{{ $promo_image_small.Permalink }}" media="(max-width: 1200px)">
<link rel="preload" as="image" href="{{ $promo_image_big.Permalink }}" media="(min-width: 1200px)">
<style>
#{{ $blockID }} {
background-image: url({{ $promo_image_small.RelPermalink }});
background-image: url({{ $promo_image_small.Permalink }});
}
@media only screen and (min-width: 1200px) {
#{{ $blockID }} {
background-image: url({{ $promo_image_big.RelPermalink }});
background-image: url({{ $promo_image_big.Permalink }});
}
}
</style>
{{ end }}
<section id="{{ $blockID }}" class="row td-cover-block td-cover-block--height-{{ $height }} js-td-cover td-overlay td-overlay--dark -bg-{{ $col_id }}">
<div class="container td-overlay__inner">
<div class="text-center">
{{ with .Get "title" }}<h1 class="display-1 home-overview-title mt-0 mt-md-5 pb-4">{{ $title := . }}{{ with $logo_image }}{{ $logo_image_resized := (.Fit (printf "70x70 %s" $logo_anchor)) }}<img class="td-cover-logo" src="{{ $logo_image_resized.RelPermalink }}" alt="{{ $title | html }} Logo">{{ end }}{{ $title | html }}</h1>{{ end }}
{{ with .Get "title" }}<h1 class="display-1 home-overview-title mt-0 mt-md-5 pb-4">{{ $title := . }}{{ with $logo_image }}{{ $logo_image_resized := (.Fit (printf "70x70 %s" $logo_anchor)) }}<img class="td-cover-logo" src="{{ $logo_image_resized.Permalink }}" alt="{{ $title | html }} Logo">{{ end }}{{ $title | html }}</h1>{{ end }}
<div class="pt-3 lead">
<div class="home-overview">
{{ with .Get "subtitle" }}<p class="home-overview-subtitle">{{ . | html }}</p>{{ end }}
Expand Down
10 changes: 5 additions & 5 deletions layouts/shortcodes/blocks/cover-overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@
{{ with $promo_image }}
{{ $promo_image_big := (.Fill (printf "1920x1080 %s" $image_anchor)) }}
{{ $promo_image_small := (.Fill (printf "960x540 %s" $image_anchor)) }}
<link rel="preload" as="image" href="{{ $promo_image_small.RelPermalink }}" media="(max-width: 1200px)">
<link rel="preload" as="image" href="{{ $promo_image_big.RelPermalink }}" media="(min-width: 1200px)">
<link rel="preload" as="image" href="{{ $promo_image_small.Permalink }}" media="(max-width: 1200px)">
<link rel="preload" as="image" href="{{ $promo_image_big.Permalink }}" media="(min-width: 1200px)">
<style>
#{{ $blockID }} {
background-image: url({{ $promo_image_small.RelPermalink }});
background-image: url({{ $promo_image_small.Permalink }});
}
@media only screen and (min-width: 1200px) {
#{{ $blockID }} {
background-image: url({{ $promo_image_big.RelPermalink }});
background-image: url({{ $promo_image_big.Permalink }});
}
}
</style>
{{ end }}
<section id="{{ $blockID }}" class="row td-cover-block td-cover-block--height-{{ $height }} js-td-cover td-overlay td-overlay--dark -bg-{{ $col_id }}">
<div class="container td-overlay__inner">
<div class="text-center">
<h1 class="display-1 home-overview-title mt-0 mt-md-5 pb-4">{{ i18n "welcome" }} {{ $title := .Site.Params.project_name }}{{ with $logo_image }}{{ $logo_image_resized := (.Fit (printf "70x70 %s" $logo_anchor)) }}<img class="td-cover-logo" src="{{ $logo_image_resized.RelPermalink }}" alt="{{ $title | html }} Logo">{{ end }}{{ $title | html }}</h1>
<h1 class="display-1 home-overview-title mt-0 mt-md-5 pb-4">{{ i18n "welcome" }} {{ $title := .Site.Params.project_name }}{{ with $logo_image }}{{ $logo_image_resized := (.Fit (printf "70x70 %s" $logo_anchor)) }}<img class="td-cover-logo" src="{{ $logo_image_resized.Permalink }}" alt="{{ $title | html }} Logo">{{ end }}{{ $title | html }}</h1>
<div class="pt-3 lead">
<div class="home-overview">
<p class="home-overview-subtitle">
Expand Down
Binary file added static/img/featured-background.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2bf7fce

Please sign in to comment.