jekyll-bhautiki 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +121 -0
  4. data/_config.yml +149 -0
  5. data/_data/assets.yml +40 -0
  6. data/_data/messages.yml +17 -0
  7. data/_data/sections.yml +19 -0
  8. data/_data/socials.yml +31 -0
  9. data/_includes/footer.html +49 -0
  10. data/_includes/head.html +46 -0
  11. data/_includes/header.html +33 -0
  12. data/_includes/home/overview.html +37 -0
  13. data/_includes/home/title.html +4 -0
  14. data/_includes/navigation.html +37 -0
  15. data/_includes/post/title.html +8 -0
  16. data/_includes/post/toc.html +9 -0
  17. data/_includes/script.html +18 -0
  18. data/_includes/sidebar.html +9 -0
  19. data/_layouts/archive.html +43 -0
  20. data/_layouts/categories.html +32 -0
  21. data/_layouts/default.html +25 -0
  22. data/_layouts/home.html +33 -0
  23. data/_layouts/page.html +11 -0
  24. data/_layouts/post.html +11 -0
  25. data/_sass/common/feather.sass +16 -0
  26. data/_sass/common/image.sass +9 -0
  27. data/_sass/common/mode.sass +123 -0
  28. data/_sass/common/nav.sass +17 -0
  29. data/_sass/common/side.sass +15 -0
  30. data/_sass/common/syntax.sass +12 -0
  31. data/_sass/common/variables.sass +2 -0
  32. data/_sass/layouts/categories.sass +5 -0
  33. data/_sass/layouts/default.sass +10 -0
  34. data/_sass/main.sass +8 -0
  35. data/assets/css/bhautiki.sass +6 -0
  36. data/assets/external/feather-icons/js/feather.min.js +13 -0
  37. data/assets/external/feather-icons/js/feather.min.js.map +1 -0
  38. data/assets/external/foundation-sites/css/foundation.min.css +2 -0
  39. data/assets/external/foundation-sites/css/foundation.min.css.map +1 -0
  40. data/assets/external/foundation-sites/js/foundation.min.js +2 -0
  41. data/assets/external/foundation-sites/js/foundation.min.js.map +1 -0
  42. data/assets/external/img/dark-wood.png +0 -0
  43. data/assets/external/img/stardust.png +0 -0
  44. data/assets/external/img/textured-paper.png +0 -0
  45. data/assets/external/jquery/js/jquery.min.js +2 -0
  46. data/assets/external/mathjax/js/tex-mml-chtml.js +1 -0
  47. data/assets/external/pygments/css/default.css +75 -0
  48. data/assets/external/pygments/css/monokai.css +85 -0
  49. data/assets/external/tocbot/css/tocbot.css +1 -0
  50. data/assets/external/tocbot/js/tocbot.min.js +1 -0
  51. data/assets/img/bhautiki-samay.gif +0 -0
  52. data/assets/img/favicon/android-chrome-192x192.png +0 -0
  53. data/assets/img/favicon/android-chrome-512x512.png +0 -0
  54. data/assets/img/favicon/apple-touch-icon.png +0 -0
  55. data/assets/img/favicon/favicon-16x16.png +0 -0
  56. data/assets/img/favicon/favicon-32x32.png +0 -0
  57. data/assets/img/favicon/favicon.ico +0 -0
  58. data/assets/img/favicon/site.webmanifest +1 -0
  59. data/assets/js/main.js +2 -0
  60. data/assets/js/main.js.map +1 -0
  61. data/assets/js/post.js +2 -0
  62. data/assets/js/post.js.map +1 -0
  63. metadata +118 -0
@@ -0,0 +1,43 @@
1
+ ---
2
+ layout: page
3
+ ---
4
+
5
+ {% if page.posts %}
6
+ <h2>Posts from the {{ page.type }} '{{ page.title | default: page.date | date: "%Y" }}'.</h2>
7
+
8
+ <ul class="no-bullet">
9
+ {% for post in page.posts %}
10
+ <li>
11
+ <a href="{{ post.url | prepend: site.base_url }}">
12
+ <span>{{ post.title }}</span>
13
+ <span class="float-right">{{ post.date | date: "%d %B %Y" }}</span>
14
+ </a>
15
+ </li>
16
+ {% endfor %}
17
+ </ul>
18
+ {% elsif site.posts %}
19
+ {% for post in site.posts %}
20
+ {% assign year = post.date | date: '%Y' %}
21
+
22
+ {% if year != curr_year %}
23
+ {% unless forloop.first %}
24
+ </ul>
25
+ {% endunless %}
26
+
27
+ <h2>
28
+ <a href="{{ site.data.sections.archive.path | append: '/' | append: year | prepend: site.base_url }}">
29
+ {{ year }}
30
+ </a>
31
+ </h2>
32
+ <ul class="no-bullet">
33
+ {% assign curr_year = year %}
34
+ {% endif %}
35
+ <li>
36
+ <a href="{{ post.url | prepend: site.base_url}}">
37
+ <span>{{ post.title }}</span>
38
+ <span class="float-right">{{ post.date | date: "%d %B %Y" }}</span>
39
+ </a>
40
+ </li>
41
+ {% endfor %}
42
+ </ul>
43
+ {% endif %}
@@ -0,0 +1,32 @@
1
+ ---
2
+ layout: page
3
+ ---
4
+
5
+ {% assign categories = site.categories | sort %}
6
+
7
+ <ul class="accordion" data-accordion data-allow-all-closed="true">
8
+ {% for category_list in categories %}
9
+ {% assign category = category_list | first %}
10
+ {% assign posts = category_list | last %}
11
+ <li class="accordion-item" data-accordion-item>
12
+ <!-- Accordion tab title -->
13
+ <a href="#" class="accordion-title">
14
+ <i data-feather="folder"></i>
15
+ {{- category | upcase -}}
16
+ </a>
17
+
18
+ <!-- Accordion tab content: it would start in the open state due to using the `is-active` state class. -->
19
+ <div class="accordion-content" data-tab-content>
20
+ <ul class="no-bullet">
21
+ {% for post in posts %}
22
+ <li>
23
+ <a href="{{ post.url | prepend: site.base_url }}">
24
+ {{- post.title -}}
25
+ </a>
26
+ </li>
27
+ {% endfor %}
28
+ </ul>
29
+ </div>
30
+ </li>
31
+ {% endfor %}
32
+ </ul>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html lang="{{ site.lang }}">
4
+ {% include head.html %}
5
+
6
+ <body>
7
+ <div class="off-canvas-wrapper">
8
+ {% include navigation.html %}
9
+
10
+ <div class="off-canvas-content" data-off-canvas-content>
11
+ <article>
12
+ {% include header.html %}
13
+
14
+ {{ content }}
15
+
16
+ {% include footer.html %}
17
+ </article>
18
+ </div>
19
+
20
+ {% include sidebar.html %}
21
+ </div>
22
+
23
+ {% include script.html %}
24
+ </body>
25
+ </html>
@@ -0,0 +1,33 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="grid-container">
6
+ <div class="grid-x grid-margin-x small-up-1 large-up-2">
7
+ {% for post in site.posts %}
8
+ <div class="cell">
9
+ <a href="{{ post.url | prepend: site_baseurl }}">
10
+ <div class="card">
11
+ <div class="card-divider">
12
+ <h5>{{ post.title }}</h5>
13
+ </div>
14
+
15
+ <div class="card-section">
16
+ <p>{{ post.description }}</p>
17
+ </div>
18
+
19
+ <div class="card-section text-right">
20
+ <small>{{ post.date | date: "%d %B %Y" }}</small>
21
+ </div>
22
+
23
+ {% if post.image %}
24
+ {% assign src = post.image.path | default: post.image %}
25
+ {% assign alt = post.image.description | default: "Preview" %}
26
+ <!-- add image tag -->
27
+ {% endif %}
28
+ </div>
29
+ </a>
30
+ </div>
31
+ {% endfor %}
32
+ </div>
33
+ </div>
@@ -0,0 +1,11 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="grid-container">
6
+ <div class="grid-x grid-margin-x grid-padding-x align-center">
7
+ <div class="cell small-10">
8
+ {{ content }}
9
+ </div>
10
+ </div>
11
+ </div>
@@ -0,0 +1,11 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="grid-container js-toc-content">
6
+ <div class="grid-x grid-margin-x grid-padding-x align-center">
7
+ <div class="cell small-10">
8
+ {{ content }}
9
+ </div>
10
+ </div>
11
+ </div>
@@ -0,0 +1,16 @@
1
+ .feather
2
+ stroke: currentColor
3
+ fill: none
4
+ stroke-linecap: round
5
+ stroke-linejoin: round
6
+
7
+ @mixin feather-text
8
+ width: 12px
9
+ height: 12px
10
+ stroke-width: 2px
11
+ margin-right: 24px
12
+
13
+ @mixin feather-socials
14
+ width: 16px
15
+ height: 16px
16
+ stroke-width: 2px
@@ -0,0 +1,9 @@
1
+ @mixin bar-image
2
+ object-fit: scale-down
3
+ max-height: 100%
4
+ max-width: 100%
5
+ padding: 8px
6
+ margin: 4px
7
+
8
+ @mixin rounded
9
+ border: 50%
@@ -0,0 +1,123 @@
1
+ @mixin light-mode
2
+ --color: #06080F
3
+ --background: rgb(245, 245, 220) url('/assets/external/img/textured-paper.png')
4
+
5
+ --bar-color: #4A0404
6
+ --bar-background: #FFF8DC url('/assets/external/img/dark-wood.png')
7
+
8
+ --hover: rgb(171, 171, 156)
9
+ --header-background: rgb(187, 187, 172)
10
+ --content-background: rgb(203, 203, 188)
11
+
12
+ --bar-link-color: #C04000
13
+
14
+
15
+ @mixin dark-mode
16
+ --color: #fff
17
+ --background: #000 url('/assets/external/img/stardust.png')
18
+
19
+ --bar-color: #daa520
20
+ --bar-background: #855E42 url('/assets/external/img/dark-wood.png')
21
+
22
+ --hover: #020202
23
+ --header-background: #0F0F0F
24
+ --content-background: #3A3A3A
25
+
26
+ --bar-link-color: #FFFF00
27
+
28
+
29
+ html, html[data-theme="light"]
30
+ @include light-mode
31
+
32
+ html[data-theme="dark"]
33
+ @include dark-mode
34
+
35
+ @media (prefers-color-scheme: dark)
36
+ html, html[data-theme="dark"]
37
+ @include dark-mode
38
+
39
+ html[data-theme="light"]
40
+ @include light-mode
41
+
42
+ .off-canvas-content
43
+ background: var(--background)
44
+ color: var(--color)
45
+
46
+ a
47
+ color: var(--color)
48
+ font-weight: 700
49
+
50
+ .feather
51
+ color: var(--color)
52
+
53
+ code:
54
+ font-family: monospace
55
+ font-weight: 500
56
+ font-size: small
57
+
58
+ .card
59
+ background: linear-gradient(to bottom, var(--header-background), var(--content-background))
60
+ color: var(--color)
61
+ border-color: var(--color)
62
+
63
+ p
64
+ font-weight: 400
65
+
66
+ .card-divider
67
+ background: var(--header-background)
68
+
69
+ .accordion
70
+ background: var(--header-background)
71
+
72
+ .accordion-title
73
+ color: var(--color)
74
+ &:hover, &:focus
75
+ background-color: var(--hover)
76
+
77
+ .accordion-content
78
+ background-color: var(--content-background)
79
+
80
+ footer
81
+ font-size: smaller
82
+
83
+ blockquote
84
+ border: none
85
+ letter-spacing: 3px
86
+ margin:0px
87
+ margin-top: 40px
88
+ margin-bottom: 70px
89
+ padding: 0px
90
+ text-align: center
91
+
92
+ p
93
+ display: inline
94
+ font-size: 20px
95
+ font-weight: 400
96
+ &:before
97
+ content: "“ "
98
+ &:after
99
+ content: " ”"
100
+
101
+ .off-canvas
102
+ background: var(--bar-background)
103
+ color: var(--bar-color)
104
+
105
+ a
106
+ color: var(--bar-color)
107
+
108
+ &:hover
109
+ color: var(--bar-link-color)
110
+
111
+ .toc-link::before
112
+ background: var(--bar-color)
113
+
114
+ .is-active-link::before
115
+ background: var(--bar-background)
116
+
117
+ .button.hollow
118
+ color: var(--bar-color)
119
+ border-color: var(--bar-color)
120
+
121
+ &:hover
122
+ color: var(--bar-link-color)
123
+ border-color: var(--bar-link-color)
@@ -0,0 +1,17 @@
1
+ @use 'feather'
2
+ @use 'image'
3
+
4
+ #nav
5
+ width: $bar-width
6
+
7
+ .grid-y
8
+ min-height: $bar-height
9
+
10
+ .text-left
11
+ text-align: left
12
+
13
+ img
14
+ @include image.bar-image
15
+
16
+ .feather
17
+ @include feather.feather-text
@@ -0,0 +1,15 @@
1
+ @use 'feather'
2
+ @use 'image'
3
+
4
+ #side
5
+ width: $bar-width
6
+
7
+ .grid-y
8
+ min-height: $bar-height
9
+
10
+ img
11
+ @include image.bar-image
12
+ @include image.rounded
13
+
14
+ .feather
15
+ @include feather.feather-socials
@@ -0,0 +1,12 @@
1
+ code
2
+ background: inherit
3
+ padding: inherit
4
+ border: inherit
5
+ color: inherit
6
+
7
+ table
8
+ margin: inherit
9
+
10
+ tbody
11
+ background: inherit
12
+ border-color: inherit
@@ -0,0 +1,2 @@
1
+ $bar-width: 256px !default
2
+ $bar-height: 576px !default
@@ -0,0 +1,5 @@
1
+ @use '../common/feather'
2
+
3
+ .accordion-title
4
+ .feather
5
+ @include feather.feather-text
@@ -0,0 +1,10 @@
1
+ .off-canvas-content
2
+ min-height: 100vh
3
+
4
+ .card-image
5
+ max-height: 128px
6
+ object-fit: contain
7
+
8
+ .grid-container
9
+ margin-left: 2rem
10
+ margin-right: 2rem
data/_sass/main.sass ADDED
@@ -0,0 +1,8 @@
1
+ @import 'common/variables'
2
+ @import 'common/nav'
3
+ @import 'common/feather'
4
+ @import 'common/side'
5
+ @import 'common/syntax'
6
+ @import 'layouts/categories'
7
+ @import 'common/mode'
8
+ @import 'layouts/default'
@@ -0,0 +1,6 @@
1
+ ---
2
+ ---
3
+
4
+ @import 'main'
5
+
6
+ /* Add custom theme here */