algodynamics-theme 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 632889463c847cdd16c49d23a38ef3040b349b02d957708fcd37099f98b541b6
4
- data.tar.gz: 39c845de5abde22a4c5397d990520e15019bc363efd5cd6056d2a5f00280a0b9
3
+ metadata.gz: d82df36a1d7fffaa0666d62f1db114393e11820335d17c4fb8a46813c2d55449
4
+ data.tar.gz: ebb57453738b5d9ad68d2cc4f2b546e97fd9a1ca60b4c21b85f0e26325f49ae0
5
5
  SHA512:
6
- metadata.gz: b58e242fd1a63fcdaff6c567ce58792c2c80a643383554406696e0751a089880f73e2b1be248fa4f6a58df903717ceb0a5a9051cc090e5fe4bcbc5ba16987f9a
7
- data.tar.gz: 19193a3b2d4d8fe3f84b8809fa027c3cbabe5272e5d7c834d59bfdc3b91a509d3213a6cc6b17a6941fdda5bc6951636478c6d7a45b3744b322080811970c29b3
6
+ metadata.gz: d080349f6a3842e0c91b6fde04e4d909d4b0cdf5b44523e8eae80bd94a07df2fd7d8d69de2e2b94096f3397cd23f9acb28a500f310531bd7b8d760ec073bc497
7
+ data.tar.gz: 01326076cfb6291a5d81bd82324343cd7bdef23af3b6cc406908446ed915a364bdd05b8d251a45f3f78df58fc7b802725f270828ab906a503e9fbe0fec9f8836
data/_config.yml ADDED
@@ -0,0 +1,34 @@
1
+ # Welcome to Jekyll!
2
+ #
3
+ # This config file is meant for settings that affect your whole blog, values
4
+ # which you are expected to set up once and rarely edit after that. If you find
5
+ # yourself editing this file very often, consider using Jekyll's data files
6
+ # feature for the data you need to update frequently.
7
+ #
8
+ # For technical reasons, this file is *NOT* reloaded automatically when you use
9
+ # 'bundle exec jekyll serve'. If you change this file, please restart the server process.
10
+
11
+ # Build settings
12
+ collections:
13
+ content:
14
+ output: true
15
+ permalink: /:name
16
+
17
+ markdown: kramdown
18
+
19
+ plugins:
20
+ - jekyll-postcss
21
+
22
+ postcss:
23
+ cache: false
24
+
25
+ # Exclude from processing.
26
+ # The following items will not be processed, by default. Create a custom list
27
+ # to override the default setting.
28
+ exclude:
29
+ - package.json
30
+ - package-lock.json
31
+ - postcss.config.js
32
+ - README.md
33
+ - tailwind.config.js
34
+ - algodynamics-theme.gemspec
@@ -0,0 +1,15 @@
1
+ <div id="footer" class="flex bg-gray-500 justify-center">
2
+ <h3>
3
+ Copyright © 2020-{{ 'now' | date: "%Y" }},
4
+ <a href="https://www.algodynamics.io" class="text-blue-800">algodynamics.io</a>
5
+ {% if include.sponsor %}
6
+ &emsp; | &emsp;
7
+ {% if include.sponsor.blurb %}
8
+ {{include.sponsor.blurb}}
9
+ {% else %}
10
+ Development partly supported by
11
+ {% endif %}
12
+ <a href="{{include.sponsor.url}}" target="_blank" class="text-blue-800"> {{ include.sponsor.name }} </a>
13
+ {% endif %}
14
+ </h3>
15
+ </div>
@@ -0,0 +1,9 @@
1
+ <!-- Global site tag (gtag.js) - Google Analytics -->
2
+ <script async src="https://www.googletagmanager.com/gtag/js?id=G-83QNS9V0VK"></script>
3
+ <script>
4
+ window.dataLayer = window.dataLayer || [];
5
+ function gtag(){dataLayer.push(arguments);}
6
+ gtag('js', new Date());
7
+
8
+ gtag('config', 'G-83QNS9V0VK');
9
+ </script>
@@ -1,11 +1,25 @@
1
1
  <div class="flex bg-gray-700 px-2 flex justify-start items-center">
2
2
  <nav class="flex text-gray-200">
3
- {% for item in site.data.navigation %}
4
- <a href="{{ item.link }}"
5
- {% if page.url == item.link %}class="py-1 px-2 bg-gray-400 text-black"
6
- {% else %}class="py-1 px-2 hover:bg-gray-400 hover:text-gray-800"{% endif %}>
7
- {{ item.name }}
3
+ <a href="./index.html"
4
+ {% if page.url == "/index.html" or page.url == "/" %}
5
+ class="py-1 px-2 bg-gray-400 text-black"
6
+ {% else %}
7
+ class="py-1 px-2 hover:bg-gray-400 hover:text-gray-800"
8
+ {% endif %}>
9
+ Home
8
10
  </a>
11
+ {% assign mypages = site["content"] | sort: 'order' %}
12
+ {% for item in mypages %}
13
+ {% if item.order %}
14
+ <a href=".{{ item.url }}.html"
15
+ {% if page.url == item.url %}
16
+ class="py-1 px-2 bg-gray-400 text-black"
17
+ {% else %}
18
+ class="py-1 px-2 hover:bg-gray-400 hover:text-gray-800"
19
+ {% endif %}>
20
+ {{ item.title }}
21
+ </a>
22
+ {% endif %}
9
23
  {% endfor %}
10
24
  </nav>
11
25
  </div>
@@ -2,16 +2,14 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
5
6
  <title>{{ page.title }}</title>
6
- <link
7
- href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css"
8
- rel="stylesheet"
9
- />
10
7
  <link
11
8
  href="./assets/css/main.css"
12
9
  rel="stylesheet"
13
10
  />
14
11
  <script src="{{ page.jsfile }}"></script>
12
+ {% include google_analytics.html %}
15
13
  </head>
16
14
  <body class="flex flex-col h-screen overflow-hidden">
17
15
  <div class="bg-gray-800 text-white text-xl font-medium py-4 px-2">
@@ -31,7 +29,7 @@
31
29
  <div id="elm-app-is-loaded-here"></div>
32
30
  </div>
33
31
  </div>
34
-
32
+ {% include footer.html sponsor=page.sponsor %}
35
33
  <script>
36
34
  var app = Elm.{{ page.elm }}.init({
37
35
  node: document.getElementById("elm-app-is-loaded-here"),
@@ -0,0 +1,43 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <title>{{ page.title }}</title>
7
+ <link
8
+ href="./assets/css/main.css"
9
+ rel="stylesheet"
10
+ />
11
+ <script src="{{ page.jsfile }}"></script>
12
+ {% include google_analytics.html %}
13
+ </head>
14
+ <body class="flex flex-col h-screen overflow-hidden">
15
+ <div class="bg-gray-800 text-white text-xl font-medium py-4 px-2">
16
+ {{ page.title}}
17
+ </div>
18
+ {% include navigation.html %}
19
+ <div class="flex-grow flex flex-col justify-between py-4 px-48 text-gray-900 text-lg overflow-y-scroll">
20
+ <div class="flex flex-col py-3">
21
+ {{content}}
22
+
23
+ <ol class="w-3/4 list-decimal list-inside text-2xl text-blue-600 bg-gray-100 p-6 rounded-lg shadow-md self-center">
24
+ {% assign mypages = site["content"] | sort: 'order' %}
25
+ {% for item in mypages %}
26
+ {% if item.order %}
27
+ <li>
28
+ <a href=".{{ item.url }}.html" >
29
+ {{ item.title }}
30
+ </a>
31
+ </li>
32
+ {% endif %}
33
+ {% endfor %}
34
+ </ol>
35
+ </div>
36
+ <div class="flex flex-row pt-3">
37
+ <h2>{{page.sponsor.blurb}}<a href="{{page.sponsor.url}}" target="_blank" class="text-blue-800"> {{page.sponsor.name}} </a></h2>
38
+ <img src="{{page.sponsor.image}}" title="{{page.sponsor.blurb}} {{page.sponsor.name}}" class="px-2 h-24 inline">
39
+ </div>
40
+ </div>
41
+ {% include footer.html %}
42
+ </body>
43
+ </html>
data/assets/css/main.css CHANGED
@@ -1,37 +1,89 @@
1
+ ---
2
+ ---
3
+
4
+ /* Front matter is necessary for Jekyll */
5
+
6
+ @tailwind base;
7
+
8
+ @tailwind components;
9
+
10
+ /* purgecss start ignore */
11
+
1
12
  /* Modified prose classes for heading elements */
2
13
  .prose h1 {
3
- color: #1a202c;
14
+ color: #2d3748;
4
15
  font-weight: 600;
5
16
  font-size: 1.25em;
6
- margin-top: 1.6em;
7
- margin-bottom: 0.6em;
17
+ margin-top: 0.5em;
18
+ margin-bottom: 0.5em;
8
19
  line-height: 1.6;
9
20
  }
10
21
 
11
22
  .prose h2 {
12
- color: #1a202c;
23
+ color: #2d3748;
13
24
  font-weight: 550;
14
25
  font-size: 1.25em;
15
- margin-top: 1.5em;
16
- margin-bottom: 0.5em;
26
+ margin-top: 0.25em;
27
+ margin-bottom: 0.25em;
17
28
  line-height: 1.5;
18
29
  }
19
30
 
20
31
  .prose h3 {
21
- color: #1a202c;
32
+ color: #2d3748;
22
33
  font-weight: 500;
23
34
  font-size: 1.125em;
24
- margin-top: 1.4em;
25
- margin-bottom: 0.4em;
26
35
  line-height: 1.4;
27
36
  }
28
37
 
29
-
30
38
  .prose h4 {
31
- color: #1a202c;
39
+ color: #2d3748;
32
40
  font-weight: 450;
33
- margin-top: 1.3em;
34
- margin-bottom: 0.3em;
35
41
  line-height: 1.3;
36
42
  }
37
43
 
44
+ /* Modified prose classes for paragraphs */
45
+ .prose p {
46
+ margin-top: 0;
47
+ margin-bottom: 0;
48
+ }
49
+
50
+ /* Modified prose classes for table elements */
51
+ .prose table {
52
+ @apply bg-white text-gray-700 border-solid rounded font-mono shadow-md my-2 border-collapse;
53
+ }
54
+
55
+ .prose table > thead {
56
+ @apply bg-gray-800;
57
+ }
58
+
59
+ .prose table > thead > tr > th {
60
+ @apply p-2 text-gray-100 text-sm;
61
+ }
62
+
63
+ .prose table > tbody > tr {
64
+ @apply border-0;
65
+ }
66
+
67
+ .prose table > tfoot {
68
+ @apply bg-gray-600;
69
+ }
70
+
71
+ .prose table > tfoot > tr > td {
72
+ @apply p-1 text-gray-100 text-sm;
73
+ }
74
+
75
+ /* class for showing color codes inside table cell */
76
+ .color-code {
77
+ @apply p-2 inline-block align-middle;
78
+ background: var(--clr);
79
+ }
80
+
81
+ /* class for showing color codes with border inside table cell */
82
+ .color-code-bordered {
83
+ @apply p-2 inline-block border-2 align-middle;
84
+ background: var(--clr);
85
+ border-color: var(--bd_clr);
86
+ }
87
+
88
+ /* purgecss end ignore */
89
+ @tailwind utilities;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: algodynamics-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - princevarshney05
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-06 00:00:00.000000000 Z
11
+ date: 2022-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '4.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: jekyll-postcss
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.4.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.4.0
27
41
  description:
28
42
  email:
29
43
  - princevarshney05@gmail.com
@@ -32,8 +46,12 @@ extensions: []
32
46
  extra_rdoc_files: []
33
47
  files:
34
48
  - README.md
49
+ - _config.yml
50
+ - _includes/footer.html
51
+ - _includes/google_analytics.html
35
52
  - _includes/navigation.html
36
- - _layouts/default.html
53
+ - _layouts/lab-experiment.html
54
+ - _layouts/lab-home.html
37
55
  - assets/css/main.css
38
56
  homepage: https://github.com/princevarshney05/algodynamics-theme
39
57
  licenses: