Skip to content

Commit

Permalink
Update manifest JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Jan 16, 2024
1 parent 7e24773 commit 4d8df66
Show file tree
Hide file tree
Showing 14 changed files with 46 additions and 11 deletions.
16 changes: 11 additions & 5 deletions app/static/manifest.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,30 @@
{
"name": "National Archives",
"short_name": "TNA",
"short_name": "National Archives",
"name": "The National Archives",
"theme_color": "#000",
"_icons": [
{
"src": "/static/assets/images/apple-touch-icon-152x152.png",
"type": "image/png",
"sizes": "152x152"
"sizes": "152x152",
"purpose": "maskable"
},
{
"src": "/static/assets/images/apple-touch-icon-167x167.png",
"type": "image/png",
"sizes": "167x167"
"sizes": "167x167",
"purpose": "maskable"
},
{
"src": "/static/assets/images/apple-touch-icon-180x180.png",
"type": "image/png",
"sizes": "180x180"
"sizes": "180x180",
"purpose": "maskable"
}
],
"start_url": "/explore-the-collection/?source=pwa",
"scope": "/explore-the-collection/",
"display": "minimal-ui",
"background_color": "#000",
"dir": "ltr",
"lang": "en-GB"
Expand Down
2 changes: 1 addition & 1 deletion app/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{% endblock %}

{% block head %}
<link rel=manifest href={{ url_for('static', filename='manifest.json') }}>
<link rel="manifest" href="{{ url_for('static', filename='manifest.json') }}">
{% endblock %}

{% block stylesheets %}
Expand Down
5 changes: 5 additions & 0 deletions app/templates/catalogue/archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

{%- from 'components/button/macro.html' import tnaButton -%}

{% block stylesheets %}
{{ super() }}
<link rel="stylesheet" href="{{ url_for('static', filename='catalogue.min.css') }}">
{% endblock %}

{% block beforeContent %}
{% if request.referrer %}
<!-- <div class="tna-container">
Expand Down
5 changes: 5 additions & 0 deletions app/templates/catalogue/creator.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
{%- from 'components/button/macro.html' import tnaButton -%}
{%- from 'catalogue/elements/discovery.html' import discovery_info -%}

{% block stylesheets %}
{{ super() }}
<link rel="stylesheet" href="{{ url_for('static', filename='catalogue.min.css') }}">
{% endblock %}

{% block beforeContent %}
{% if request.referrer %}
<!-- <div class="tna-container">
Expand Down
5 changes: 5 additions & 0 deletions app/templates/catalogue/person.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
{%- from 'components/button/macro.html' import tnaButton -%}
{%- from 'catalogue/elements/discovery.html' import discovery_info -%}

{% block stylesheets %}
{{ super() }}
<link rel="stylesheet" href="{{ url_for('static', filename='catalogue.min.css') }}">
{% endblock %}

{% block beforeContent %}
{% if request.referrer %}
<!-- <div class="tna-container">
Expand Down
5 changes: 5 additions & 0 deletions app/templates/catalogue/record.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
{%- from 'components/button/macro.html' import tnaButton -%}
{%- from 'catalogue/elements/discovery.html' import discovery_info -%}

{% block stylesheets %}
{{ super() }}
<link rel="stylesheet" href="{{ url_for('static', filename='catalogue.min.css') }}">
{% endblock %}

{% block beforeContent %}
{% if request.referrer %}
<!-- <div class="tna-container">
Expand Down
6 changes: 6 additions & 0 deletions app/templates/explore/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@

{% block pageTitle %}{{ page_data['title'] }} - {{ super() }}{% endblock %}

{% block stylesheets %}
{{ super() }}
<link rel="stylesheet" href="{{ url_for('static', filename='articles.min.css') }}">
{% endblock %}

{% block head %}
{{ super() }}
{{ meta({
'title': page_data['meta']['seo_title'] or page_data['title'],
'description': page_data['meta']['search_description'],
Expand Down
File renamed without changes.
6 changes: 6 additions & 0 deletions app/templates/search/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@

{% block pageTitle %}Search - {{ super() }}{% endblock %}

{% block stylesheets %}
{{ super() }}
<link rel="stylesheet" href="{{ url_for('static', filename='search.min.css') }}">
{% endblock %}

{% block head %}
{{ super() }}
{{ meta({
'title': 'Search for ' + request.args['q'] if 'q' in request.args else 'Search',
'description': 'Search results for ' + request.args['q'] if 'q' in request.args else ''
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"scripts": {
"build:css": "sass --style=compressed --load-path=node_modules --embed-sources src/styles/app.scss app/static/app.min.css",
"build:css": "sass --style=compressed --load-path=node_modules --embed-sources src/styles/app.scss:app/static/app.min.css src/styles/search.scss:app/static/search.min.css src/styles/articles.scss:app/static/articles.min.css src/styles/catalogue.scss:app/static/catalogue.min.css",
"build:js": "webpack",
"build": "npm run build:css && npm run build:js",
"dev:css": "sass --load-path=node_modules --watch src/styles/app.scss app/static/app.min.css",
"dev:css": "sass --load-path=node_modules --watch src/styles/app.scss:app/static/app.min.css src/styles/search.scss:app/static/search.min.css src/styles/articles.scss:app/static/articles.min.css src/styles/catalogue.scss:app/static/catalogue.min.css",
"dev:js": "webpack --config webpack.config.js --mode=development --watch",
"dev": "npm run dev:css & npm run dev:js &",
"lint": "prettier --check src && stylelint 'src/styles/**/*.scss' && eslint 'src/scripts/**/*.js'",
Expand Down
3 changes: 0 additions & 3 deletions src/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,8 @@

@use "modules/frontend-overrides";
@use "modules/generics";
@use "modules/articles";
@use "modules/authors";
@use "modules/catalogue";
@use "modules/feedback";
@use "modules/search";

.tna-template--yellow-accent {
.tna-ul li::marker,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 4d8df66

Please sign in to comment.