Skip to content

Commit 15c4872

Browse files
authored
Merge pull request #60 from OpenDataScotland/copilot/tidy-up-static-assets
feat: consolidate static assets into /assets directory
2 parents 4c8173d + 3f0cba8 commit 15c4872

176 files changed

Lines changed: 82 additions & 20267 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ node_modules
66
*.map
77
.jekyll-cache/
88
.vscode/settings.json
9-
vendor/
9+
vendor/
10+
.DS_Store

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.2
1+
3.2.9

_config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ title: Open Data Scotland
88
greeting: Welcome to Open Data Scotland
99
description: A crowdsourced open data portal, aggregating open datasets across Scotland.
1010
baseurl: ""
11-
logo: /img/ods_logo_transparent_2022.png
11+
logo: /assets/img/ods_logo_transparent_2022.png
1212
repo: https://github.com/OpenDataScotland/jkan/
1313

1414
# Site theme
@@ -100,7 +100,7 @@ exclude:
100100
- Gemfile.lock
101101
- vendor
102102
- node_modules
103-
- scripts/src
103+
- assets/scripts/src
104104
- package.json
105105
- webpack.config.js
106106
- README.md
@@ -109,4 +109,4 @@ exclude:
109109
- docker-compose.yml
110110

111111
# Site default images/logos
112-
default_org_icon: /img/icons/default_org_icon.png
112+
default_org_icon: /assets/img/icons/default_org_icon.png

_data/categories.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,64 @@
11
- name: Arts / Culture / History
2-
logo: /img/categories/arts-culture-history.svg
2+
logo: /assets/img/categories/arts-culture-history.svg
33
featured: true
44
- name: Budget / Finance
5-
logo: /img/categories/budget-finance.svg
5+
logo: /assets/img/categories/budget-finance.svg
66
logo_credit: Renan Ferreira Santos from the Noun Project
77
featured: true
88
- name: Business and Economy
9-
logo: /img/categories/business_and_economy.svg
9+
logo: /assets/img/categories/business_and_economy.svg
1010
logo_credit: Vectors Market from the Noun Project
1111
featured: true
1212
- name: Council and Government
13-
logo: /img/categories/council_and_government.svg
13+
logo: /assets/img/categories/council_and_government.svg
1414
logo_credit: praveen patchu from the Noun Project
1515
featured: true
1616
- name: Education
17-
logo: /img/categories/education.svg
17+
logo: /assets/img/categories/education.svg
1818
logo_credit: Sergey Patutin from the Noun Project
1919
featured: true
2020
- name: Elections / Politics
21-
logo: /img/categories/elections-politics.svg
21+
logo: /assets/img/categories/elections-politics.svg
2222
logo_credit: Jean Soo from the Noun Project
2323
featured: true
2424
- name: Food and Environment
25-
logo: /img/categories/food_environment.svg
25+
logo: /assets/img/categories/food_environment.svg
2626
featured: true
2727
- name: Health and Social Care
28-
logo: /img/categories/health-human-services.svg
28+
logo: /assets/img/categories/health-human-services.svg
2929
logo_credit: Timothy Miller from the Noun Project
3030
featured: true
3131
- name: Housing and Estates
32-
logo: /img/categories/housing_and_estates.svg
32+
logo: /assets/img/categories/housing_and_estates.svg
3333
featured: true
3434
- name: Law and Licensing
35-
logo: /img/categories/law_and_licensing.svg
35+
logo: /assets/img/categories/law_and_licensing.svg
3636
logo_credit: ghufronagustian from the Noun Project
3737
featured: true
3838
- name: Parks / Recreation
39-
logo: /img/categories/parks-recreation.svg
39+
logo: /assets/img/categories/parks-recreation.svg
4040
logo_credit: Pipe Rosas Licht from the Noun Project
4141
featured: true
4242
- name: Planning and Development
43-
logo: /img/categories/planning_and_development.svg
43+
logo: /assets/img/categories/planning_and_development.svg
4444
featured: true
4545
- name: Public Safety
46-
logo: /img/categories/new_public_safety.svg
46+
logo: /assets/img/categories/new_public_safety.svg
4747
logo_credit: Vectors Point from the Noun Project
4848
featured: true
4949
- name: Sport and Leisure
50-
logo: /img/categories/sport_and_leisure.svg
50+
logo: /assets/img/categories/sport_and_leisure.svg
5151
logo_credit: Adrien Coquet from theNoun Project
5252
featured: true
5353
- name: Tourism
54-
logo: /img/categories/tourism.svg
54+
logo: /assets/img/categories/tourism.svg
5555
logo_credit: WEBTECHOPS LLP from the Noun Project
5656
featured: true
5757
- name: Transportation
58-
logo: /img/categories/transportation.svg
58+
logo: /assets/img/categories/transportation.svg
5959
logo_credit: Dmitry Baranovskiy from the Noun Project
6060
featured: true
6161
- name: Uncategorised
62-
logo: /img/categories/uncategorized.svg
62+
logo: /assets/img/categories/uncategorized.svg
6363
logo_credit: Edward Boatman from the Noun Project
6464
featured: true

_data/themes.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

_includes/head.html

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,17 @@
99
<meta name="keywords" content="open, data, scotland, crowdsourced, volunteer, portal{% if page.title %}, {{ page.title | split: " " | join: ", " }}{% endif %}">
1010

1111
<!-- Favicons -->
12-
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
13-
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
14-
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
12+
<link rel="apple-touch-icon" sizes="180x180" href="/assets/img/apple-touch-icon.png">
13+
<link rel="icon" type="image/png" sizes="32x32" href="/assets/img/favicon-32x32.png">
14+
<link rel="icon" type="image/png" sizes="16x16" href="/assets/img/favicon-16x16.png">
1515
<link rel="manifest" href="/site.webmanifest">
16-
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
16+
<link rel="mask-icon" href="/assets/img/safari-pinned-tab.svg" color="#5bbad5">
1717
<meta name="msapplication-TileColor" content="#da532c">
1818
<meta name="theme-color" content="#ffffff">
1919

2020

21-
<link rel="stylesheet" href="{{ "/scripts/dist/vendor.css" | relative_url | append: cacheBust }}">
22-
{% assign theme_name = site.jkan_theme | default: 'Default' %}
23-
{% assign theme = site.data.themes | where:'name', theme_name | first %}
24-
{% if theme and theme.src and theme.src != empty %}
25-
<link rel="stylesheet" href="{{ theme.src }}">
26-
{% endif %}
27-
<link rel="stylesheet" href="{{ "/css/main.css" | relative_url | append: cacheBust }}">
21+
<link rel="stylesheet" href="{{ "/assets/scripts/dist/vendor.css" | relative_url | append: cacheBust }}">
22+
<link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url | append: cacheBust }}">
2823
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
2924
<link rel="me" href="https://mastodon.scot/@opendatascotland">
3025

@@ -40,9 +35,9 @@
4035
<!-- Twittercard -->
4136
{% include addons/twittercard.html %}
4237
{% endif %}
43-
<script src="{{ "/scripts/dist/vendor.js" | relative_url | append: cacheBust }}"></script>
44-
<script src="{{ "/scripts/dist/bundle.js" | relative_url | append: cacheBust }}" defer></script>
45-
<script src="{{ "/scripts/dist/map-utils.js" | relative_url | append: cacheBust }}"></script>
38+
<script src="{{ "/assets/scripts/dist/vendor.js" | relative_url | append: cacheBust }}"></script>
39+
<script src="{{ "/assets/scripts/dist/bundle.js" | relative_url | append: cacheBust }}" defer></script>
40+
<script src="{{ "/assets/scripts/dist/map-utils.js" | relative_url | append: cacheBust }}"></script>
4641

4742
<script>
4843
var settings = {

_organizations/abertay_university.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
schema: default
33
title: Abertay University
44
description: Research data from Abertay University
5-
logo: '/img/org_logos/abertay_university.png'
5+
logo: '/assets/img/org_logos/abertay_university.png'
66
type:
77
- Further Education
88
portal_url: 'https://rke.abertay.ac.uk/en/datasets/'

_organizations/accountant_in_bankruptcy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
schema: default
33
title: Accountant in Bankruptcy
44
description: An executive agency of Scottish Government
5-
logo: '/img/org_logos/accountant_in_bankruptcy.png'
5+
logo: '/assets/img/org_logos/accountant_in_bankruptcy.png'
66
type:
77
- Executive agency
88
portal_url: ''

_organizations/accounts_commission_for_scotland.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
schema: default
33
title: Accounts Commission for Scotland
44
description: Non-departmental public body. Part of Scottish Government
5-
logo: '/img/org_logos/accounts_commission.png'
5+
logo: '/assets/img/org_logos/accounts_commission.png'
66
type:
77
- Non-Departmental Public Body
88
portal_url: ''

_organizations/architecture_and_design_scotland.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
schema: default
33
title: Architecture and Design Scotland
44
description: Non-departmental public body. Part of Scottish Government
5-
logo: '/img/org_logos/architecture_and_design_scotland.png'
5+
logo: '/assets/img/org_logos/architecture_and_design_scotland.png'
66
type:
77
- Non-Departmental Public Body
88
portal_url: ''

0 commit comments

Comments
 (0)