1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-19 07:15:31 -04:00
This commit is contained in:
2020-01-19 18:19:34 -05:00
parent f51e912632
commit 96e3130ba5
12 changed files with 35 additions and 41 deletions

View File

@@ -31,16 +31,11 @@ jobs:
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: | restore-keys: |
${{ runner.os }}-yarn- ${{ runner.os }}-yarn-
- name: Install dependencies - run: yarn install --no-ignore-optional --frozen-lockfile
run: yarn install --no-ignore-optional --frozen-lockfile - run: yarn debug:hugo
- name: Hugo version - run: yarn build:preview
run: yarn debug:hugo - run: yarn lint
- name: Build Hugo continue-on-error: true
run: yarn build:preview
- name: Lint Styles
run: yarn lint:sass
- name: Lint Markdown
run: yarn lint:markdown
- uses: actions/upload-artifact@v1 - uses: actions/upload-artifact@v1
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'
with: with:

View File

@@ -3,39 +3,14 @@
"short_name": "{{ .Site.Params.domain }}", "short_name": "{{ .Site.Params.domain }}",
"icons": [ "icons": [
{ {
"src": "{{ "favicon-512.png" | absURL }}", "src": "{{ "android-chrome-512x512.png" | absURL }}",
"sizes": "512x512", "sizes": "512x512",
"type": "image/png" "type": "image/png"
}, },
{ {
"src": "{{ "favicon-192.png" | absURL }}", "src": "{{ "android-chrome-192x192.png" | absURL }}",
"sizes": "192x192", "sizes": "192x192",
"type": "image/png" "type": "image/png"
},
{
"src": "{{ "favicon-180.png" | absURL }}",
"sizes": "180x180",
"type": "image/png"
},
{
"src": "{{ "favicon-152.png" | absURL }}",
"sizes": "152x152",
"type": "image/png"
},
{
"src": "{{ "favicon-128.png" | absURL }}",
"sizes": "128x128",
"type": "image/png"
},
{
"src": "{{ "favicon-96.png" | absURL }}",
"sizes": "96x96",
"type": "image/png"
},
{
"src": "{{ "favicon-64.png" | absURL }}",
"sizes": "64x64",
"type": "image/png"
} }
], ],
"start_url": "{{ .Site.BaseURL }}", "start_url": "{{ .Site.BaseURL }}",

View File

@@ -11,3 +11,4 @@
# https://github.com/w3c/manifest/issues/689 # https://github.com/w3c/manifest/issues/689
/manifest.webmanifest /manifest.json 200 /manifest.webmanifest /manifest.json 200
/site.webmanifest /manifest.json 200

View File

@@ -1,4 +1,4 @@
<link rel="apple-touch-icon" href="{{ "apple-touch-icon.png" | absURL }}"> <link rel="apple-touch-icon" href="{{ "apple-touch-icon.png" | absURL }}" sizes="180x180">
<link rel="mask-icon" href="{{ "safari-pinned-tab.svg" | absURL }}" color="#009cdf"> <link rel="mask-icon" href="{{ "safari-pinned-tab.svg" | absURL }}" color="#009cdf">
{{ range (split .png_sizes " ") -}} {{ range (split .png_sizes " ") -}}

View File

@@ -4,10 +4,12 @@
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default"> <meta name="apple-mobile-web-app-status-bar-style" content="default">
<meta name="apple-mobile-web-app-title" content="{{ .Site.Title }}"> <meta name="apple-mobile-web-app-title" content="{{ .Site.Title }}">
<meta name="msapplication-TileColor" content="#0e6dc2">
<meta name="theme-color" content="#0e6dc2"> <meta name="theme-color" content="#0e6dc2">
{{ partialCached "head/preload" . -}} {{ partialCached "head/preload" . -}}
{{ partialCached "head/styles" . -}} {{ partialCached "head/styles" . -}}
{{ partialCached "head/favicons" (dict "png_sizes" "192 48 32 16" "ico_sizes" "16 32 48") -}} {{ partialCached "head/favicons" (dict "png_sizes" "192 48 32 16" "ico_sizes" "16 32 48") -}}
<link rel="manifest" href="{{ "site.webmanifest" | absURL }}">
<link rel="canonical" href="{{ .Permalink }}"> <link rel="canonical" href="{{ .Permalink }}">
<link rel="alternate" type="application/rss+xml" href="{{ "feed.xml" | absURL }}" title="{{ .Site.Title }} (RSS)"> <link rel="alternate" type="application/rss+xml" href="{{ "feed.xml" | absURL }}" title="{{ .Site.Title }} (RSS)">
<link rel="author" href="{{ "humans.txt" | absURL }}"> <link rel="author" href="{{ "humans.txt" | absURL }}">

View File

@@ -43,6 +43,7 @@
X-XSS-Protection = "1; mode=block" X-XSS-Protection = "1; mode=block"
# X-XSS-Protection = "1; mode=block; report=https://jarvis.report-uri.com/r/d/xss/enforce" # X-XSS-Protection = "1; mode=block; report=https://jarvis.report-uri.com/r/d/xss/enforce"
X-Got-Milk = "always" X-Got-Milk = "always"
X-View-Source = "https://go.jarv.is/source"
# PGP file: open in browser, download correctly # PGP file: open in browser, download correctly
[[headers]] [[headers]]
@@ -52,12 +53,17 @@
Content-Type = "text/plain; charset=utf-8" Content-Type = "text/plain; charset=utf-8"
Content-Disposition = "inline; filename=\"jarvis.asc\"" Content-Disposition = "inline; filename=\"jarvis.asc\""
# Redirect default Netlify subdomain to primary domain: # Redirect www and Netlify subdomains to primary domain:
[[redirects]] [[redirects]]
from = "https://jakejarvis.netlify.com/*" from = "https://jakejarvis.netlify.com/*"
to = "https://jarv.is/:splat" to = "https://jarv.is/:splat"
status = 301 status = 301
force = true force = true
[[redirects]]
from = "https://www.jarv.is/*"
to = "https://jarv.is/:splat"
status = 301
force = true
# Support ancient RSS subscriptions and links from WordPress era: # Support ancient RSS subscriptions and links from WordPress era:
[[redirects]] [[redirects]]
@@ -95,11 +101,11 @@
# and keep the main repository squeaky clean: # and keep the main repository squeaky clean:
[[redirects]] [[redirects]]
from = "/y2k/*" from = "/y2k/*"
to = "https://jakejarvis.github.io/y2k/:splat" to = "https://modest-jackson-d5516b.netlify.com/y2k/:splat"
status = 200 status = 200
[[redirects]] [[redirects]]
from = "/ios-trackers/*" from = "/ios-trackers/*"
to = "https://jakejarvis.github.io/ios-trackers/:splat" to = "https://modest-jackson-d5516b.netlify.com/ios-trackers/:splat"
status = 200 status = 200
[[redirects]] [[redirects]]
from = "/scrabble/*" from = "/scrabble/*"
@@ -118,6 +124,11 @@
to = "https://modest-jackson-d5516b.netlify.com/awesome/:splat" to = "https://modest-jackson-d5516b.netlify.com/awesome/:splat"
status = 200 status = 200
# More miscellaneous mirrors:
[[redirects]]
from = "/apple-touch-icon-precomposed.png"
to = "/apple-touch-icon.png"
status = 200
[[redirects]] [[redirects]]
from = "/me_lg.jpg" from = "/me_lg.jpg"
to = "/me_large.jpg" to = "/me_large.jpg"

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

10
static/browserconfig.xml Normal file
View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="https://jarv.is/mstile-150x150.png"/>
<square310x310logo src="https://jarv.is/mstile-310x310.png"/>
<TileColor>#0e6dc2</TileColor>
</tile>
</msapplication>
</browserconfig>

BIN
static/mstile-150x150.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
static/mstile-310x310.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB