Skip to content

Commit

Permalink
Fixup prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
theacodes committed Feb 6, 2024
1 parent e762b59 commit 442ac09
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 23 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-lit": "^1.11.0",
"eslint-plugin-mocha": "^10.2.0",
"prettier": "^3.2.4",
"prettier": "^3.2.5",
"prettier-plugin-jinja-template": "^1.3.2",
"typescript": "^5.3.3",
"typescript-lit-html-plugin": "^0.9.0"
Expand All @@ -36,9 +36,9 @@
"test": "web-test-runner --config scripts/web-test-runner.config.mjs",
"lint:eslint": "eslint",
"lint:types": "tsc -p tsconfig.json",
"lint:prettier": "prettier src tests --check",
"lint:prettier": "prettier src/scripts src/styles src/wintersong/*.html scripts tests --check",
"lint": "npm run lint:eslint && npm run lint:types && npm run lint:prettier",
"format": "prettier . --write",
"format": "prettier src/scripts src/styles src/wintersong/*.html scripts tests --write",
"build:no-check": "node scripts/build.js",
"build": "tsc -p tsconfig.json && node scripts/build.js",
"watch": "node scripts/watch.js",
Expand Down
29 changes: 15 additions & 14 deletions src/wintersong/meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,29 @@
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no" />

{%- if page.meta and page.meta.description %}
<meta name="description" content="{{ page.meta.description }}" />
{%- elif config.site_description %}
<meta name="description" content="{{ config.site_description }}" />
{%- endif %}
{%- if page.meta and page.meta.description -%}
<meta name="description" content="{{ page.meta.description }}" />
{%- elif config.site_description -%}
<meta name="description" content="{{ config.site_description }}" />
{%- endif -%}

<!-- Page author -->
{%- if page.meta and page.meta.author %}
<meta name="author" content="{{ page.meta.author }}" />
{%- elif config.site_author %}
<meta name="author" content="{{ config.site_author }}" />
{%- endif %} {%- if page and page.canonical_url -%}
<link rel="canonical" href="{{ page.canonical_url }}" />
{%- endif %}
{%- if page.meta and page.meta.author -%}
<meta name="author" content="{{ page.meta.author }}" />
{%- elif config.site_author -%}
<meta name="author" content="{{ config.site_author }}" />
{%- endif -%}
{%- if page and page.canonical_url -%}
<link rel="canonical" href="{{ page.canonical_url }}" />
{%- endif -%}

<link
rel="shortcut icon"
sizes="192x192"
href="{{config.site_favicon | default('/icon.png') | url }}" />
href="{{ config.site_favicon | default('/icon.png') | url }}" />
<link
rel="apple-touch-icon"
sizes="192x192"
href="{{config.site_favicon | default('/icon.png') | url }}" />
href="{{ config.site_favicon | default('/icon.png') | url }}" />

<meta name="generator" content="mkdocs-{{ mkdocs_version }}" />

0 comments on commit 442ac09

Please sign in to comment.