demo: doc media library defaults to static/media/

This commit is contained in:
George Cushen committed 2020-07-29 19:01:26 +01:00
1 parent d9ff93a1c2
commit 2b1ec2d000
17 files changed
+21 -21

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ subtitle = ""
# gradient_end = "SkyBlue" # gradient_end = "SkyBlue"
# Background image. # 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. # 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). # Text color (true=light or false=dark).
+1 -1
View File
@@ -123,7 +123,7 @@ contact_links = [
## Social ## 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 = "" sharing_image = ""
# Twitter username (without @). Used when a visitor shares your site on Twitter. # Twitter username (without @). Used when a visitor shares your site on Twitter.
+1 -1
View File
@@ -2,7 +2,7 @@
title: Courses title: Courses
layout: docs # Do not modify. layout: docs # Do not modify.
# Optional header image (relative to `static/img/` folder). # Optional header image (relative to `static/media/` folder).
header: header:
caption: "" caption: ""
image: "" image: ""
+1 -1
View File
@@ -29,7 +29,7 @@ subtitle = ""
# gradient_end = "SkyBlue" # gradient_end = "SkyBlue"
# Background image. # 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_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_size = "cover" # Options are `cover` (default), `contain`, or `actual` size.
image_position = "center" # Options include `left`, `center` (default), or `right`. image_position = "center" # Options include `left`, `center` (default), or `right`.
+1 -1
View File
@@ -53,7 +53,7 @@ subtitle = ""
# gradient_end = "SkyBlue" # gradient_end = "SkyBlue"
# Background image. # 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. # 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). # Text color (true=light or false=dark).
+2 -2
View File
@@ -7,7 +7,7 @@ weight = 10 # Order that this section will appear.
title = "Academic" 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" hero_media = "hero-academic.png"
[design.background] [design.background]
@@ -24,7 +24,7 @@ hero_media = "hero-academic.png"
gradient_end = "#2b94c3" gradient_end = "#2b94c3"
# Background image. # 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_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_size = "cover" # Options are `cover` (default), `contain`, or `actual` size.
# image_position = "center" # Options include `left`, `center` (default), or `right`. # image_position = "center" # Options include `left`, `center` (default), or `right`.
+1 -1
View File
@@ -41,7 +41,7 @@ subtitle = ""
# gradient_end = "SkyBlue" # gradient_end = "SkyBlue"
# Background image. # 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. # 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). # Text color (true=light or false=dark).
+1 -1
View File
@@ -53,7 +53,7 @@ subtitle = ""
# gradient_end = "SkyBlue" # gradient_end = "SkyBlue"
# Background image. # 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. # 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). # Text color (true=light or false=dark).
+1 -1
View File
@@ -61,7 +61,7 @@ subtitle = ""
# gradient_end = "SkyBlue" # gradient_end = "SkyBlue"
# Background image. # 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. # 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). # Text color (true=light or false=dark).
+1 -1
View File
@@ -53,7 +53,7 @@ subtitle = ""
# gradient_end = "SkyBlue" # gradient_end = "SkyBlue"
# Background image. # 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. # 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). # Text color (true=light or false=dark).
+3 -3
View File
@@ -23,7 +23,7 @@ height = ""
# Overlay a color or image (optional). # Overlay a color or image (optional).
# Deactivate an option by commenting out the line, prefixing it with `#`. # Deactivate an option by commenting out the line, prefixing it with `#`.
overlay_color = "#666" # An HTML color value. 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. overlay_filter = 0.5 # Darken the image. Value in range 0-1.
# Call to action button (optional). # Call to action button (optional).
@@ -40,7 +40,7 @@ height = ""
align = "left" align = "left"
overlay_color = "#555" # An HTML color value. 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. overlay_filter = 0.5 # Darken the image. Value in range 0-1.
[[item]] [[item]]
@@ -49,6 +49,6 @@ height = ""
align = "right" align = "right"
overlay_color = "#333" # An HTML color value. 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. overlay_filter = 0.5 # Darken the image. Value in range 0-1.
+++ +++
+1 -1
View File
@@ -55,7 +55,7 @@ subtitle = ""
# gradient_end = "SkyBlue" # gradient_end = "SkyBlue"
# Background image. # 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. # 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). # Text color (true=light or false=dark).
+1 -1
View File
@@ -7,7 +7,7 @@ title: Posts
# 3 = Card # 3 = Card
view: 2 view: 2
# Optional header image (relative to `static/img/` folder). # Optional header image (relative to `static/media/` folder).
header: header:
caption: "" caption: ""
image: "" image: ""
+1 -1
View File
@@ -8,7 +8,7 @@ title: Publications
# 4 = Citation # 4 = Citation
view: 4 view: 4
# Optional header image (relative to `static/img/` folder). # Optional header image (relative to `static/media/` folder).
header: header:
caption: "" caption: ""
image: "" image: ""
+2 -2
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 ## Custom Slide
Customize the slide style and background Customize the slide style and background
```markdown ```markdown
{{</* slide background-image="/img/boards.jpg" */>}} {{</* slide background-image="/media/boards.jpg" */>}}
{{</* slide background-color="#0000FF" */>}} {{</* slide background-color="#0000FF" */>}}
{{</* slide class="my-style" */>}} {{</* slide class="my-style" */>}}
``` ```
+1 -1
View File
@@ -7,7 +7,7 @@ title: Recent & Upcoming Talks
# 3 = Card # 3 = Card
view: 2 view: 2
# Optional header image (relative to `static/img/` folder). # Optional header image (relative to `static/media/` folder).
header: header:
caption: "" caption: ""
image: "" image: ""
+1 -1
View File
@@ -2,7 +2,7 @@
<html lang="{{ site.LanguageCode | default "en-us" }}"> <html lang="{{ site.LanguageCode | default "en-us" }}">
<head> <head>
{{ $media_dir := site.Params.media_dir | default "media" }} {{ $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 }} {{ $css := site.Data.assets.css }}
{{ $cdn_url_reveal := "https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.8.0" }} {{ $cdn_url_reveal := "https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.8.0" }}