summaryrefslogtreecommitdiff
path: root/themes/beautifulhugo/exampleSite/content/post/2017-03-07-bigimg-sample.md
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2019-08-03 22:26:50 +0200
committerChristoph Cullmann <cullmann@kde.org>2019-08-03 22:26:50 +0200
commitec1341fcd178d72e1accd308d1ae314702e69c01 (patch)
tree927c5113475a982af7a4809af78a8f4b4990be62 /themes/beautifulhugo/exampleSite/content/post/2017-03-07-bigimg-sample.md
parent05bc58562c52539f196ae4357afd80a23d34e812 (diff)
use new theme
Diffstat (limited to 'themes/beautifulhugo/exampleSite/content/post/2017-03-07-bigimg-sample.md')
-rw-r--r--themes/beautifulhugo/exampleSite/content/post/2017-03-07-bigimg-sample.md40
1 files changed, 40 insertions, 0 deletions
diff --git a/themes/beautifulhugo/exampleSite/content/post/2017-03-07-bigimg-sample.md b/themes/beautifulhugo/exampleSite/content/post/2017-03-07-bigimg-sample.md
new file mode 100644
index 0000000..754d999
--- /dev/null
+++ b/themes/beautifulhugo/exampleSite/content/post/2017-03-07-bigimg-sample.md
@@ -0,0 +1,40 @@
+---
+title: Big Image Sample
+subtitle: Using Multiple Images
+date: 2017-03-07
+tags: ["example", "bigimg"]
+bigimg: [{src: "/img/triangle.jpg", desc: "Triangle"}, {src: "/img/sphere.jpg", desc: "Sphere"}, {src: "/img/hexagon.jpg", desc: "Hexagon"}]
+---
+
+The image banners at the top of the page are refered to as "bigimg" in this theme. They are optional, and one more more can be specified. If more than one is specified, the images rotate every 10 seconds. In the front matter, bigimgs are specified using an array of hashes.
+
+<!--more-->
+
+A single bigimg can be specified in the front matter by the following YAML:
+```
+bigimg: [{src: "/img/triangle.jpg", desc: "Triangle"}]
+```
+
+Multiple bigimgs can be specified in the front matter by the following YAML:
+```
+bigimg: [{src: "/img/triangle.jpg", desc: "Triangle"},
+ {src: "/img/sphere.jpg", desc: "Sphere"},
+ {src: "/img/hexagon.jpg", desc: "Hexagon"}]
+```
+
+Also note that the description field is optional, and images could instead be specified by:
+```
+bigimg: [{src: "/img/triangle.jpg"},
+ {src: "/img/sphere.jpg"},
+ {src: "/img/hexagon.jpg"}]
+```
+
+The above YAML array of hashes were written in "flow" style. However when generating a new page or post with `hugo new post/mypost.md`, hugo may interpret the archetype for bigimg in the default YAML style. Defining multiple bigimg's complete with descriptions in this style would be specified by:
+```
+bigimg:
+- {src: "/img/triangle.jpg", desc: "Triangle"}
+- {src: "/img/sphere.jpg", desc: "Sphere"}
+- {src: "/img/hexagon.jpg", desc: "Hexagon"}
+```
+
+Additional information can be found [in this YAML tutorial](https://rhnh.net/2011/01/31/yaml-tutorial/). \ No newline at end of file