diff --git a/CHANGELOG.md b/CHANGELOG.md index 58926c31..e7d11cc3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,25 +1,45 @@ +# v0.10.0 +_2018-03-09_ - [Downloads for v0.10.0](https://github.com/okkur/syna/releases/tag/v0.10.0) - - [Changelog since v0.9.0](#changelog-since-v090) + - [Changelog since v0.9.0](#changes-since-v090) ## Documentation [Examples](/tree/v0.10.0/exampleSite) +Notes: This version is a breaking change. + ## Changes since v0.9.0 - - + - Migrate data files to Page Bundles + - Organize Content structure ## Fixes since v0.9.0 - - + - Split up member files into individual files (#13) + - Move from `

` to `

` for anything that could contain markdown content (#31) --- ---> # v0.9.0 _2017-12-08_ - [Downloads for v0.9.0](https://github.com/okkur/syna/releases/tag/v0.9.0) - - [Changelog since v0.8.0](#changelog-since-v080) + - [Changelog since v0.8.0](#changes-since-v080) ## Documentation [Examples](/tree/v0.9.0/exampleSite) @@ -41,7 +61,7 @@ Notes: Member and Footer fragments only support brand icons for now. # v0.8.0 _2017-10-23_ - [Downloads for v0.8.0](https://github.com/okkur/syna/releases/tag/v0.8.0) - - [Changelog since v0.7.0](#changelog-since-v070) + - [Changelog since v0.7.0](#changes-since-v070) ## Documentation [Examples](/tree/v0.8.0/exampleSite) @@ -63,7 +83,7 @@ _2017-10-23_ # v0.7.0 _2017-10-18_ - [Downloads for v0.7.0](https://github.com/okkur/syna/releases/tag/v0.7.0) - - [Changelog since v0.6.0](#changelog-since-v060) + - [Changelog since v0.6.0](#changes-since-v060) ## Documentation [Examples](/tree/v0.7.0/exampleSite) @@ -118,7 +138,7 @@ _2017-10-08_ - Reorganize fragments - Cleanup data files - Item fragment with cal to action - + ## Fixes since v0.4.0 - Fragment include conditionals diff --git a/exampleSite/content/about-split.md b/exampleSite/content/about-split/index.md similarity index 100% rename from exampleSite/content/about-split.md rename to exampleSite/content/about-split/index.md diff --git a/exampleSite/content/about/footer.md b/exampleSite/content/about/footer.md new file mode 100644 index 00000000..0489636d --- /dev/null +++ b/exampleSite/content/about/footer.md @@ -0,0 +1,18 @@ ++++ +fragment = "footer" +#disabled = true +date = "2016-09-07" +lastmod = "2017-09-07" +#background = "" + +linkTitle = "Link Title" +logoTitle = "Logo Title" +logo = "logo.svg" +logoText = "Logo Subtext" ++++ + +#### Description Title + +Project description such as: +Open source theme for your next project +Provided by Okkur Labs \ No newline at end of file diff --git a/exampleSite/content/about/hero.md b/exampleSite/content/about/hero.md new file mode 100644 index 00000000..6417812a --- /dev/null +++ b/exampleSite/content/about/hero.md @@ -0,0 +1,31 @@ ++++ +fragment = "hero" +#disabled = true +date = "2016-09-07" +lastmod = "2017-09-07" +weight = 50 +background = "secondary" # can influence the text color +particles = true + +title = "Syna Theme" +subtitle = "Showcase your next project" +header = "header.jpg" +logo = "logo.svg" +logoWidth = "500px" # optional - will default to image width +#logoHeight = "150px" # optional - will default to image height + +[[buttons]] + text = "Button" + link = "#" + color = "info" # primary, secondary, success, danger, warning, info, light, dark, link - default: primary + +[[buttons]] + text = "Download" + link = "https://github.com/okkur/syna/releases" + color = "primary" + +[[buttons]] + text = "Button" + link = "#" + color = "success" ++++ \ No newline at end of file diff --git a/exampleSite/content/about.md b/exampleSite/content/about/index.md similarity index 99% rename from exampleSite/content/about.md rename to exampleSite/content/about/index.md index da78d6b8..a076b0d0 100644 --- a/exampleSite/content/about.md +++ b/exampleSite/content/about/index.md @@ -25,4 +25,4 @@ Curabitur ipsum ipsum, malesuada at tempus sed, pretium vulputate nunc. Praesent Suspendisse molestie, tellus quis finibus facilisis, nulla neque euismod mi, at aliquet lectus arcu ac neque. Proin lacus augue, porttitor in odio vitae, sollicitudin laoreet mi. Donec posuere hendrerit augue hendrerit ornare. Duis vestibulum, nisl sit amet cursus lobortis, felis sapien consequat augue, et accumsan eros ligula id nisl. Praesent iaculis fringilla molestie. Sed consequat nec mi vel venenatis. Nunc felis dui, bibendum ac laoreet pretium, cursus ut orci. Nullam risus nulla, tempus ut bibendum quis, consectetur in risus. -Etiam eget metus elit. Praesent turpis mi, malesuada nec libero a, cursus varius leo. In malesuada gravida est, nec maximus turpis posuere eu. Proin rutrum mattis lectus. Ut mi elit, tincidunt ut aliquet consequat, facilisis vitae arcu. Proin ut massa auctor, imperdiet sem ac, varius justo. Integer porta tellus quis eros sollicitudin mollis. Donec nulla sem, porttitor et velit vitae, tincidunt congue erat. Vivamus urna libero, viverra non pharetra eu, bibendum id arcu. In fermentum bibendum purus, vitae pharetra ipsum gravida quis. Nunc vitae congue diam. Maecenas pharetra orci vel magna fermentum, vitae auctor sapien consectetur. Nunc tempor erat vel nisi ullamcorper mollis. Sed et lectus accumsan, pharetra nunc scelerisque, finibus leo. Sed tempor eros nec nunc porta sodales. +Etiam eget metus elit. Praesent turpis mi, malesuada nec libero a, cursus varius leo. In malesuada gravida est, nec maximus turpis posuere eu. Proin rutrum mattis lectus. Ut mi elit, tincidunt ut aliquet consequat, facilisis vitae arcu. Proin ut massa auctor, imperdiet sem ac, varius justo. Integer porta tellus quis eros sollicitudin mollis. Donec nulla sem, porttitor et velit vitae, tincidunt congue erat. Vivamus urna libero, viverra non pharetra eu, bibendum id arcu. In fermentum bibendum purus, vitae pharetra ipsum gravida quis. Nunc vitae congue diam. Maecenas pharetra orci vel magna fermentum, vitae auctor sapien consectetur. Nunc tempor erat vel nisi ullamcorper mollis. Sed et lectus accumsan, pharetra nunc scelerisque, finibus leo. Sed tempor eros nec nunc porta sodales. diff --git a/exampleSite/content/index/awesome-team.md b/exampleSite/content/index/awesome-team.md new file mode 100644 index 00000000..2a010d84 --- /dev/null +++ b/exampleSite/content/index/awesome-team.md @@ -0,0 +1,12 @@ ++++ +fragment = "member" +#disabled = false +date = "2017-10-17" +lastmod = "2017-10-17" +weight = 900 +#background = "dark" +selfLink = "member-fragment" + +title = "Member Fragment" +subtitle = "Highly motivated Gophers" ++++ \ No newline at end of file diff --git a/exampleSite/content/index/awesome-team/donald.md b/exampleSite/content/index/awesome-team/donald.md new file mode 100644 index 00000000..808f86cd --- /dev/null +++ b/exampleSite/content/index/awesome-team/donald.md @@ -0,0 +1,25 @@ ++++ + title = "Tiny Gopher 4" + weight = 30 + joined = "2017-10-17" + image = "tinygopher.png" + position = "Gopherineer" + + livesIn = "[Iceland](https://www.google.com/maps/place/Iceland/)" + scope = [ + "Gopherineering for various tasks", + "Contributor for [Goper Team A](#)", + "Gopher Community Member" + ] + ++++ + + +Really tiny Gopher + +Some more text to showcase the capabilities: +Lorem ipsum dolor sit amet, consectetur adipiscing elit. +Curabitur a lorem urna. +Quisque in neque malesuada, sollicitudin nunc porttitor, ornare est. +Praesent ante enim, bibendum sed hendrerit et, iaculis laoreet felis. +Morbi efficitur dui sit amet orci porttitor, nec tincidunt turpis elementum. \ No newline at end of file diff --git a/exampleSite/content/index/awesome-team/ella.md b/exampleSite/content/index/awesome-team/ella.md new file mode 100644 index 00000000..e50de790 --- /dev/null +++ b/exampleSite/content/index/awesome-team/ella.md @@ -0,0 +1,28 @@ ++++ + title = "Huge Gopher" + weight = 0 + joined = "2017-10-17" + image = "hugegopher.png" + position = "Lead Gopherineer" + + reportsTo = "CTO" + livesIn = "[Munich, Germany](https://www.google.com/maps/place/Munich,+Germany/)" + scope = [ + "UX for [Food Dashboard](#)", + "Maintainer for [Goper Team A](#)", + "Gopher [Community Administration](#)" + ] + + [[icons]] + icon = "fa-linkedin-in" + link = "#" ++++ + +Hugely huge Gopher + +Some more text to showcase the capabilities: +Lorem ipsum dolor sit amet, consectetur adipiscing elit. +Curabitur a lorem urna. +Quisque in neque malesuada, sollicitudin nunc porttitor, ornare est. +Praesent ante enim, bibendum sed hendrerit et, iaculis laoreet felis. +Morbi efficitur dui sit amet orci porttitor, nec tincidunt turpis elementum. diff --git a/exampleSite/content/index/awesome-team/gopher.md b/exampleSite/content/index/awesome-team/gopher.md new file mode 100644 index 00000000..cf0008d2 --- /dev/null +++ b/exampleSite/content/index/awesome-team/gopher.md @@ -0,0 +1,31 @@ ++++ + title = "Tiny Gopher" + weight = 10 + joined = "2017-10-17" + image = "tinygopher.png" + position = "Gopherineer" + + reportsTo = "Lead Gophineer" + livesIn = "[Iceland](https://www.google.com/maps/place/Iceland/)" + scope = [ + "Gopherineering for various tasks", + "Contributor for [Goper Team A](#)", + "Gopher Community Member" + ] + + [[member.icons]] + icon = "fa-twitter" + link = "#" + [[member.icons]] + icon = "fa-linkedin-in" + link = "#" ++++ + +Really tiny Gopher + +Some more text to showcase the capabilities: +Lorem ipsum dolor sit amet, consectetur adipiscing elit. +Curabitur a lorem urna. +Quisque in neque malesuada, sollicitudin nunc porttitor, ornare est. +Praesent ante enim, bibendum sed hendrerit et, iaculis laoreet felis. +Morbi efficitur dui sit amet orci porttitor, nec tincidunt turpis elementum. \ No newline at end of file diff --git a/exampleSite/content/index/awesome-team/hector.md b/exampleSite/content/index/awesome-team/hector.md new file mode 100644 index 00000000..41e3e8c7 --- /dev/null +++ b/exampleSite/content/index/awesome-team/hector.md @@ -0,0 +1,28 @@ ++++ + title = "Tiny Gopher 5" + weight = 30 + joined = "2017-10-17" + image = "tinygopher.png" + + livesIn = "[Iceland](https://www.google.com/maps/place/Iceland/)" + + + [[icons]] + icon = "fa-twitter" + link = "#" + [[icons]] + icon = "fa-facebook" + link = "#" + [[icons]] + icon = "fa-linkedin-in" + link = "#" ++++ + +Really tiny Gopher + +Some more text to showcase the capabilities: +Lorem ipsum dolor sit amet, consectetur adipiscing elit. +Curabitur a lorem urna. +Quisque in neque malesuada, sollicitudin nunc porttitor, ornare est. +Praesent ante enim, bibendum sed hendrerit et, iaculis laoreet felis. +Morbi efficitur dui sit amet orci porttitor, nec tincidunt turpis elementum. diff --git a/exampleSite/content/index/awesome-team/nancy.md b/exampleSite/content/index/awesome-team/nancy.md new file mode 100644 index 00000000..afb3233d --- /dev/null +++ b/exampleSite/content/index/awesome-team/nancy.md @@ -0,0 +1,35 @@ ++++ + title = "Tiny Gopher 2" + weight = 20 + joined = "2017-10-17" + image = "tinygopher.png" + position = "Gopherineer" + + reportsTo = "Lead Gophineer" + livesIn = "[Iceland](https://www.google.com/maps/place/Iceland/)" + scope = [ + "Gopherineering for various tasks", + "Contributor for [Goper Team A](#)", + "Gopher Community Member" + ] + + + [[icons]] + icon = "fa-twitter" + link = "#" + [[icons]] + icon = "fa-facebook-f" + link = "#" + [[icons]] + icon = "fa-linkedin-in" + link = "#" ++++ + +Really tiny Gopher + +Some more text to showcase the capabilities: +Lorem ipsum dolor sit amet, consectetur adipiscing elit. +Curabitur a lorem urna. +Quisque in neque malesuada, sollicitudin nunc porttitor, ornare est. +Praesent ante enim, bibendum sed hendrerit et, iaculis laoreet felis. +Morbi efficitur dui sit amet orci porttitor, nec tincidunt turpis elementum. diff --git a/exampleSite/content/index/awesome-team/yoda.md b/exampleSite/content/index/awesome-team/yoda.md new file mode 100644 index 00000000..75aa16ce --- /dev/null +++ b/exampleSite/content/index/awesome-team/yoda.md @@ -0,0 +1,35 @@ ++++ + title = "Tiny Gopher 3" + weight = 30 + joined = "2017-10-17" + image = "tinygopher.png" + position = "Gopherineer" + + reportsTo = "Lead Gophineer" + livesIn = "[Iceland](https://www.google.com/maps/place/Iceland/)" + scope = [ + "Gopherineering for various tasks", + "Contributor for [Goper Team A](#)", + "Gopher Community Member" + ] + + + [[icons]] + icon = "fa-twitter" + link = "#" + [[icons]] + icon = "fa-facebook-f" + link = "#" + [[icons]] + icon = "fa-linkedin-in" + link = "#" ++++ + + Really tiny Gopher + + Some more text to showcase the capabilities: + Lorem ipsum dolor sit amet, consectetur adipiscing elit. + Curabitur a lorem urna. + Quisque in neque malesuada, sollicitudin nunc porttitor, ornare est. + Praesent ante enim, bibendum sed hendrerit et, iaculis laoreet felis. + Morbi efficitur dui sit amet orci porttitor, nec tincidunt turpis elementum. diff --git a/exampleSite/content/index/button_download.md b/exampleSite/content/index/button_download.md new file mode 100644 index 00000000..12a744e6 --- /dev/null +++ b/exampleSite/content/index/button_download.md @@ -0,0 +1,17 @@ ++++ +fragment = "buttons" +#disabled = false +date = "2016-09-07" +lastmod = "2017-09-07" +weight = 700 +background = "secondary" +selfLink = "buttons-fragment-secondary" + +title = "Buttons Fragment" +subtitle = "Using secondary background" + +[[buttons]] + text = "Button" + link = "#" + color = "info" ++++ diff --git a/exampleSite/content/index/buttons.md b/exampleSite/content/index/buttons.md new file mode 100644 index 00000000..dba88328 --- /dev/null +++ b/exampleSite/content/index/buttons.md @@ -0,0 +1,22 @@ ++++ +fragment = "buttons" +#disabled = false +date = "2016-09-07" +lastmod = "2017-09-07" +weight = 720 +background = "primary" +selfLink = "buttons-fragment" + +title = "Buttons Fragment" +subtitle = "Using primary background" + +[[buttons]] + text = "Button" + link = "#" + color = "success" # primary, secondary, success, danger, warning, info, light, dark, link - default: primary + +[[buttons]] + text = "Danger Button" + link = "#" + color = "danger" ++++ diff --git a/exampleSite/content/index/buttons_contribute.md b/exampleSite/content/index/buttons_contribute.md new file mode 100644 index 00000000..7e027d82 --- /dev/null +++ b/exampleSite/content/index/buttons_contribute.md @@ -0,0 +1,27 @@ ++++ +fragment = "buttons" +#disabled = false +date = "2016-09-07" +lastmod = "2017-09-07" +weight = 710 +#background = "" +selfLink = "button-fragment" + +title = "Buttons Fragment" +#subtitle = "" + +[[buttons]] + text = "Button" + link = "#" + color = "outline-secondary" # primary, secondary, success, danger, warning, info, light, dark, link - default: primary + +[[buttons]] + text = "Button" + link = "#" + color = "success" + +[[buttons]] + text = "Long Button" + link = "#" + color = "secondary" # primary, secondary, success, danger, warning, info, light, dark, link - default: primary ++++ diff --git a/exampleSite/content/index/contact.md b/exampleSite/content/index/contact.md new file mode 100644 index 00000000..838d23b6 --- /dev/null +++ b/exampleSite/content/index/contact.md @@ -0,0 +1,48 @@ ++++ +fragment = "contact" +#disabled = true +date = "2017-09-10" +lastmod = "2017-09-10" +weight = 1100 +#background = "light" +selfLink = "contact-fragment" +formName = "defaultContact" + +title = "Contact fragment" +subtitle = "*not working on demo page*" + +# PostURL can be used with backends such as mailout from caddy +postURL = "https://example.com/mailout" #default: formspree.io +email = "mail@example.com" +button = "Send Button" # defaults to theme default + +[message] + success = "Thank you for awesomely contacting us." # defaults to theme default + error = "Message could not be send. Please contact us at mail@example.com instead." # defaults to theme default + +# Only defined fields are shown in contact form +[fields.name] + text = "Your Name *" + error = "Please enter your name" # defaults to theme default + +[fields.email] + text = "Your Email *" + error = "Please enter your email address" # defaults to theme default + +[fields.phone] + text = "Your Phone *" + error = "Please enter your phone number" # defaults to theme default + +[fields.message] + text = "Your Message *" + error = "Please enter a message" # defaults to theme default + +# Optional hidden form fields +# Fields "page" and "site" will be autofilled +[[fields.hidden]] + name = "page" + +[[fields.hidden]] + name = "someID" + value = "example.com" ++++ diff --git a/exampleSite/content/index/embed-subscribe.md b/exampleSite/content/index/embed-subscribe.md new file mode 100644 index 00000000..dbf66ea0 --- /dev/null +++ b/exampleSite/content/index/embed-subscribe.md @@ -0,0 +1,21 @@ ++++ +fragment = "embed" +#disabled = true +date = "2017-10-07" +lastmod = "2017-10-07" +weight = 1050 +background = "light" +selfLink = "contact" +formName = "subscribe" + +#title = "" +#subtitle = "" + +# Embed a form via an iframe +# Mailerlite is one example of a working provider. +# There are others such as convertkit. +# Only necessity is for them to use iframes. +media = '' +responsive = false # prevent responsive behaviour +#size = "100" # 25, 50, 75, 100 (percentage) - default: 75 ++++ diff --git a/exampleSite/content/index/embed-video.md b/exampleSite/content/index/embed-video.md new file mode 100644 index 00000000..2283076b --- /dev/null +++ b/exampleSite/content/index/embed-video.md @@ -0,0 +1,17 @@ ++++ +fragment = "embed" +#disabled = false +date = "2017-09-09" +lastmod = "2017-09-09" +weight = 800 +background = "secondary" +selfLink = "video-fragment" + +title = "Embed Fragment" +subtitle = "Easily embed media (videos, iframes etc.)" + +mediaSource = "https://www.youtube-nocookie.com/embed/lXpf4kIxygU?rel=0&showinfo=0" +#media = '' +#ratio = "16by9" # 21by9, 16by9, 4by3, 1by1 - Default: 4by3 +#size = "100" # 25, 50, 75, 100 (percentage) - default: 75 ++++ diff --git a/exampleSite/content/index/footer.md b/exampleSite/content/index/footer.md new file mode 100644 index 00000000..a703dde3 --- /dev/null +++ b/exampleSite/content/index/footer.md @@ -0,0 +1,18 @@ ++++ +fragment = "footer" +#disabled = true +date = "2016-09-07" +lastmod = "2017-09-07" +weight = 1200 +#background = "" + +linkTitle = "Link Title" +logoTitle = "Logo Title" +logo = "logo.svg" +logoText = "Logo Subtext" ++++ + +#### Description Title +Project description such as: +Open source theme for your next project +Provided by Okkur Labs \ No newline at end of file diff --git a/exampleSite/data/index/hero.toml b/exampleSite/content/index/hero.md similarity index 97% rename from exampleSite/data/index/hero.toml rename to exampleSite/content/index/hero.md index eed4bf5e..ff714022 100644 --- a/exampleSite/data/index/hero.toml +++ b/exampleSite/content/index/hero.md @@ -3,6 +3,7 @@ fragment = "hero" #disabled = true date = "2016-09-07" lastmod = "2017-09-07" +weight = 50 #background = "dark" # can influence the text color particles = true @@ -27,4 +28,4 @@ logoWidth = "500px" # optional - will default to image width text = "Button" link = "#" color = "success" -+++ ++++ \ No newline at end of file diff --git a/exampleSite/content/_index.md b/exampleSite/content/index/index.md similarity index 93% rename from exampleSite/content/_index.md rename to exampleSite/content/index/index.md index c8313a6e..35075a70 100644 --- a/exampleSite/content/_index.md +++ b/exampleSite/content/index/index.md @@ -1,4 +1,5 @@ +++ +url = "/" title = "Syna Theme" lastmod = "2017-09-07" date = "2017-09-07" diff --git a/exampleSite/content/index/item_button-center.md b/exampleSite/content/index/item_button-center.md new file mode 100644 index 00000000..f0922d30 --- /dev/null +++ b/exampleSite/content/index/item_button-center.md @@ -0,0 +1,40 @@ ++++ +fragment = "item" +#disabled = false +date = "2017-10-04" +lastmod = "2017-10-04" +weight = 420 +background = "dark" +selfLink = "item-fragment-button-center" +align = "center" + +title = "Item Fragment Button Center" +subtitle= "Easily center align the item fragment even with some buttons" + +# Subtitle pre and post item +#pre = "" +#post = "" + + +[[buttons]] + text = "Long Button" + link = "#" + color = "primary" + +[[buttons]] + text = "Button" + link = "#" + color = "secondary" ++++ + +Also a long description is possible. + +Some more text to showcase the description capabilities: +Lorem ipsum dolor sit amet, consectetur adipiscing elit. +Curabitur a lorem urna. +Quisque in neque malesuada, sollicitudin nunc porttitor, ornare est. +Praesent ante enim, bibendum sed hendrerit et, iaculis laoreet felis. +Morbi efficitur dui sit amet orci porttitor, nec tincidunt turpis elementum. +Suspendisse rutrum, mi ac sollicitudin blandit, eros sem tincidunt enim, vitae feugiat turpis eros ut diam. +Nunc hendrerit, nibh vitae dignissim pretium, magna nulla lacinia massa, et interdum lacus purus ultricies lacus. +Nulla tincidunt quis lacus in posuere. diff --git a/exampleSite/content/index/item_button-left.md b/exampleSite/content/index/item_button-left.md new file mode 100644 index 00000000..6e1f59a3 --- /dev/null +++ b/exampleSite/content/index/item_button-left.md @@ -0,0 +1,34 @@ ++++ +fragment = "item" +#disabled = false +date = "2017-10-04" +lastmod = "2017-10-04" +weight = 410 +#background = "" +selfLink = "item-fragment-button-left" +align = "left" + +title = "Item Fragment Button Left" +#subtitle = "" + +# Subtitle pre and post item +#pre = "" +#post = "" + +[[buttons]] + text = "Button" + link = "#" + color = "success" ++++ + +Easily left align the item fragment even with some buttons. + +Some more text to showcase the description capabilities: +Lorem ipsum dolor sit amet, consectetur adipiscing elit. +Curabitur a lorem urna. +Quisque in neque malesuada, sollicitudin nunc porttitor, ornare est. +Praesent ante enim, bibendum sed hendrerit et, iaculis laoreet felis. +Morbi efficitur dui sit amet orci porttitor, nec tincidunt turpis elementum. +Suspendisse rutrum, mi ac sollicitudin blandit, eros sem tincidunt enim, vitae feugiat turpis eros ut diam. +Nunc hendrerit, nibh vitae dignissim pretium, magna nulla lacinia massa, et interdum lacus purus ultricies lacus. +Nulla tincidunt quis lacus in posuere. diff --git a/exampleSite/content/index/item_button-right.md b/exampleSite/content/index/item_button-right.md new file mode 100644 index 00000000..4d5a4221 --- /dev/null +++ b/exampleSite/content/index/item_button-right.md @@ -0,0 +1,39 @@ ++++ +fragment = "item" +#disabled = false +date = "2017-10-04" +lastmod = "2017-10-04" +weight = 400 +background = "dark" +selfLink = "item-fragment-button-right" +align = "right" + +title = "Item Fragment Button Right" +subtitle= "Easily right align the item fragment even with some buttons" + +# Subtitle pre and post item +pre = "Awesome Button" +post = "With a simple subtitle" + +[[buttons]] + text = "Button" + link = "#" + color = "primary" + +[[buttons]] + text = "Long Button" + link = "#" + color = "secondary" ++++ + +Also a long description is possible. + +Some more text to showcase the description capabilities: +Lorem ipsum dolor sit amet, consectetur adipiscing elit. +Curabitur a lorem urna. +Quisque in neque malesuada, sollicitudin nunc porttitor, ornare est. +Praesent ante enim, bibendum sed hendrerit et, iaculis laoreet felis. +Morbi efficitur dui sit amet orci porttitor, nec tincidunt turpis elementum. +Suspendisse rutrum, mi ac sollicitudin blandit, eros sem tincidunt enim, vitae feugiat turpis eros ut diam. +Nunc hendrerit, nibh vitae dignissim pretium, magna nulla lacinia massa, et interdum lacus purus ultricies lacus. +Nulla tincidunt quis lacus in posuere. diff --git a/exampleSite/content/index/item_icon-center.md b/exampleSite/content/index/item_icon-center.md new file mode 100644 index 00000000..f8fb6a03 --- /dev/null +++ b/exampleSite/content/index/item_icon-center.md @@ -0,0 +1,32 @@ ++++ +fragment = "item" +#disabled = false +date = "2017-10-04" +lastmod = "2017-10-04" +weight = 310 +background = "secondary" +selfLink = "item-fragment-icon-center" +align = "center" + +title = "Item Fragment Icon Center" +#subtitle = "" + +# Subtitle pre and post item +#pre = "" +#post = "" + +icon = "fa-random" + ++++ + +Easily center item fragments even with an icon. + +Some more text to showcase the description capabilities: +Lorem ipsum dolor sit amet, consectetur adipiscing elit. +Curabitur a lorem urna. +Quisque in neque malesuada, sollicitudin nunc porttitor, ornare est. +Praesent ante enim, bibendum sed hendrerit et, iaculis laoreet felis. +Morbi efficitur dui sit amet orci porttitor, nec tincidunt turpis elementum. +Suspendisse rutrum, mi ac sollicitudin blandit, eros sem tincidunt enim, vitae feugiat turpis eros ut diam. +Nunc hendrerit, nibh vitae dignissim pretium, magna nulla lacinia massa, et interdum lacus purus ultricies lacus. +Nulla tincidunt quis lacus in posuere. diff --git a/exampleSite/content/index/item_icon-left.md b/exampleSite/content/index/item_icon-left.md new file mode 100644 index 00000000..0e4fc172 --- /dev/null +++ b/exampleSite/content/index/item_icon-left.md @@ -0,0 +1,32 @@ ++++ +fragment = "item" +#disabled = false +date = "2017-10-04" +lastmod = "2017-10-04" +weight = 300 +#background = "" +selfLink = "item-fragment-icon-left" +align = "left" + +title = "Item Fragment Icon Left" +#subtitle = "" + +# Subtitle pre and post item +pre = "Awesome icon" +post = "Using Fontawesome icons" + +icon = "fa-random" + ++++ + +Easily left align item fragments even with an icon. + +Some more text to showcase the description capabilities: +Lorem ipsum dolor sit amet, consectetur adipiscing elit. +Curabitur a lorem urna. +Quisque in neque malesuada, sollicitudin nunc porttitor, ornare est. +Praesent ante enim, bibendum sed hendrerit et, iaculis laoreet felis. +Morbi efficitur dui sit amet orci porttitor, nec tincidunt turpis elementum. +Suspendisse rutrum, mi ac sollicitudin blandit, eros sem tincidunt enim, vitae feugiat turpis eros ut diam. +Nunc hendrerit, nibh vitae dignissim pretium, magna nulla lacinia massa, et interdum lacus purus ultricies lacus. +Nulla tincidunt quis lacus in posuere. \ No newline at end of file diff --git a/exampleSite/content/index/item_image-button-left.md b/exampleSite/content/index/item_image-button-left.md new file mode 100644 index 00000000..6f21ff15 --- /dev/null +++ b/exampleSite/content/index/item_image-button-left.md @@ -0,0 +1,41 @@ ++++ +fragment = "item" +#disabled = false +date = "2017-10-04" +lastmod = "2017-10-04" +weight = 360 +background = "light" +selfLink = "item-fragment-image-button-left" +align = "left" + +title = "Item Fragment Image Button Left" +#subtitle = "" + +# Subtitle pre and post item +#pre = "" +#post = "" + +image = "screenshot.png" + +[[buttons]] + text = "Button" + link = "#" + color = "primary" + +[[buttons]] + text = "Long Button" + link = "#" + color = "secondary" ++++ + +Choose from a wide variety of highly modular partials to built the site you need. + +Some more text to showcase the description capabilities: +Lorem ipsum dolor sit amet, consectetur adipiscing elit. +Curabitur a lorem urna. +Quisque in neque malesuada, sollicitudin nunc porttitor, ornare est. +Praesent ante enim, bibendum sed hendrerit et, iaculis laoreet felis. +Morbi efficitur dui sit amet orci porttitor, nec tincidunt turpis elementum. +Suspendisse rutrum, mi ac sollicitudin blandit, eros sem tincidunt enim, vitae feugiat turpis eros ut diam. +Nunc hendrerit, nibh vitae dignissim pretium, magna nulla lacinia massa, et interdum lacus purus ultricies lacus. +Nulla tincidunt quis lacus in posuere. diff --git a/exampleSite/content/index/item_image-center.md b/exampleSite/content/index/item_image-center.md new file mode 100644 index 00000000..df83999c --- /dev/null +++ b/exampleSite/content/index/item_image-center.md @@ -0,0 +1,33 @@ ++++ +fragment = "item" +#disabled = false +date = "2017-10-04" +lastmod = "2017-10-04" +weight = 350 +background = "secondary" +selfLink = "item-fragment-image-center" +align = "center" + +title = "Item Fragment Image Center" +#subtitle= "" + +# Subtitle pre and post item +#pre = "" +#post = "" + +image = "screenshot.png" + ++++ + + +Easily center item fragments even with an image. + +Some more text to showcase the description capabilities: +Lorem ipsum dolor sit amet, consectetur adipiscing elit. +Curabitur a lorem urna. +Quisque in neque malesuada, sollicitudin nunc porttitor, ornare est. +Praesent ante enim, bibendum sed hendrerit et, iaculis laoreet felis. +Morbi efficitur dui sit amet orci porttitor, nec tincidunt turpis elementum. +Suspendisse rutrum, mi ac sollicitudin blandit, eros sem tincidunt enim, vitae feugiat turpis eros ut diam. +Nunc hendrerit, nibh vitae dignissim pretium, magna nulla lacinia massa, et interdum lacus purus ultricies lacus. +Nulla tincidunt quis lacus in posuere. diff --git a/exampleSite/content/index/item_image-only.md b/exampleSite/content/index/item_image-only.md new file mode 100644 index 00000000..4e34f5cc --- /dev/null +++ b/exampleSite/content/index/item_image-only.md @@ -0,0 +1,19 @@ ++++ +fragment = "item" +#disabled = false +date = "2017-10-04" +lastmod = "2017-10-04" +weight = 330 +background = "secondary" +selfLink = "item-fragment-image-only-center" +align = "center" + +title = "Item Fragment Image Only" +#subtitle = "" + +# Subtitle pre and post item +#pre = "" +#post = "" + +image = "screenshot.png" ++++ diff --git a/exampleSite/content/index/item_image-right.md b/exampleSite/content/index/item_image-right.md new file mode 100644 index 00000000..bac3cf71 --- /dev/null +++ b/exampleSite/content/index/item_image-right.md @@ -0,0 +1,32 @@ ++++ +fragment = "item" +#disabled = false +date = "2017-10-04" +lastmod = "2017-10-04" +weight = 320 +background = "dark" +selfLink = "item-fragment-image-right" +align = "right" + +title = "Item Fragment Image Right" +subtitle= "Easily right align the item fragment even with an image" + +# Subtitle pre and post item +pre = "Awesome screenshot" +post = "Showcasing Syna" + +image = "screenshot.png" + ++++ + +Easily left align the item fragment even with an image and buttons at the same time. + +Some more text to showcase the description capabilities: +Lorem ipsum dolor sit amet, consectetur adipiscing elit. +Curabitur a lorem urna. +Quisque in neque malesuada, sollicitudin nunc porttitor, ornare est. +Praesent ante enim, bibendum sed hendrerit et, iaculis laoreet felis. +Morbi efficitur dui sit amet orci porttitor, nec tincidunt turpis elementum. +Suspendisse rutrum, mi ac sollicitudin blandit, eros sem tincidunt enim, vitae feugiat turpis eros ut diam. +Nunc hendrerit, nibh vitae dignissim pretium, magna nulla lacinia massa, et interdum lacus purus ultricies lacus. +Nulla tincidunt quis lacus in posuere. \ No newline at end of file diff --git a/exampleSite/content/index/item_image-table-left.md b/exampleSite/content/index/item_image-table-left.md new file mode 100644 index 00000000..9f3258ee --- /dev/null +++ b/exampleSite/content/index/item_image-table-left.md @@ -0,0 +1,85 @@ ++++ +fragment = "item" +#disabled = false +date = "2017-10-04" +lastmod = "2017-10-04" +weight = 340 +#background = "" +selfLink = "item-fragment-image-table-left" +align = "left" + +title = "Item Fragment Image Table Left" +#subtitle = "" + +# Subtitle pre and post item +#pre = "" +#post = "" + +image = "screenshot.png" + + +[header] + [[header.values]] + text = "Header 1" + + [[header.values]] + text = "Header 2" + center = true + + [[header.values]] + text = "Header 3" + + [[header.values]] + text = "Header 4" + + [[header.values]] + text = "Header 5" + + [[header.values]] + text = "Header 6" + +[[rows]] + [[rows.values]] + header = "Row 1" + + [[rows.values]] + text = "Value" + + [[rows.values]] + text = "Value" + + [[rows.values]] + text = "Value" + + [[rows.values]] + button = "Button" + link = "#" + color = "success" + center = true + + [[rows.values]] + button = "Long Button" + link = "#" + color = "danger" + +[[rows]] + [[rows.values]] + header = "Row 2" + + [[rows.values]] + text = "Value" + + [[rows.values]] + text = "Long Value" + + [[rows.values]] + text = "Long Value" + + [[rows.values]] + text = "" + + [[rows.values]] + icon = "fa-download" + link = "#" + center = true ++++ diff --git a/exampleSite/content/index/items.md b/exampleSite/content/index/items.md new file mode 100644 index 00000000..de1853b5 --- /dev/null +++ b/exampleSite/content/index/items.md @@ -0,0 +1,12 @@ ++++ +fragment = "items" +#disabled = false +date = "2017-10-04" +lastmod = "2017-10-04" +weight = 100 +#background = "dark" +selfLink = "items-fragment" + +title = "Items Fragment" +subtitle= "Column based items with icons" ++++ diff --git a/exampleSite/content/index/items/column1.md b/exampleSite/content/index/items/column1.md new file mode 100644 index 00000000..834356dc --- /dev/null +++ b/exampleSite/content/index/items/column1.md @@ -0,0 +1,9 @@ ++++ + name = "Column 1" + weight = 10 + icon = "fa-random" + link = "#" ++++ + + Showcasing descriptions for column based items + \ No newline at end of file diff --git a/exampleSite/content/index/items/column2.md b/exampleSite/content/index/items/column2.md new file mode 100644 index 00000000..acc73c99 --- /dev/null +++ b/exampleSite/content/index/items/column2.md @@ -0,0 +1,12 @@ ++++ + name = "Column 2" + weight = 20 + icon = "fa-code" + #link = "#" ++++ + + Showcasing descriptions for column based items + Some more text to showcase the description capabilities: + Lorem ipsum dolor sit amet, consectetur adipiscing elit. + Curabitur a lorem urna. + \ No newline at end of file diff --git a/exampleSite/content/index/items/column3.md b/exampleSite/content/index/items/column3.md new file mode 100644 index 00000000..65989cd9 --- /dev/null +++ b/exampleSite/content/index/items/column3.md @@ -0,0 +1,9 @@ ++++ + name = "Column 3" + weight = 30 + icon = "fa-code" + #link = "#" ++++ + + Showcasing descriptions for column based items + \ No newline at end of file diff --git a/exampleSite/content/index/items_only.md b/exampleSite/content/index/items_only.md new file mode 100644 index 00000000..78b7708d --- /dev/null +++ b/exampleSite/content/index/items_only.md @@ -0,0 +1,12 @@ ++++ +fragment = "items" +#disabled = false +date = "2017-10-04" +lastmod = "2017-10-04" +weight = 110 +background = "dark" +selfLink = "items-fragment-only" + +#title = "" +#subtitle = "" ++++ diff --git a/exampleSite/content/index/items_only/column-1.md b/exampleSite/content/index/items_only/column-1.md new file mode 100644 index 00000000..0646944c --- /dev/null +++ b/exampleSite/content/index/items_only/column-1.md @@ -0,0 +1,10 @@ ++++ + name = "Column 1" + weight = 10 + icon = "fa-random" + #link = "#" ++++ + + +Showcasing descriptions for column based items + diff --git a/exampleSite/content/index/items_only/column-2.md b/exampleSite/content/index/items_only/column-2.md new file mode 100644 index 00000000..dc696467 --- /dev/null +++ b/exampleSite/content/index/items_only/column-2.md @@ -0,0 +1,13 @@ ++++ + name = "Column 2" + weight = 20 + icon = "fa-random" + #link = "#" ++++ + + + Showcasing descriptions for column based items + Some more text to showcase the description capabilities: + Lorem ipsum dolor sit amet, consectetur adipiscing elit. + Curabitur a lorem urna. + \ No newline at end of file diff --git a/exampleSite/content/index/items_only/column-3.md b/exampleSite/content/index/items_only/column-3.md new file mode 100644 index 00000000..1cdd8aba --- /dev/null +++ b/exampleSite/content/index/items_only/column-3.md @@ -0,0 +1,14 @@ ++++ + name = "Column 3" + weight = 30 + icon = "fa-code" + #link = "#" ++++ + + + Showcasing descriptions for column based items + Some more text to showcase the description capabilities: + Lorem ipsum dolor sit amet, consectetur adipiscing elit. + Curabitur a lorem urna. + Quisque in neque malesuada, sollicitudin nunc porttitor, ornare est. + \ No newline at end of file diff --git a/exampleSite/content/index/logos.md b/exampleSite/content/index/logos.md new file mode 100644 index 00000000..c6346916 --- /dev/null +++ b/exampleSite/content/index/logos.md @@ -0,0 +1,30 @@ ++++ +fragment = "logos" +#disabled = false +date = "2017-09-09" +lastmod = "2017-09-09" +weight = 1000 +#background = "" +selfLink = "tools" + +title = "Logo Fragment" +subtitle = "Even linking is possible" + +[[logos]] + name = "hugo" + weight = 20 + logo = "hugo.svg" + link = "#" + +[[logos]] + name = "go" + weight = 10 + logo = "go.svg" + link = "#" + +[[logos]] + name = "caddy" + weight = 30 + logo = "caddy.svg" + link = "#" ++++ diff --git a/exampleSite/content/index/logos_only.md b/exampleSite/content/index/logos_only.md new file mode 100644 index 00000000..40dc2773 --- /dev/null +++ b/exampleSite/content/index/logos_only.md @@ -0,0 +1,18 @@ ++++ +fragment = "logos" +#disabled = false +date = "2017-09-09" +lastmod = "2017-09-09" +weight = 1010 +background = "dark" +selfLink = "users" + +#title = "" +#subtitle = "" + +[[logos]] + name = "syna" + weight = 10 + logo = "syna.svg" + #link = "#" ++++ diff --git a/exampleSite/content/index/table.md b/exampleSite/content/index/table.md new file mode 100644 index 00000000..f983c9ee --- /dev/null +++ b/exampleSite/content/index/table.md @@ -0,0 +1,77 @@ ++++ +fragment = "table" +#disabled = false +date = "2017-10-10" +lastmod = "2017-10-10" +weight = 500 +background = "light" +selfLink = "table-fragment" + +title = "Table Fragment" +subtitle= "Tables are responsive by default" + + +[header] + [[header.values]] + text = "Header 1" + + [[header.values]] + text = "Header 2" + + [[header.values]] + text = "Header 3" + + [[header.values]] + text = "Header 4" + + [[header.values]] + text = "Header 5" + + [[header.values]] + text = "Header 6" + +[[rows]] + [[rows.values]] + header = "Row 1" + + [[rows.values]] + text = "Value" + + [[rows.values]] + text = "Long Value" + + [[rows.values]] + text = "Value" + + [[rows.values]] + button = "Long Button" + link = "#" + color = "success" + + [[rows.values]] + button = "Button" + link = "#" + color = "danger" + center = true + +[[rows]] + [[rows.values]] + header = "Row 2" + + [[rows.values]] + text = "Value" + + [[rows.values]] + text = "Value" + + [[rows.values]] + text = "Long Value" + + [[rows.values]] + text = "" + + [[rows.values]] + icon = "fa-download" + link = "#" + center = true ++++ diff --git a/exampleSite/content/nesting/nested.md b/exampleSite/content/nesting/index.md similarity index 100% rename from exampleSite/content/nesting/nested.md rename to exampleSite/content/nesting/index.md diff --git a/layouts/_default/single.html b/layouts/_default/single.html index b90e3bab..9260fbda 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -6,62 +6,54 @@ {{ partial "nav.html" . }} - {{ $page := replace (strings.TrimRight "/" (strings.TrimLeft "/" .RelPermalink)) "/" "__" }} - - {{ with index $.Site.Data $page }} - {{ range . }} - {{ $.Scratch.Set "data" . }} - - {{ if and (not .disabled) (eq .fragment "hero") }} - {{ partial "fragments/hero.html" $ }} - {{ end }} - + {{ range .Resources.ByType "page"}} + {{ if and (not .Params.disabled) (eq .Params.fragment "hero") }} + {{ partial "fragments/hero.html" (dict "self" . ) }} {{ end }} {{ end }} - {{ partial "content-single.html" . }} - - {{ with index $.Site.Data $page }} - {{ range sort . "weight" }} - {{ $.Scratch.Set "data" . }} + {{ if .Content }} + {{ partial "content-single.html" . }} + {{ end }} - {{ if and (not .disabled) (eq .fragment "items") }} - {{ partial "fragments/items.html" $ }} - {{ end }} + {{ range .Resources.ByType "page" }} - {{ if and (not .disabled) (eq .fragment "item") }} - {{ partial "fragments/item.html" $ }} - {{ end }} + {{ if and (not .Params.disabled) (eq .Params.fragment "items") }} + {{ partial "fragments/items.html" (dict "resources" $.Resources "self" . ) }} + {{ end }} - {{ if and (not .disabled) (eq .fragment "table") }} - {{ partial "fragments/table.html" $ }} - {{ end }} + {{ if and (not .Params.disabled) (eq .Params.fragment "item") }} + {{ partial "fragments/item.html" (dict "self" . ) }} + {{ end }} - {{ if and (not .disabled) (eq .fragment "embed") }} - {{ partial "fragments/embed.html" $ }} - {{ end }} + {{ if and (not .Params.disabled) (eq .Params.fragment "table") }} + {{ partial "fragments/table.html" (dict "self" . ) }} + {{ end }} - {{ if and (not .disabled) (eq .fragment "member") }} - {{ partial "fragments/member.html" $ }} - {{ end }} + {{ if and (not .Params.disabled) (eq .Params.fragment "embed") }} + {{ partial "fragments/embed.html" (dict "self" . ) }} + {{ end }} - {{ if and (not .disabled) (eq .fragment "buttons") }} - {{ partial "fragments/buttons.html" $ }} - {{ end }} + {{ if and (not .Params.disabled) (eq .Params.fragment "member") }} + {{ partial "fragments/member.html" (dict "resources" $.Resources "self" . ) }} + {{ end }} - {{ if and (not .disabled) (eq .fragment "contact") }} - {{ partial "fragments/contact.html" $ }} - {{ end }} + {{ if and (not .Params.disabled) (eq .Params.fragment "logos") }} + {{ partial "fragments/logos.html" (dict "self" . ) }} + {{ end }} - {{ if and (not .disabled) (eq .fragment "logos") }} - {{ partial "fragments/logos.html" $ }} - {{ end }} + {{ if and (not .Params.disabled) (eq .Params.fragment "contact") }} + {{ partial "fragments/contact.html" (dict "self" . ) }} + {{ end }} - {{ if and (not .disabled) (in .fragment "footer") }} - {{ partial "fragments/footer.html" $ }} - {{ end }} + {{ if and (not .Params.disabled) (in .Params.fragment "footer") }} + {{ partial "fragments/footer.html" (dict "menus" $.Site.Menus "self" . ) }} + {{ end }} + {{ if and (not .Params.disabled) (eq .Params.fragment "buttons") }} + {{ partial "fragments/buttons.html" (dict "self" . ) }} {{ end }} + {{ end }} {{ partial "footer.html" . }} diff --git a/layouts/_default/split.html b/layouts/_default/split.html index 242a2249..8a8f9126 100644 --- a/layouts/_default/split.html +++ b/layouts/_default/split.html @@ -6,62 +6,50 @@ {{ partial "nav.html" . }} - {{ $page := replace (strings.TrimRight "/" (strings.TrimLeft "/" .RelPermalink)) "/" "__" }} - - {{ with index $.Site.Data $page }} - {{ range . }} - {{ $.Scratch.Set "data" . }} - - {{ if and (not .disabled) (eq .fragment "hero") }} - {{ partial "fragments/hero.html" $ }} - {{ end }} - - {{ end }} - {{ end }} - {{ partial "content-split.html" . }} - {{ with index $.Site.Data $page }} - {{ range sort . "weight" }} - {{ $.Scratch.Set "data" . }} + {{ range .Resources.ByType "page" }} - {{ if and (not .disabled) (eq .fragment "items") }} - {{ partial "fragments/items.html" $ }} - {{ end }} + {{ if and (not .Params.disabled) (eq .Params.fragment "hero") }} + {{ partial "fragments/hero.html" (dict "self" . ) }} + {{ end }} - {{ if and (not .disabled) (eq .fragment "item") }} - {{ partial "fragments/item.html" $ }} - {{ end }} + {{ if and (not .Params.disabled) (eq .Params.fragment "items") }} + {{ partial "fragments/items.html" (dict "resources" $.Resources "self" . ) }} + {{ end }} - {{ if and (not .disabled) (eq .fragment "table") }} - {{ partial "fragments/table.html" $ }} - {{ end }} + {{ if and (not .Params.disabled) (eq .Params.fragment "item") }} + {{ partial "fragments/item.html" (dict "self" . ) }} + {{ end }} - {{ if and (not .disabled) (eq .fragment "embed") }} - {{ partial "fragments/embed.html" $ }} - {{ end }} + {{ if and (not .Params.disabled) (eq .Params.fragment "table") }} + {{ partial "fragments/table.html" (dict "self" . ) }} + {{ end }} - {{ if and (not .disabled) (eq .fragment "member") }} - {{ partial "fragments/member.html" $ }} - {{ end }} + {{ if and (not .Params.disabled) (eq .Params.fragment "embed") }} + {{ partial "fragments/embed.html" (dict "self" . ) }} + {{ end }} - {{ if and (not .disabled) (eq .fragment "buttons") }} - {{ partial "fragments/buttons.html" $ }} - {{ end }} + {{ if and (not .Params.disabled) (eq .Params.fragment "member") }} + {{ partial "fragments/member.html" (dict "self" . ) }} + {{ end }} - {{ if and (not .disabled) (eq .fragment "contact") }} - {{ partial "fragments/contact.html" $ }} - {{ end }} + {{ if and (not .Params.disabled) (eq .Params.fragment "logos") }} + {{ partial "fragments/logos.html" (dict "self" . ) }} + {{ end }} - {{ if and (not .disabled) (eq .fragment "logos") }} - {{ partial "fragments/logos.html" $ }} - {{ end }} + {{ if and (not .Params.disabled) (eq .Params.fragment "contact") }} + {{ partial "fragments/contact.html" (dict "self" . ) }} + {{ end }} - {{ if and (not .disabled) (eq .fragment "footer") }} - {{ partial "fragments/footer.html" $ }} - {{ end }} + {{ if and (not .Params.disabled) (in .Params.fragment "footer") }} + {{ partial "fragments/footer.html" (dict "self" . ) }} + {{ end }} + {{ if and (not .Params.disabled) (eq .Params.fragment "buttons") }} + {{ partial "fragments/buttons.html" (dict "self" .) }} {{ end }} + {{ end }} {{ partial "footer.html" . }} @@ -69,4 +57,4 @@ {{ partial "js.html" . }} - + \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html deleted file mode 100644 index f4943f44..00000000 --- a/layouts/index.html +++ /dev/null @@ -1,70 +0,0 @@ - - - {{ partial "head.html" . }} - {{ $bg := .Site.Params.style.background | default "secondary"}} - - - - {{ partial "nav.html" . }} - - {{ with $.Site.Data.index }} - {{ range . }} - {{ $.Scratch.Set "data" . }} - - {{ if and (not .disabled) (eq .fragment "hero") }} - {{ partial "fragments/hero.html" $ }} - {{ end }} - - {{ end }} - {{ end }} - - {{ with $.Site.Data.index }} - - {{ range sort . "weight" }} - {{ $.Scratch.Set "data" . }} - - {{ if and (not .disabled) (eq .fragment "items") }} - {{ partial "fragments/items.html" $ }} - {{ end }} - - {{ if and (not .disabled) (eq .fragment "item") }} - {{ partial "fragments/item.html" $ }} - {{ end }} - - {{ if and (not .disabled) (eq .fragment "table") }} - {{ partial "fragments/table.html" $ }} - {{ end }} - - {{ if and (not .disabled) (eq .fragment "embed") }} - {{ partial "fragments/embed.html" $ }} - {{ end }} - - {{ if and (not .disabled) (eq .fragment "member") }} - {{ partial "fragments/member.html" $ }} - {{ end }} - - {{ if and (not .disabled) (eq .fragment "buttons") }} - {{ partial "fragments/buttons.html" $ }} - {{ end }} - - {{ if and (not .disabled) (eq .fragment "contact") }} - {{ partial "fragments/contact.html" $ }} - {{ end }} - - {{ if and (not .disabled) (eq .fragment "logos") }} - {{ partial "fragments/logos.html" $ }} - {{ end }} - - {{ if and (not .disabled) (eq .fragment "footer") }} - {{ partial "fragments/footer.html" $ }} - {{ end }} - - {{ end }} - {{ end }} - - {{ partial "footer.html" . }} - - {{ partial "js.html" . }} - - - diff --git a/layouts/partials/fragments/buttons.html b/layouts/partials/fragments/buttons.html index 5a2908d8..ea35b659 100644 --- a/layouts/partials/fragments/buttons.html +++ b/layouts/partials/fragments/buttons.html @@ -1,13 +1,13 @@ -{{ $data := ($.Scratch.Get "data") }} +{{ $buttons := .self.Params }} {{ "" | safeHTML }} -{{ $bg := $data.background | default "white" }} +{{ $bg := $buttons.background | default "white" }} -
+
- {{ with $data.title }} + {{ with $buttons.title }}
{{ end }} - {{ with $data.subtitle }} + {{ with $buttons.subtitle }}
{{ end }}
- {{ range $data.buttons }} + {{ range $buttons.buttons }} " | safeHTML }} -{{ $bg := $data.background | default "secondary" }} +{{ $bg := $contact.background | default "secondary" }} -