demo: doc media library defaults to static/media/

This commit is contained in:
George Cushen 2020-07-29 19:01:26 +01:00
commit 2b1ec2d000
17 changed files with 21 additions and 21 deletions

View file

@ -27,7 +27,7 @@ subtitle = ""
# gradient_end = "SkyBlue"
# Background image.
# image = "image.jpg" # Name of image in `static/img/`.
# image = "image.jpg" # Name of image in `static/media/`.
# image_darken = 0.6 # Darken the image? Range 0-1 where 0 is transparent and 1 is opaque.
# Text color (true=light or false=dark).

View file

@ -123,7 +123,7 @@ contact_links = [
## Social
############################
# Default image for social sharing and search engines. Place image in `static/img/` folder and specify image name here.
# Default image for social sharing and search engines. Place image in `static/media/` folder and specify image name here.
sharing_image = ""
# Twitter username (without @). Used when a visitor shares your site on Twitter.

View file

@ -2,7 +2,7 @@
title: Courses
layout: docs # Do not modify.
# Optional header image (relative to `static/img/` folder).
# Optional header image (relative to `static/media/` folder).
header:
caption: ""
image: ""

View file

@ -29,7 +29,7 @@ subtitle = ""
# gradient_end = "SkyBlue"
# Background image.
image = "headers/bubbles-wide.jpg" # Name of image in `static/img/`.
image = "headers/bubbles-wide.jpg" # Name of image in `static/media/`.
image_darken = 0.6 # Darken the image? Range 0-1 where 0 is transparent and 1 is opaque.
image_size = "cover" # Options are `cover` (default), `contain`, or `actual` size.
image_position = "center" # Options include `left`, `center` (default), or `right`.

View file

@ -53,7 +53,7 @@ subtitle = ""
# gradient_end = "SkyBlue"
# Background image.
# image = "background.jpg" # Name of image in `static/img/`.
# image = "background.jpg" # Name of image in `static/media/`.
# image_darken = 0.6 # Darken the image? Range 0-1 where 0 is transparent and 1 is opaque.
# Text color (true=light or false=dark).

View file

@ -7,7 +7,7 @@ weight = 10 # Order that this section will appear.
title = "Academic"
# Hero image (optional). Enter filename of an image in the `static/img/` folder.
# Hero image (optional). Enter filename of an image in the `static/media/` folder.
hero_media = "hero-academic.png"
[design.background]
@ -24,7 +24,7 @@ hero_media = "hero-academic.png"
gradient_end = "#2b94c3"
# Background image.
# image = "" # Name of image in `static/img/`.
# image = "" # Name of image in `static/media/`.
# image_darken = 0.6 # Darken the image? Range 0-1 where 0 is transparent and 1 is opaque.
# image_size = "cover" # Options are `cover` (default), `contain`, or `actual` size.
# image_position = "center" # Options include `left`, `center` (default), or `right`.

View file

@ -41,7 +41,7 @@ subtitle = ""
# gradient_end = "SkyBlue"
# Background image.
# image = "background.jpg" # Name of image in `static/img/`.
# image = "background.jpg" # Name of image in `static/media/`.
# image_darken = 0.6 # Darken the image? Range 0-1 where 0 is transparent and 1 is opaque.
# Text color (true=light or false=dark).

View file

@ -53,7 +53,7 @@ subtitle = ""
# gradient_end = "SkyBlue"
# Background image.
# image = "background.jpg" # Name of image in `static/img/`.
# image = "background.jpg" # Name of image in `static/media/`.
# image_darken = 0.6 # Darken the image? Range 0-1 where 0 is transparent and 1 is opaque.
# Text color (true=light or false=dark).

View file

@ -61,7 +61,7 @@ subtitle = ""
# gradient_end = "SkyBlue"
# Background image.
# image = "background.jpg" # Name of image in `static/img/`.
# image = "background.jpg" # Name of image in `static/media/`.
# image_darken = 0.6 # Darken the image? Range 0-1 where 0 is transparent and 1 is opaque.
# Text color (true=light or false=dark).

View file

@ -53,7 +53,7 @@ subtitle = ""
# gradient_end = "SkyBlue"
# Background image.
# image = "background.jpg" # Name of image in `static/img/`.
# image = "background.jpg" # Name of image in `static/media/`.
# image_darken = 0.6 # Darken the image? Range 0-1 where 0 is transparent and 1 is opaque.
# Text color (true=light or false=dark).

View file

@ -23,7 +23,7 @@ height = ""
# Overlay a color or image (optional).
# Deactivate an option by commenting out the line, prefixing it with `#`.
overlay_color = "#666" # An HTML color value.
overlay_img = "headers/bubbles-wide.jpg" # Image path relative to your `static/img/` folder.
overlay_img = "headers/bubbles-wide.jpg" # Image path relative to your `static/media/` folder.
overlay_filter = 0.5 # Darken the image. Value in range 0-1.
# Call to action button (optional).
@ -40,7 +40,7 @@ height = ""
align = "left"
overlay_color = "#555" # An HTML color value.
overlay_img = "" # Image path relative to your `static/img/` folder.
overlay_img = "" # Image path relative to your `static/media/` folder.
overlay_filter = 0.5 # Darken the image. Value in range 0-1.
[[item]]
@ -49,6 +49,6 @@ height = ""
align = "right"
overlay_color = "#333" # An HTML color value.
overlay_img = "" # Image path relative to your `static/img/` folder.
overlay_img = "" # Image path relative to your `static/media/` folder.
overlay_filter = 0.5 # Darken the image. Value in range 0-1.
+++

View file

@ -55,7 +55,7 @@ subtitle = ""
# gradient_end = "SkyBlue"
# Background image.
# image = "background.jpg" # Name of image in `static/img/`.
# image = "background.jpg" # Name of image in `static/media/`.
# image_darken = 0.6 # Darken the image? Range 0-1 where 0 is transparent and 1 is opaque.
# Text color (true=light or false=dark).

View file

@ -7,7 +7,7 @@ title: Posts
# 3 = Card
view: 2
# Optional header image (relative to `static/img/` folder).
# Optional header image (relative to `static/media/` folder).
header:
caption: ""
image: ""

View file

@ -8,7 +8,7 @@ title: Publications
# 4 = Citation
view: 4
# Optional header image (relative to `static/img/` folder).
# Optional header image (relative to `static/media/` folder).
header:
caption: ""
image: ""

View file

@ -129,14 +129,14 @@ Press the `S` key to view the speaker notes!
---
{{< slide background-image="/img/boards.jpg" >}}
{{< slide background-image="/media/boards.jpg" >}}
## Custom Slide
Customize the slide style and background
```markdown
{{</* slide background-image="/img/boards.jpg" */>}}
{{</* slide background-image="/media/boards.jpg" */>}}
{{</* slide background-color="#0000FF" */>}}
{{</* slide class="my-style" */>}}
```

View file

@ -7,7 +7,7 @@ title: Recent & Upcoming Talks
# 3 = Card
view: 2
# Optional header image (relative to `static/img/` folder).
# Optional header image (relative to `static/media/` folder).
header:
caption: ""
image: ""

View file

@ -2,7 +2,7 @@
<html lang="{{ site.LanguageCode | default "en-us" }}">
<head>
{{ $media_dir := site.Params.media_dir | default "media" }}
{{ $scr.Set "media_dir" $media_dir }}
{{ .Scratch.Set "media_dir" $media_dir }}
{{ $css := site.Data.assets.css }}
{{ $cdn_url_reveal := "https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.8.0" }}