Skip to content

Commit dcdb177

Browse files
committed
fix(remove inline css and js): removes inline CSS and JS
Adds scss,ts files and deprecates the gallery randomizer
1 parent 24fc8d7 commit dcdb177

16 files changed

+383
-149
lines changed

Diff for: _source/_layouts/default.html

+7-2
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,16 @@
3636

3737
<script src="/assets/js/main.bundle.js" type="text/javascript"></script>
3838
{% if page.layout == 'reference' or page.layout == 'entry' %}
39-
4039
<script src="/assets/js/vendors~reference.bundle.js" type="text/javascript" defer></script>
41-
4240
<script src="/assets/js/reference.bundle.js" type="text/javascript"></script>
4341
{% endif %}
42+
43+
{%- if page.layout == 'gallery' -%}
44+
<script src="/assets/js/gallery-randomize.bundle.js"></script>
45+
{%- endif -%}
46+
{%- if page.hasFeaturedProjects == true -%}
47+
<script src="/assets/js/featured-carousel.bundle.js"></script>
48+
{%- endif -%}
4449
</body>
4550

4651
</html>

Diff for: _source/_layouts/gallery.html

-18
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,5 @@
22
layout: default
33
---
44

5-
{% for img in page.images %}
6-
{%if img == "index.png" %}
7-
<img src="./images/{{img}}" alt="" style="max-width:100%">
8-
{% endif %}
9-
{% endfor %}
10-
115
{{content}}
126

13-
{% capture mdcode %}
14-
```js
15-
{% include_relative index.js %}
16-
```
17-
{% endcapture %}
18-
{{ mdcode | markdownify }}
19-
20-
{% for img in page.images %}
21-
{%if img != "index.png" %}
22-
<img src="./images/{{img}}" alt="" style="max-width:100%">
23-
{% endif%}
24-
{% endfor %}

Diff for: _source/assets/css/scss/_featured-projects.scss

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
.featured-projects {
2+
height: 25em;
3+
}
4+
5+
ul.featured-projects-list {
6+
}
7+
8+
.featured-project-thumb {
9+
max-width: 100%;
10+
height: auto;
11+
/* width: 1280px; */
12+
/* height: 720px; */
13+
}
14+
15+
li.featured-project {
16+
position: relative;
17+
list-style: none;
18+
display: none;
19+
}
20+
21+
.featured-project-title {
22+
margin: 0;
23+
position: absolute;
24+
float: left;
25+
left: 0px;
26+
top: -25px;
27+
z-index: 0;
28+
background-color: white;
29+
padding-right: 1em;
30+
padding-left: 0.5em;
31+
width: 100%;
32+
}
33+
34+
img.featured-project-thumb {
35+
display: inline;
36+
}

Diff for: _source/assets/css/styles.css

+30-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: _source/assets/css/styles.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ ul {
396396

397397
// ------------ code
398398
//
399-
@import "./scss/syntax.scss";
399+
@import "./scss/_syntax.scss";
400400

401401
pre {
402402
background: #eee !important;
@@ -487,8 +487,8 @@ a.textgrow {
487487
}
488488
}
489489

490-
@import "./scss/_guidelines.scss", "./scss/reference.scss",
491-
"./scss/changelog.scss";
490+
@import "./scss/_guidelines.scss", "./scss/_reference.scss",
491+
"./scss/_changelog.scss", "./scss/_featured-projects.scss";
492492

493493
// ------------------------
494494
// old basil css. Overwrite new settings

Diff for: _source/assets/js/featured-carousel.bundle.js

+128
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)