sanskrit-documentation-theme 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +79 -0
  3. data/_includes/archive.html +15 -0
  4. data/_includes/callout.html +1 -0
  5. data/_includes/disqus.html +17 -0
  6. data/_includes/feedback.html +13 -0
  7. data/_includes/footer.html +9 -0
  8. data/_includes/functions/recursive_item_to_list.html +29 -0
  9. data/_includes/google_analytics.html +6 -0
  10. data/_includes/head.html +45 -0
  11. data/_includes/head_print.html +28 -0
  12. data/_includes/image.html +1 -0
  13. data/_includes/important.html +1 -0
  14. data/_includes/initialize_shuffle.html +130 -0
  15. data/_includes/inline_image.html +1 -0
  16. data/_includes/note.html +1 -0
  17. data/_includes/sidebar.html +16 -0
  18. data/_includes/taglogic.html +32 -0
  19. data/_includes/tip.html +1 -0
  20. data/_includes/toc.html +38 -0
  21. data/_includes/topnav.html +62 -0
  22. data/_includes/warning.html +1 -0
  23. data/_layouts/default.html +121 -0
  24. data/_layouts/default_print.html +25 -0
  25. data/_layouts/none.html +3 -0
  26. data/_layouts/page.html +68 -0
  27. data/_layouts/page_print.html +15 -0
  28. data/_layouts/post.html +39 -0
  29. data/assets/blog/archive.html +33 -0
  30. data/assets/blog/index.html +28 -0
  31. data/assets/css/boxshadowproperties.css +24 -0
  32. data/assets/css/class-styles-general.css +281 -0
  33. data/assets/css/device-specific.css +92 -0
  34. data/assets/css/element-styles-general.css +229 -0
  35. data/assets/css/font-awesome.min.css +4 -0
  36. data/assets/css/fonts.css +13 -0
  37. data/assets/css/modern-business.css +89 -0
  38. data/assets/css/navbar-toc.css +203 -0
  39. data/assets/css/printstyles.css +159 -0
  40. data/assets/css/theme-blue.css +121 -0
  41. data/assets/feed.xml +32 -0
  42. data/assets/fonts/FontAwesome.otf +0 -0
  43. data/assets/fonts/fontawesome-webfont.eot +0 -0
  44. data/assets/fonts/fontawesome-webfont.svg +520 -0
  45. data/assets/fonts/fontawesome-webfont.ttf +0 -0
  46. data/assets/fonts/fontawesome-webfont.woff +0 -0
  47. data/assets/fonts/glyphicons-halflings-regular.eot +0 -0
  48. data/assets/fonts/glyphicons-halflings-regular.svg +288 -0
  49. data/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
  50. data/assets/fonts/glyphicons-halflings-regular.woff +0 -0
  51. data/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
  52. data/assets/google-us.md +12 -0
  53. data/assets/images/company_logo_big.png +0 -0
  54. data/assets/images/favicon.ico +0 -0
  55. data/assets/js/customscripts.js +54 -0
  56. data/assets/js/jekyll-search.js +1 -0
  57. data/assets/js/jquery.ba-throttle-debounce.min.js +9 -0
  58. data/assets/js/jquery.navgoco.min.js +8 -0
  59. data/assets/js/jquery.shuffle.min.js +1588 -0
  60. data/assets/js/toc.js +73 -0
  61. data/assets/search.json +33 -0
  62. data/licenses/LICENSE-BSD-NAVGOCO.txt +27 -0
  63. data/licenses/LICENSE-CONTENT.md +3 -0
  64. data/licenses/LICENSE-MIT-DOC-THEME-THOLT.txt +21 -0
  65. data/licenses/LICENSE-MIT-SANSKRIT-DOC-THEME.txt +21 -0
  66. metadata +193 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 9e9e0091a13e1a1ee3da1aa6d7729feae6cc718bedb179037d7a1b866ef9b968
4
+ data.tar.gz: 37cab6369fdcead5f98524c94605cb12c17672fa6d290e6afbac2f1b79895ce0
5
+ SHA512:
6
+ metadata.gz: ca65737c84ea6832754ae559e5377a5c309c0bc99e3768c8c92cfce655de9619459d94f4324b8f93d0887c4759d2d53eaaa8897320106d22744c6a9c360b77e4
7
+ data.tar.gz: bbc6f3be33dd9e74ea6cc62992caaebfdf6ec9c86825ebcfcf5ce96240ef91d74b34b0e3712060ff4d408931813e82ff85e7b8a7c72a75d635d400ebc27fb531
data/README.md ADDED
@@ -0,0 +1,79 @@
1
+ ---
2
+ title: Sanskrit documentation theme- README
3
+ tags: [getting_started]
4
+ ---
5
+
6
+ ## Intro
7
+
8
+ This is the "Sanskrit" collaborative documentation theme for use with the Jekyll static website generator.
9
+
10
+ Some notable things you get with this theme (in decreasing order of interest):
11
+ - A collapsible "accordion" sidebar
12
+ - A collapsible "accordion" table-of-contents for each page.
13
+ - A layout which automatically
14
+ - An "Edit me" link on top of each page.
15
+ - Search engine optimization and webmaster stuff - which you would use with various search engines.
16
+ - Google custom search configuration
17
+ - Disqus for comments.
18
+ - Google analytics configuration
19
+ - Special formatting consideration for fonts which need to be displayed bigger (eg: Devanagari for sanskrit.)
20
+ - the usual Jekyll blog.
21
+ - Post tag support
22
+
23
+ To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
24
+
25
+ ### Screenshots and examples
26
+ - See this test site: <https://sanskrit-coders.github.io/sanskrit-documentation-theme/>!
27
+
28
+ [![Screenshot 1](https://i.imgur.com/2ggUjKK.png)](https://i.imgur.com/2ggUjKK.png){:target="_blank"}
29
+
30
+ ## Installation
31
+ ### Direct method
32
+ - Add this line to your Jekyll site's `Gemfile`:
33
+ ```ruby
34
+ gem "sanskrit-documentation-theme"
35
+ ```
36
+ - And add this line to your Jekyll site's `_config.yml`:
37
+ ```yaml
38
+ theme: sanskrit-documentation-theme
39
+ ```
40
+ - And then execute `bundle` Or install it yourself as: `gem install sanskrit-documentation-theme`
41
+
42
+ ### Remote theme method
43
+ - Add this line to your Jekyll site's `_config.yml`:
44
+ `remote_theme: sanskrit-coders/sanskrit-documentation-theme`
45
+
46
+ ## Usage
47
+
48
+ Take a look at this very repository for an example! In particular, note the files that you would need to add / modify as needed:
49
+ - the `_config.yml` file.
50
+ - The _data/home_sidebar.yml file, which defines the contents of the sidebar/ dropdown menu you see for each page.
51
+ - The 404.md file, which defines how the "Page Not Found" results look like.
52
+ - Gemfile (just make a copy)
53
+
54
+ ### Search / webmaster tips
55
+ - assets/sitemap.xml can be submitted.
56
+
57
+
58
+ ## Contributing
59
+
60
+ Bug reports and pull requests are welcome on GitHub. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
61
+
62
+ ## Development
63
+ To set up your environment to develop this theme, run `bundle install`.
64
+
65
+ Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
66
+
67
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
68
+ To add a custom directory to your theme-gem, please edit the regexp in `sanskrit-documentation-theme.gemspec` accordingly.
69
+
70
+ ### Publishing to RubyGems.org
71
+ - Update `sanskrit-documentation-theme.gemspec`
72
+ - `gem build *.gemspec`
73
+ - `gem push *.gem`
74
+
75
+ ## License and acknowledgement
76
+ We fork off the [tomjoht/documentation-theme-jekyll](http://github.com/tomjoht/documentation-theme-jekyll) theme.
77
+
78
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
79
+
@@ -0,0 +1,15 @@
1
+ ---
2
+ layout: default
3
+ type: archive
4
+ ---
5
+
6
+ <div class="post-header">
7
+ <h1 class="post-title-main">{{ page.title }}</h1>
8
+ </div>
9
+ <div class="post-content">
10
+
11
+ {{ content }}
12
+ </div>
13
+
14
+
15
+
@@ -0,0 +1 @@
1
+ <div markdown="span" class="bs-callout bs-callout-{{include.type}}">{{include.content}}</div>
@@ -0,0 +1,17 @@
1
+ {% if site.disqus_shortname %}
2
+
3
+ <div id="disqus_thread"></div>
4
+ <script type="text/javascript">
5
+ /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
6
+ var disqus_shortname = '{{site.disqus_shortname}}'; // required: replace example with your forum shortname
7
+
8
+ /* * * DON'T EDIT BELOW THIS LINE * * */
9
+ (function() {
10
+ var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
11
+ dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
12
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
13
+ })();
14
+ </script>
15
+ <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
16
+
17
+ {% endif %}
@@ -0,0 +1,13 @@
1
+ <li>
2
+ {% if site.feedback_text %}
3
+ {% assign feedback_text = site.feedback_text %}
4
+ {% else %}
5
+ {% assign feedback_text = "Feedback" %}
6
+ {% endif %}
7
+
8
+ {% if site.feedback_link %}
9
+ <a class="email" title="Submit feedback" href="{{site.feedback_link}}">{{feedback_text}}</a>
10
+ {% else %}
11
+ <a class="email" title="Submit feedback" href="#" onclick="javascript:window.location='mailto:{{site.feedback_email}}?subject={{site.feedback_subject_line}} feedback&body=I have some feedback about the {{page.title}} page: ' + window.location.href;"><i class="fa fa-envelope-o"></i> {{feedback_text}}</a>
12
+ {% endif %}
13
+ </li>
@@ -0,0 +1,9 @@
1
+ <footer>
2
+ <div class="row">
3
+ <div class="col-lg-12 footer">
4
+ &copy;{{ site.time | date: "%Y" }} {{site.company_name}}. <a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/80x15.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.<br />
5
+ {% if page.last_updated %}<span>Page last updated:</span> {{page.last_updated}}<br/>{% endif %} Site last generated: {{ site.time | date: "%b %-d, %Y" }} <br />
6
+ <p><img src="{{site.baseurl | append: "/assets/images/company_logo_big.png"}}" alt="Logo"/ height="42" width="42"></p>
7
+ </div>
8
+ </div>
9
+ </footer>
@@ -0,0 +1,29 @@
1
+ {% comment %}
2
+ This is a function to turn YML sidebar definitions into HTML lists.
3
+ Based on tip in http://hamishwillee.github.io/2014/11/13/jekyll-includes-are-functions/
4
+ {% endcomment %}
5
+
6
+ {% if include.item.contents %}
7
+ {% assign currentLevel = include.level | plus: 0 %}
8
+ {% assign nextLevel = include.level | plus: 1 %}
9
+ {% if currentLevel < 10 %}
10
+ <li>
11
+ <a href="#">{{ include.item.title }}</a>
12
+ <ul>
13
+ {% for subitem in include.item.contents %}
14
+ {% include /functions/recursive_item_to_list.html item=subitem level=nextLevel %}
15
+ {% endfor %}
16
+ </ul>
17
+ </li>
18
+ {% endif %} {% comment %}if currentLevel < 10 {% endcomment %}
19
+ {% else %}
20
+ {% assign item_url_stripped = (include.item.url | remove: "index.html" %}
21
+ {% if include.item.url contains "http://" %}
22
+ <li><a href="{{include.item.url}}" target="_blank">{{include.item.title}}</a></li>
23
+ {% elsif page.url == item_url_stripped %}
24
+ <li class="active"><a href="{{include.item.url | prepend: site.baseurl}}">{{include.item.title}}</a></li>
25
+ {% else %}
26
+ <li><a href="{{include.item.url | prepend: site.baseurl}}">{{include.item.title}}</a></li>
27
+ {% endif %}
28
+ {% endif %}
29
+
@@ -0,0 +1,6 @@
1
+ <!-- the google_analytics_id gets auto inserted from the config file -->
2
+
3
+ {% if site.google_analytics %}
4
+
5
+ <script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create','{{site.google_analytics}}','auto');ga('require','displayfeatures');ga('send','pageview');</script>
6
+ {% endif %}
@@ -0,0 +1,45 @@
1
+ <meta charset="utf-8">
2
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
3
+ <meta name="viewport" content="width=device-width, initial-scale=1">
4
+ <meta name="description" content="{% if page.summary %}{{ page.summary | strip_html | strip_newlines | truncate: 160 }}{% endif %}">
5
+ <meta name="keywords" content="{{page.tags}}{% if page.tags %}, {% endif %} {{page.keywords}}">
6
+ <title>{{ page.title }} | {{ site.site_title }}</title>
7
+
8
+ <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
9
+ <link rel="stylesheet" href="{{site.baseurl | append: "/assets/css/modern-business.css"}}">
10
+ <!-- Latest compiled and minified CSS -->
11
+ <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
12
+ <link rel="stylesheet" href="{{site.baseurl | append: "/assets/css/fonts.css"}}">
13
+ <link rel="stylesheet" href="{{site.baseurl | append: "/assets/css/element-styles-general.css"}}">
14
+ <link rel="stylesheet" href="{{site.baseurl | append: "/assets/css/class-styles-general.css"}}">
15
+ <link rel="stylesheet" href="{{site.baseurl | append: "/assets/css/device-specific.css"}}">
16
+ <link rel="stylesheet" href="{{site.baseurl | append: "/assets/css/navbar-toc.css"}}">
17
+ <link rel="stylesheet" href="{{site.baseurl | append: "/assets/css/boxshadowproperties.css"}}">
18
+ <!-- most color styles are extracted out to here -->
19
+ <link rel="stylesheet" href="{{site.baseurl | append: "/assets/css/theme-blue.css"}}">
20
+
21
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
22
+
23
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
24
+ <script src="{{ site.baseurl | append: "/assets/js/jquery.navgoco.min.js" }}"></script>
25
+
26
+
27
+ <!-- Latest compiled and minified JavaScript -->
28
+ <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
29
+ <!-- Anchor.js -->
30
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/2.0.0/anchor.min.js"></script>
31
+ <script src="{{ site.baseurl | append: "/assets/js/toc.js" }}"></script>
32
+ <script src="{{ site.baseurl | append: "/assets/js/customscripts.js" }}"></script>
33
+
34
+ <link rel="shortcut icon" href="{{ site.baseurl | append: "/assets/images/favicon.ico" }}">
35
+
36
+ <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
37
+ <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
38
+ <!--[if lt IE 9]>
39
+ <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
40
+ <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
41
+ <![endif]-->
42
+ {{site.google_webmaster_verification_tag}}
43
+ <script type="text/javascript"
44
+ src="https://cdn.rawgit.com/mathjax/MathJax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
45
+ </script>
@@ -0,0 +1,28 @@
1
+ <meta charset="utf-8">
2
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
3
+ <meta name="viewport" content="width=device-width, initial-scale=1">
4
+ <meta name="description" content="{% if page.summary %}{{ page.summary | strip_html | strip_newlines | truncate: 160 }}{% endif %}">
5
+ <meta name="keywords" content="{{page.tags}}{% if page.tags %}, {% endif %} {{page.keywords}}">
6
+ <title>{% if page.homepage == true %} {{site.homepage_title}} {% elsif page.title %}{{ page.title }}{% endif %} | {{ site.site_title }}</title>
7
+
8
+
9
+ <link rel="stylesheet" href="{{ "/css/syntax.css" | prepend: site.baseurl | prepend: site.url }}">
10
+ <link rel="stylesheet" href="{{ "/css/font-awesome.min.css" | prepend: site.baseurl | prepend: site.url }}">
11
+ <link rel="stylesheet" href="{{ "/css/bootstrap.min.css" | prepend: site.baseurl | prepend: site.url }}">
12
+ <link rel="stylesheet" href="{{ "/css/modern-business.css" | prepend: site.baseurl | prepend: site.url }}">
13
+ <link rel="stylesheet" href="{{ "/css/customstyles.css" | prepend: site.baseurl | prepend: site.url }}">
14
+ <link rel="stylesheet" href="{{ "/css/theme-blue.css" | prepend: site.baseurl | prepend: site.url }}">
15
+ <link rel="stylesheet" href="{{ "/css/syntax.css" | prepend: site.baseurl | prepend: site.url }}">
16
+ <link rel="stylesheet" href="{{ "/css/printstyles.css" | prepend: site.baseurl }}">
17
+
18
+ <script>
19
+ Prince.addScriptFunc("datestamp", function() {
20
+ return "PDF last generated: {{ site.time | date: '%B %d, %Y' }}";
21
+ });
22
+ </script>
23
+
24
+ <script>
25
+ Prince.addScriptFunc("guideName", function() {
26
+ return "{{site.print_title}} User Guide";
27
+ });
28
+ </script>
@@ -0,0 +1 @@
1
+ <figure>{% if {{include.url}} %}<a class="no_icon" target="_blank" href="{{include.url}}">{% endif %}<img class="docimage" src="/images/{{include.file}}" alt="{{include.alt}}" {% if {{include.max-width}} %}style="max-width: {{include.max-width}}px"{% endif %} />{% if {{include.url}} %}</a>{% endif %}{% if {{include.caption}} %}<figcaption>{{include.caption}}</figcaption>{% endif %}</figure>
@@ -0,0 +1 @@
1
+ <div markdown="span" class="alert alert-warning" role="alert"><i class="fa fa-warning"></i> <b>Important:</b> {{include.content}}</div>
@@ -0,0 +1,130 @@
1
+ <script type="text/javascript">
2
+ $(document).ready(function() {
3
+ $('#toc').toc({ minimumHeaders: 0, listType: 'ul', showSpeed: 0, headers: 'h2,h3,h4' });
4
+ });
5
+
6
+ </script>
7
+ <!-- shuffle -->
8
+ <script>
9
+ var shuffleme = (function( $ ) {
10
+ 'use strict';
11
+
12
+ var $grid = $('#grid'),
13
+ $filterOptions = $('.filter-options'),
14
+ $sizer = $grid.find('.shuffle_sizer'),
15
+
16
+ init = function() {
17
+
18
+ // None of these need to be executed synchronously
19
+ setTimeout(function() {
20
+ listen();
21
+ setupFilters();
22
+ }, 100);
23
+
24
+ // instantiate the plugin
25
+ $grid.shuffle({
26
+ itemSelector: '[class*="col-"]',
27
+ sizer: $sizer
28
+ });
29
+ },
30
+
31
+ // Set up button clicks
32
+ setupFilters = function() {
33
+ var $btns = $filterOptions.children();
34
+ $btns.on('click', function() {
35
+ var $this = $(this),
36
+ isActive = $this.hasClass( 'active' ),
37
+ group = isActive ? 'all' : $this.data('group');
38
+
39
+ // Hide current label, show current label in title
40
+ if ( !isActive ) {
41
+ $('.filter-options .active').removeClass('active');
42
+ }
43
+
44
+ $this.toggleClass('active');
45
+
46
+ // Filter elements
47
+ $grid.shuffle( 'shuffle', group );
48
+ });
49
+
50
+ $btns = null;
51
+ },
52
+
53
+ // Re layout shuffle when images load. This is only needed
54
+ // below 768 pixels because the .picture-item height is auto and therefore
55
+ // the height of the picture-item is dependent on the image
56
+ // I recommend using imagesloaded to determine when an image is loaded
57
+ // but that doesn't support IE7
58
+ listen = function() {
59
+ var debouncedLayout = $.throttle( 300, function() {
60
+ $grid.shuffle('update');
61
+ });
62
+
63
+ // Get all images inside shuffle
64
+ $grid.find('img').each(function() {
65
+ var proxyImage;
66
+
67
+ // Image already loaded
68
+ if ( this.complete && this.naturalWidth !== undefined ) {
69
+ return;
70
+ }
71
+
72
+ // If none of the checks above matched, simulate loading on detached element.
73
+ proxyImage = new Image();
74
+ $( proxyImage ).on('load', function() {
75
+ $(this).off('load');
76
+ debouncedLayout();
77
+ });
78
+
79
+ proxyImage.src = this.src;
80
+ });
81
+
82
+ // Because this method doesn't seem to be perfect.
83
+ setTimeout(function() {
84
+ debouncedLayout();
85
+ }, 500);
86
+ };
87
+
88
+ return {
89
+ init: init
90
+ };
91
+ }( jQuery ));
92
+
93
+
94
+
95
+ $(document).ready(function() {
96
+ shuffleme.init();
97
+ });
98
+
99
+ </script>
100
+
101
+ <!-- new attempt-->
102
+
103
+ <script>
104
+ $(document).ready(function() {
105
+
106
+ /* initialize shuffle plugin */
107
+ var $grid = $('#grid');
108
+
109
+ $grid.shuffle({
110
+ itemSelector: '.item' // the selector for the items in the grid
111
+ });
112
+
113
+ });</script>
114
+
115
+ <script>
116
+ $('#filter a').click(function (e) {
117
+ e.preventDefault();
118
+
119
+ // set active class
120
+ $('#filter a').removeClass('active');
121
+ $(this).addClass('active');
122
+
123
+ // get group name from clicked item
124
+ var groupName = $(this).attr('data-group');
125
+
126
+ // reshuffle grid
127
+ $grid.shuffle('shuffle', groupName );
128
+ });</script>
129
+
130
+
@@ -0,0 +1 @@
1
+ <img class="inline" src="{{ site.baseurl | append: "/images/{{include.file}}"}}" alt="{{include.alt}}" />
@@ -0,0 +1 @@
1
+ <div markdown="span" class="alert alert-info" role="alert"><i class="fa fa-info-circle"></i> <b>Note:</b> {{include.content}}</div>
@@ -0,0 +1,16 @@
1
+ {% assign item = site.data.sidebars[page.sidebar] %}
2
+
3
+ <ul id="displayed_sidebar" class="nav">
4
+ <li class="sidebarTitle">{{item.title}}</li>
5
+ {% for subitem in item.contents %}
6
+ {% include /functions/recursive_item_to_list.html item=subitem level=1 %}
7
+ {% endfor %}
8
+ {% comment %} if you aren't using the accordion, uncomment this block:
9
+ <p class="external">
10
+ <a href="#" id="collapseAll">Collapse All</a> | <a href="#" id="expandAll">Expand All</a>
11
+ </p>
12
+ {% endcomment %}
13
+ </ul>
14
+
15
+ <!-- this highlights the active parent class in the navgoco sidebar. this is critical so that the parent expands when you're viewing a page. This must appear below the sidebar code above. Otherwise, if placed inside customscripts.js, the script runs before the sidebar code runs and the class never gets inserted.-->
16
+ <script>$("li.active").parents('li').toggleClass("active");</script>
@@ -0,0 +1,32 @@
1
+ <p>The following pages and posts are tagged with <button type="button" style="cursor: default" class="btn btn-default navbar-btn">{{page.tagName}}</button></p>
2
+ <table><thead><tr><th>Title</th><th>Type</th><th>Excerpt</th></tr></thead>
3
+ <tbody>
4
+ {% assign thisTag = page.tagName %}
5
+ {% for page in site.pages %}
6
+ {% for tag in page.tags %}
7
+ {% if tag == thisTag %}
8
+
9
+ <tr><td><a href="{{site.baseurl}}{{ page.url }}">{{page.title}}</a></td>
10
+ <td><span class="label label-default">Page</span></td>
11
+ <td>{% if page.summary %} {{ page.summary | strip_html | strip_newlines | truncate: 160 }} {% else %} {{ page.content | truncatewords: 50 | strip_html }} {% endif %}</td>
12
+ </tr>
13
+ {% endif %}
14
+ {% endfor %}
15
+ {% endfor %}
16
+
17
+ {% assign thisTag = page.tagName %}
18
+ {% for post in site.posts %}
19
+ {% for tag in post.tags %}
20
+ {% if tag == thisTag %}
21
+
22
+ <tr><td><a href="{{site.baseurl}}{{ post.url }}">{{post.title}}</a></td>
23
+ <td><span class="label label-primary">Post</span></td>
24
+ <td>{% if post.summary %} {{ post.summary | strip_html | strip_newlines | truncate: 160 }} {% else %} {{ post.content | truncatewords: 50 | strip_html }} {% endif %}</td>
25
+ </tr>
26
+ {% endif %}
27
+ {% endfor %}
28
+ {% endfor %}
29
+
30
+ </tbody>
31
+ </table>
32
+