summaryrefslogtreecommitdiffhomepage
path: root/layouts/shortcodes/blocks
diff options
context:
space:
mode:
authorAdin Scannell <ascannell@google.com>2019-11-18 13:40:27 -0800
committerAdin Scannell <ascannell@google.com>2020-04-21 12:00:59 -0700
commit957e26a6f30d40e2bff042d76a327d0a2cfbabae (patch)
tree3e95d46355585ae4661de5cef30cdca72a7c94bb /layouts/shortcodes/blocks
parentdc2f198866c5fd8162a79978eb3633975d3ba11f (diff)
Move website to a simpler jekyll-based template
This will allow us to merge the site into the main repository. This merge allows the documentation to be kept up-to-date and synchronized with the main project. Builds will be triggered on any update, removing the need for the cron-based reploy.
Diffstat (limited to 'layouts/shortcodes/blocks')
-rw-r--r--layouts/shortcodes/blocks/cover.html56
-rw-r--r--layouts/shortcodes/blocks/feature.html10
-rw-r--r--layouts/shortcodes/blocks/lead.html11
-rw-r--r--layouts/shortcodes/blocks/section.html12
4 files changed, 0 insertions, 89 deletions
diff --git a/layouts/shortcodes/blocks/cover.html b/layouts/shortcodes/blocks/cover.html
deleted file mode 100644
index 367d93b69..000000000
--- a/layouts/shortcodes/blocks/cover.html
+++ /dev/null
@@ -1,56 +0,0 @@
-{{ $blockID := printf "td-cover-block-%d" .Ordinal }}
-{{ $promo_image := (.Page.Resources.ByType "image").GetMatch "**background*" }}
-{{ $logo_image := (.Page.Resources.ByType "image").GetMatch "**logo*" }}
-{{ $col_id := .Get "color" | default "dark" }}
-{{ $image_anchor := .Get "image_anchor" | default "smart" }}
-{{ $logo_anchor := .Get "logo_anchor" | default "smart" }}
-{{/* Height can be one of: auto, min, med, max, full. */}}
-{{ $height := .Get "height" | default "max" }}
-{{ 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)">
-<style>
-#{{ $blockID }} {
- background-image: url({{ $promo_image_small.RelPermalink }});
-}
-@media only screen and (min-width: 1200px) {
- #{{ $blockID }} {
- background-image: url({{ $promo_image_big.RelPermalink }});
- }
-}
-</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="row">
- <div class="cover-content col-12">
- <nav class="navbar navbar-expand navbar-dark flex-column flex-md-row">
- <div class="td-navbar-nav-scroll ml-md-auto" id="cover_navbar">
- <ul class="navbar-nav mt-2 mt-lg-0">
- {{ $p := . }}
- {{ range .Site.Menus.main }}
- <li class="nav-item mr-4 mb-2 mb-lg-0">
- <a class="nav-link" href="{{ with .Page }}{{ .RelPermalink }}{{ else }}{{ .URL | relLangURL }}{{ end }}"><span>{{ .Name }}</span></a>
- </li>
- {{ end }}
- {{ if (gt (len .Site.Home.Translations) 0) }}
- <li class="nav-item dropdown d-none d-lg-block">
- {{ partial "navbar-lang-selector.html" . }}
- </li>
- {{ end }}
- </ul>
- </div>
- <div class="navbar-nav d-none d-lg-block">{{ partial "search-input.html" . }}</div>
- </nav>
-
- {{ with .Get "title" }}<h1 class="display-1 mt-0 mt-md-5">{{ $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 "subtitle" }}<p class="display-2 text-uppercase mb-0">{{ . | html }}</p>{{ end }}
- <div class="pt-3 lead">
- {{ .Inner }}
- </div>
- </div>
- </div>
- </div>
-</section>
diff --git a/layouts/shortcodes/blocks/feature.html b/layouts/shortcodes/blocks/feature.html
deleted file mode 100644
index f0b4b37c8..000000000
--- a/layouts/shortcodes/blocks/feature.html
+++ /dev/null
@@ -1,10 +0,0 @@
-{{ $icon := .Get "icon" | default "fa-lightbulb" }}
-{{ $url_text := .Get "url_text" }}
-<div class="col-lg-4 mb-5 mb-lg-0 text-center ">
- <div class="mb-4 h1">
- <i class="{{ if not (or (hasPrefix $icon "fas ") (hasPrefix $icon "fab ")) }}fas {{ end }}{{ $icon }}"></i>
- </div>
- <h4 class="h3">{{ .Get "title" | markdownify }}</h4>
- <div class="mb-0">{{ .Inner }}</div>
- {{ with .Get "url" }}<p><a href="{{ . }}">{{ with $url_text }}{{ $url_text }}{{ else }}{{ T "ui_read_more" }}{{ end }} …</a></p>{{ end }}
-</div>
diff --git a/layouts/shortcodes/blocks/lead.html b/layouts/shortcodes/blocks/lead.html
deleted file mode 100644
index 7825eac70..000000000
--- a/layouts/shortcodes/blocks/lead.html
+++ /dev/null
@@ -1,11 +0,0 @@
-{{ $col_id := .Get "color" | default .Ordinal }}
-{{ $height := .Get "height" | default "auto" }}
-{{/* Height can be one of: auto, min, med, max, full. */}}
-<a id="td-block-{{ .Ordinal }}" class="td-offset-anchor"></a>
-<section class="row td-box td-box--{{ $col_id }} position-relative td-box--gradient td-box--height-{{ $height }}">
- <div class="container td-arrow-down">
- <span class="h4 mb-0">
- {{ .Inner }}
- </span>
- </div>
-</section>
diff --git a/layouts/shortcodes/blocks/section.html b/layouts/shortcodes/blocks/section.html
deleted file mode 100644
index de7e6c8f1..000000000
--- a/layouts/shortcodes/blocks/section.html
+++ /dev/null
@@ -1,12 +0,0 @@
-{{ $col_id := .Get "color" | default .Ordinal }}
-{{ $height := .Get "height" | default "auto" }}
-<a id="td-block-{{ .Ordinal }}" class="td-offset-anchor"></a>
-<section class="row td-box td-box--{{ $col_id }} td-box--gradient td-box--height-{{ $height }}">
- <div class="col">
- <div class="container">
- <div class="row">
- {{ .Inner }}
- </div>
- </div>
- </div>
-</section>