Skip to content

Commit

Permalink
Merge pull request #41 from Eisvana/dev
Browse files Browse the repository at this point in the history
add meta tags
  • Loading branch information
Lenni009 authored Apr 14, 2024
2 parents 500996a + eb28bcd commit a688166
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .vitepress/head.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { HeadConfig } from 'vitepress';

export const head: HeadConfig[] = [
['meta', { name: 'application-name', content: 'Eisvana' }],
['meta', { name: 'keywords', content: "Eisvana, No Man's Sky, Civilization, Civilized Space, Wiki, Community, NMS, Civ, Eissentam, Fade" }],
['meta', { name: 'theme-color', content: '#280033' }],
['meta', { name: 'msapplication-config', content: '/icons/browserconfig.xml' }],
['meta', { name: 'msapplication-TileColor', content: '#280033' }],
Expand Down
6 changes: 6 additions & 0 deletions .vitepress/theme/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,9 @@ html {
.edit-info:not(:has(a)) {
display: none !important;
}

@media (prefers-reduced-motion: no-preference) {
html {
scroll-behavior: smooth;
}
}
2 changes: 1 addition & 1 deletion logic/compressImage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { escapeFileName } from './fileNameEscape';
export async function compressFile(inputFile: File, quality: number = 1): Promise<File> {
const sanitisedFileName = escapeFileName(inputFile.name);
const file = new File([inputFile], sanitisedFileName, { type: inputFile.type });
if (file.size < maxSize) return file; // if below 25 MB, don't do anything
if (file.size < maxSize) return file; // if below 2 MB, don't do anything
const type = imageTypes.WEBP;
const newFileExtension = type.split('/').at(-1);
const res = await compressImage(file, {
Expand Down

0 comments on commit a688166

Please sign in to comment.