summaryrefslogtreecommitdiff
path: root/backend/ikistrap/example
diff options
context:
space:
mode:
authorKarl Semich <0xloem@gmail.com>2016-08-27 04:31:52 -0400
committerKarl Semich <0xloem@gmail.com>2016-08-27 04:31:52 -0400
commit6945074c2c496a89665f559d431cf22602199937 (patch)
treedd76fa29e557aaaaf11a40d5595a22a996533f41 /backend/ikistrap/example
parent227d6118cf72cf9333ac2488b76633f346e59425 (diff)
downloadstandingwithresilience-6945074c2c496a89665f559d431cf22602199937.tar.gz
standingwithresilience-6945074c2c496a89665f559d431cf22602199937.zip
Added ikistrap template
Diffstat (limited to 'backend/ikistrap/example')
-rw-r--r--backend/ikistrap/example/Anemones.jpgbin0 -> 87323 bytes
-rw-r--r--backend/ikistrap/example/Bootstrap_features.mdwn136
-rw-r--r--backend/ikistrap/example/Calendars.mdwn10
-rw-r--r--backend/ikistrap/example/Comments.mdwn3
-rw-r--r--backend/ikistrap/example/Comments/comment_1._comment9
-rw-r--r--backend/ikistrap/example/Comments/comment_2._comment9
-rw-r--r--backend/ikistrap/example/Inline_pages.mdwn9
-rw-r--r--backend/ikistrap/example/Lemonshark.jpgbin0 -> 31256 bytes
-rw-r--r--backend/ikistrap/example/Sea_Star.jpgbin0 -> 143211 bytes
-rw-r--r--backend/ikistrap/example/index.mdwn24
-rw-r--r--backend/ikistrap/example/inlinetest.mdwn1
-rw-r--r--backend/ikistrap/example/sample_text/Donec_dapibus.mdwn1
-rw-r--r--backend/ikistrap/example/sample_text/Donec_semper.mdwn1
-rw-r--r--backend/ikistrap/example/sample_text/Lorem_ipsum.mdwn4
-rw-r--r--backend/ikistrap/example/sample_text/Nulla_facilisi.mdwn2
-rw-r--r--backend/ikistrap/example/sample_text/Sed_eget.mdwn1
-rw-r--r--backend/ikistrap/example/sidebar.mdwn9
17 files changed, 219 insertions, 0 deletions
diff --git a/backend/ikistrap/example/Anemones.jpg b/backend/ikistrap/example/Anemones.jpg
new file mode 100644
index 0000000..7151241
--- /dev/null
+++ b/backend/ikistrap/example/Anemones.jpg
Binary files differ
diff --git a/backend/ikistrap/example/Bootstrap_features.mdwn b/backend/ikistrap/example/Bootstrap_features.mdwn
new file mode 100644
index 0000000..12c3a08
--- /dev/null
+++ b/backend/ikistrap/example/Bootstrap_features.mdwn
@@ -0,0 +1,136 @@
+# Bootstrap features
+
+This page will contain a display of various features from Bootstrap.
+They require some manual HTML tags.
+Note that not all Markdown parsers allow Markdown markup inside all HTML tags.
+In the case of ikiwiki, adding `markdown="1"` to `div` elements usually allows markup to be used inside them.
+For a full list of features provided by Bootstrap 4, go to <http://v4-alpha.getbootstrap.com/getting-started/introduction/>.
+
+<div class="jumbotron" markdown="1">
+## Jumbotron
+
+It's big and in your face.
+
+---
+
+You can still use Markdown syntax inside HTML blocks, if you are careful.
+
+<a class="btn btn-primary btn-large" href="#">Button</a>
+</div>
+
+## Labels <span class="label label-info">Hi!</span>
+
+Span elements work inside Markdown headings.
+
+<div class="card card-block" markdown="1">
+## Cards
+
+Put a border with soft round corners around your content.
+</div>
+
+
+## Card decks
+
+These require some more work.
+You can use the `\[[!img]]` directive, but make sure to add `class="card-img-top"` or `class="card-img-bottom"` where appropriate.
+For images in cards to work properly, they need to have their width forced to 100% of their container.
+This is done in the `style.css` file that comes with ikistrap.
+
+Another issue is that due to all the nested HTML tags, even with `markdown="1"`, Markdown markup does not get parsed anymore.
+
+<div class="card-deck">
+<div class="card-deck-wrapper">
+<div class="card">
+[[!img Lemonshark.jpg alt="Lemon shark" class="card-img-top"]]
+<div class="card-block">
+<p class="card-text">
+A lemon shark and his little friends are out for a swim.
+</p>
+<p><a href="#" class="btn btn-danger">Escape</a></p>
+</div>
+</div>
+<div class="card">
+[[!img Anemones.jpg alt="Anemones" class="card-img-top"]]
+<div class="card-block">
+<p class="card-text">
+Anemones look really nice and are much less dangerous than lemon sharks.
+</p>
+<p><a href="#" class="btn btn-success">Admire</a></p>
+</div>
+</div>
+<div class="card">
+[[!img Sea_Star.jpg alt="Sea star" class="card-img-top"]]
+<div class="card-block">
+<p class="card-text">
+Sea stars are also less dangerous than lemon sharks, but they are slightly more dangerous than
+anemones, <em>especially</em> when stepped on.
+</p>
+<p><a href="#" class="btn btn-warning">Sidestep</a></p>
+</div>
+</div>
+</div>
+</div>
+
+## Card columns
+
+These can be created by writing the outer card-columns `div` elements yourself,
+and using `\[[!inline]]` with `template="simplecard"` to generate the cards.
+
+<div class="card-columns">
+[[!inline pages="sample_text/* and !*/Discussion" template="simplecard" feeds="no"]]
+</div>
+
+
+## Carousel
+
+These can be created by writing the outer two carousel `div` elements yourself,
+and using `\[[!inline]]` with `template="carouselpage"` to generate the carousel items.
+
+<p>
+<div id="carousel-example-pages" class="carousel slide" data-ride="carousel">
+<ol class="carousel-indicators"></ol>
+<div class="carousel-inner" role="listbox">
+[[!inline pages="sample_text/* and !*/Discussion" template="carouselpage" feeds="no"]]
+</div>
+<a class="left carousel-control" href="#carousel-example-pages" role="button" data-slide="prev">
+<span class="icon-prev" aria-hidden="true"></span>
+<span class="sr-only">Previous</span>
+</a>
+<a class="right carousel-control" href="#carousel-example-pages" role="button" data-slide="next">
+<span class="icon-next" aria-hidden="true"></span>
+<span class="sr-only">Next</span>
+</a>
+</div>
+</p>
+
+If you only want to show images, use `template="carouselimage"`, and select your images directly with the `pages` parameter.
+
+<p>
+<div id="carousel-example-images" class="carousel slide" data-ride="carousel">
+<div class="carousel-inner" role="listbox">
+[[!inline pages="*.jpg" template="carouselimage" feeds="no"]]
+</div>
+<a class="left carousel-control" href="#carousel-example-images" role="button" data-slide="prev">
+<span class="icon-prev" aria-hidden="true"></span>
+<span class="sr-only">Previous</span>
+</a>
+<a class="right carousel-control" href="#carousel-example-images" role="button" data-slide="next">
+<span class="icon-next" aria-hidden="true"></span>
+<span class="sr-only">Next</span>
+</a>
+</div>
+</p>
+
+## Progress bars
+
+Ikistrap also provides a progress directive which works in the same way as the progress plugin,
+but it also allows an extra class to be specified to change the style per bar.
+
+[[!progress totalpages="* and !*/Discussion" donepages="*/Discussion"]]
+[[!progress percent="33%"]]
+[[!progress percent="66%" class="progress-success progress-striped"]]
+
+## Other stuff
+
+Goes here.
+
diff --git a/backend/ikistrap/example/Calendars.mdwn b/backend/ikistrap/example/Calendars.mdwn
new file mode 100644
index 0000000..5d8e152
--- /dev/null
+++ b/backend/ikistrap/example/Calendars.mdwn
@@ -0,0 +1,10 @@
+# Calendar
+
+This is an example of the ikiwiki calendar function.
+Here is a monthly calendar:
+
+[[!calendar type="month"]]
+
+And this is a yearly calendar:
+
+[[!calendar type="year"]]
diff --git a/backend/ikistrap/example/Comments.mdwn b/backend/ikistrap/example/Comments.mdwn
new file mode 100644
index 0000000..24cc744
--- /dev/null
+++ b/backend/ikistrap/example/Comments.mdwn
@@ -0,0 +1,3 @@
+# Comments
+
+This is an example of a page where comments are allowed.
diff --git a/backend/ikistrap/example/Comments/comment_1._comment b/backend/ikistrap/example/Comments/comment_1._comment
new file mode 100644
index 0000000..ab9901d
--- /dev/null
+++ b/backend/ikistrap/example/Comments/comment_1._comment
@@ -0,0 +1,9 @@
+[[!comment format=mdwn
+username="Anonymous Coward"
+subject="Indeed"
+date="2009-06-02T19:05:00Z"
+content="""
+Hi, I just want to say that I totally agree with you.
+Have a nice day!
+"""
+]]
diff --git a/backend/ikistrap/example/Comments/comment_2._comment b/backend/ikistrap/example/Comments/comment_2._comment
new file mode 100644
index 0000000..5b29715
--- /dev/null
+++ b/backend/ikistrap/example/Comments/comment_2._comment
@@ -0,0 +1,9 @@
+[[!comment format=mdwn
+username="Pseudonymous Person"
+subject="I am disagree"
+date="2009-06-02T19:05:01Z"
+content="""
+I don't think so. Eggs should neither be capped at the top or at the bottom.
+Symmetry is only attained by slicing it in half in a plane spanned by the line between the top and bottom.
+"""
+]]
diff --git a/backend/ikistrap/example/Inline_pages.mdwn b/backend/ikistrap/example/Inline_pages.mdwn
new file mode 100644
index 0000000..46d540e
--- /dev/null
+++ b/backend/ikistrap/example/Inline_pages.mdwn
@@ -0,0 +1,9 @@
+# Inline pages
+
+Here is an example of inline pages using the default inlining theme:
+
+[[!inline pages="sample_text/* and !*/Discussion" reverse="yes" limit="3"]]
+
+Here is an example of inlining with actions enabled:
+
+[[!inline pages="sample_text/* and !*/Discussion" reverse="yes" skip="3" limit="2" actions="1"]]
diff --git a/backend/ikistrap/example/Lemonshark.jpg b/backend/ikistrap/example/Lemonshark.jpg
new file mode 100644
index 0000000..e568a5b
--- /dev/null
+++ b/backend/ikistrap/example/Lemonshark.jpg
Binary files differ
diff --git a/backend/ikistrap/example/Sea_Star.jpg b/backend/ikistrap/example/Sea_Star.jpg
new file mode 100644
index 0000000..5fb9001
--- /dev/null
+++ b/backend/ikistrap/example/Sea_Star.jpg
Binary files differ
diff --git a/backend/ikistrap/example/index.mdwn b/backend/ikistrap/example/index.mdwn
new file mode 100644
index 0000000..fb9d0c2
--- /dev/null
+++ b/backend/ikistrap/example/index.mdwn
@@ -0,0 +1,24 @@
+# Welcome
+
+This is an example wiki to show off the ikistrap theme.
+Ikistrap tries to provide a fully-featured, modern looking HTML5 theme for ikiwiki.
+It uses Bootstrap 4 and Fonts Awesome.
+
+## Features
+
+Ikistrap has the following features:
+
+* Good use of HTML5 semantic elements.
+* Responsive layout.
+* Standards-compliant.
+* Compatible with text-only browsers.
+* Header supporting parentlinks, wiki actions, search form, language selection and trails.
+* Sidebar styled as a Boostrap 4 card, using the Bootstrap 4 grid system.
+* Footer that is pushed down to the bottom of the screen with tags, backlinks, copyright, license and modification date.
+* [[Inline pages]] that are by default styled as Bootstrap 4 cards.
+* [[Comments]]
+* [[Calendars]]
+
+Note that ikistrap doesn't add any special support for Bootstrap to the Markdown language.
+If you want to make use of [[Bootstrap features]] inside your text, you will have to manually add the appropriate HTML tags.
+
diff --git a/backend/ikistrap/example/inlinetest.mdwn b/backend/ikistrap/example/inlinetest.mdwn
new file mode 100644
index 0000000..95cebf2
--- /dev/null
+++ b/backend/ikistrap/example/inlinetest.mdwn
@@ -0,0 +1 @@
+[[!inline pages="sample_text/*"]]
diff --git a/backend/ikistrap/example/sample_text/Donec_dapibus.mdwn b/backend/ikistrap/example/sample_text/Donec_dapibus.mdwn
new file mode 100644
index 0000000..b995fa6
--- /dev/null
+++ b/backend/ikistrap/example/sample_text/Donec_dapibus.mdwn
@@ -0,0 +1 @@
+Donec dapibus orci sit amet elit. Maecenas rutrum ultrices lectus. Aliquam suscipit, lacus a iaculis adipiscing, eros orci pellentesque nisl, non pharetra dolor urna nec dolor. Integer cursus dolor vel magna. Integer ultrices feugiat sem. Proin nec nibh. Duis eu dui quis nunc sagittis lobortis. Fusce pharetra, enim ut sodales luctus, lectus arcu rhoncus purus, in fringilla augue elit vel lacus. In hac habitasse platea dictumst. Aliquam erat volutpat. Fusce iaculis elit id tellus. Ut accumsan malesuada turpis. Suspendisse potenti. Vestibulum lacus augue, lobortis mattis, laoreet in, varius at, nisi. Nunc gravida. Phasellus faucibus. In hac habitasse platea dictumst. Integer tempor lacus eget lectus. Praesent fringilla augue fringilla dui.
diff --git a/backend/ikistrap/example/sample_text/Donec_semper.mdwn b/backend/ikistrap/example/sample_text/Donec_semper.mdwn
new file mode 100644
index 0000000..bdcb1ab
--- /dev/null
+++ b/backend/ikistrap/example/sample_text/Donec_semper.mdwn
@@ -0,0 +1 @@
+Donec semper, sem nec tristique tempus, justo neque commodo nisl, ut gravida sem tellus suscipit nunc. Aliquam erat volutpat. Ut tincidunt pretium elit. Aliquam pulvinar. Nulla cursus. Suspendisse potenti. Etiam condimentum hendrerit felis. Duis iaculis aliquam enim. Donec dignissim augue vitae orci. Curabitur luctus felis a metus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. In varius neque at enim. Suspendisse massa nulla, viverra in, bibendum vitae, tempor quis, lorem.
diff --git a/backend/ikistrap/example/sample_text/Lorem_ipsum.mdwn b/backend/ikistrap/example/sample_text/Lorem_ipsum.mdwn
new file mode 100644
index 0000000..f0199bc
--- /dev/null
+++ b/backend/ikistrap/example/sample_text/Lorem_ipsum.mdwn
@@ -0,0 +1,4 @@
+[[!meta author="Cicero"]]
+[[!meta date="45 B.C."]]
+
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed at ante. Mauris eleifend, quam a vulputate dictum, massa quam dapibus leo, eget vulputate orci purus ut lorem. In fringilla mi in ligula. Pellentesque aliquam quam vel dolor. Nunc adipiscing. Sed quam odio, tempus ac, aliquam molestie, varius ac, tellus. Vestibulum ut nulla aliquam risus rutrum interdum. Pellentesque lorem. Curabitur sit amet erat quis risus feugiat viverra. Pellentesque augue justo, sagittis et, lacinia at, venenatis non, arcu. Nunc nec libero. In cursus dictum risus. Etiam tristique nisl a nulla. Ut a orci. Curabitur dolor nunc, egestas at, accumsan at, malesuada nec, magna.
diff --git a/backend/ikistrap/example/sample_text/Nulla_facilisi.mdwn b/backend/ikistrap/example/sample_text/Nulla_facilisi.mdwn
new file mode 100644
index 0000000..0e8a0b9
--- /dev/null
+++ b/backend/ikistrap/example/sample_text/Nulla_facilisi.mdwn
@@ -0,0 +1,2 @@
+[[!tag Cicero Latin typesetting]]
+Nulla facilisi. Nunc volutpat. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Ut sit amet orci vel mauris blandit vehicula. Nullam quis enim. Integer dignissim viverra velit. Curabitur in odio. In hac habitasse platea dictumst. Ut consequat, tellus eu volutpat varius, justo orci elementum dolor, sed imperdiet nulla tellus ut diam. Vestibulum ipsum ante, malesuada quis, tempus ac, placerat sit amet, elit.
diff --git a/backend/ikistrap/example/sample_text/Sed_eget.mdwn b/backend/ikistrap/example/sample_text/Sed_eget.mdwn
new file mode 100644
index 0000000..d360de3
--- /dev/null
+++ b/backend/ikistrap/example/sample_text/Sed_eget.mdwn
@@ -0,0 +1 @@
+Sed eget turpis a pede tempor malesuada. Vivamus quis mi at leo pulvinar hendrerit. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Pellentesque aliquet lacus vitae pede. Nullam mollis dolor ac nisi. Phasellus sit amet urna. Praesent pellentesque sapien sed lacus. Donec lacinia odio in odio. In sit amet elit. Maecenas gravida interdum urna. Integer pretium, arcu vitae imperdiet facilisis, elit tellus tempor nisi, vel feugiat ante velit sit amet mauris. Vivamus arcu. Integer pharetra magna ac lacus. Aliquam vitae sapien in nibh vehicula auctor. Suspendisse leo mauris, pulvinar sed, tempor et, consequat ac, lacus. Proin velit. Nulla semper lobortis mauris. Duis urna erat, ornare et, imperdiet eu, suscipit sit amet, massa. Nulla nulla nisi, pellentesque at, egestas quis, fringilla eu, diam.
diff --git a/backend/ikistrap/example/sidebar.mdwn b/backend/ikistrap/example/sidebar.mdwn
new file mode 100644
index 0000000..06f20e8
--- /dev/null
+++ b/backend/ikistrap/example/sidebar.mdwn
@@ -0,0 +1,9 @@
+This is the sidebar.
+
+* [[/index]]
+* [[ikiwiki]]
+* [[sandbox]]
+* [[shortcuts]]
+* [[templates]]
+
+``Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam tortor augue, lacinia eget libero eget, imperdiet scelerisque neque. Nam pretium dui sit amet rhoncus commodo. Sed eget faucibus purus, vel vulputate nulla. Sed accumsan odio ac dui vulputate, non venenatis velit iaculis. Quisque efficitur orci in tellus tincidunt, non maximus nisi finibus. Vestibulum tristique id eros ut dictum. Integer congue euismod metus, at feugiat nunc sagittis quis. Curabitur iaculis mi eget volutpat sodales. Ut nec dui et mi cursus tempor ac et sem. Nulla felis neque, congue tristique ultricies a, vehicula a ante.''