Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/okkur/syna.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMahdi Pourismaiel <mpourismaiel@gmail.com>2020-08-04 04:40:58 +0300
committerMahdi Pourismaiel <mpourismaiel@gmail.com>2020-08-04 04:40:58 +0300
commit610832d9a608f4d675b2f3300f4e72a78ee90788 (patch)
tree3e0c62e09066703bb204adbf2cedf6bd00cece04
parent9715b732da858191d9c3bd2bc71dc0c0ffb5924b (diff)
Add tests in fragment fallthrough dev page for hide variable
-rw-r--r--exampleSite/content/dev/fragment-fallthrough/_global/config.md9
-rw-r--r--exampleSite/content/dev/fragment-fallthrough/_global/hidden.md5
-rw-r--r--exampleSite/content/dev/fragment-fallthrough/_index/config.md4
-rw-r--r--exampleSite/content/dev/fragment-fallthrough/_index/content.md2
-rw-r--r--exampleSite/content/dev/fragment-fallthrough/_index/hidden.md6
5 files changed, 25 insertions, 1 deletions
diff --git a/exampleSite/content/dev/fragment-fallthrough/_global/config.md b/exampleSite/content/dev/fragment-fallthrough/_global/config.md
new file mode 100644
index 00000000..a54b7181
--- /dev/null
+++ b/exampleSite/content/dev/fragment-fallthrough/_global/config.md
@@ -0,0 +1,9 @@
++++
+fragment = "config"
+
+[[config]]
+ type = "js"
+ html = """<script>
+ document.querySelector("#content .title-container h2").style.color = "red";
+</script>"""
++++
diff --git a/exampleSite/content/dev/fragment-fallthrough/_global/hidden.md b/exampleSite/content/dev/fragment-fallthrough/_global/hidden.md
new file mode 100644
index 00000000..f1f9857d
--- /dev/null
+++ b/exampleSite/content/dev/fragment-fallthrough/_global/hidden.md
@@ -0,0 +1,5 @@
++++
+fragment = "content"
+weight = 110
+title = "If you're seeing this, hide and fallthrough don't work"
++++
diff --git a/exampleSite/content/dev/fragment-fallthrough/_index/config.md b/exampleSite/content/dev/fragment-fallthrough/_index/config.md
new file mode 100644
index 00000000..70b94df7
--- /dev/null
+++ b/exampleSite/content/dev/fragment-fallthrough/_index/config.md
@@ -0,0 +1,4 @@
++++
+fragment = "config"
+hide = true
++++
diff --git a/exampleSite/content/dev/fragment-fallthrough/_index/content.md b/exampleSite/content/dev/fragment-fallthrough/_index/content.md
index 71b53c33..16e48994 100644
--- a/exampleSite/content/dev/fragment-fallthrough/_index/content.md
+++ b/exampleSite/content/dev/fragment-fallthrough/_index/content.md
@@ -1,7 +1,7 @@
+++
fragment = "content"
weight = 100
-title = "Content fragment from Page"
+title = "Content fragment from Page, this text should be black"
+++
This is loaded from the page, overriding the globals of current section. Seems
diff --git a/exampleSite/content/dev/fragment-fallthrough/_index/hidden.md b/exampleSite/content/dev/fragment-fallthrough/_index/hidden.md
new file mode 100644
index 00000000..391713bb
--- /dev/null
+++ b/exampleSite/content/dev/fragment-fallthrough/_index/hidden.md
@@ -0,0 +1,6 @@
++++
+fragment = "content"
+weight = 110
+title = "If you're seeing this, hide doesn't work"
+hide = true
++++