Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improving speed #161

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ jobs:
- name: Optimize
run: |
minify -r -o _build/ --html-keep-document-tags --html-keep-end-tags --html-keep-default-attrvals --html-keep-whitespace --verbose _build
- name: Moving to _site
run: |
mv _build/ _site/ -v
- name: Cache jekyll
uses: actions/cache@v3
with:
path: "_site/"
key: ${{ runner.os }}-${{ github.sha }}
- name: Moving to _site
run: |
mv _build/ _site/ -v
# npm run build:js
# - name: 🔨 Test calculations JS
# run: |
Expand Down Expand Up @@ -130,6 +130,7 @@ jobs:
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
skip_app_build: true
skip_api_build: true
app_location: "/_site" # App source code path
api_location: "" # Api source code path - optional
output_location: "" # Built app content directory - optional
Expand Down Expand Up @@ -254,5 +255,5 @@ jobs:
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
number: ${{ github.event.pull_request.number }}
header: lighthouse
header: lighthouse-${{ github.sha }}
message: ${{ steps.format_lighthouse_score.outputs.comment }}
14 changes: 14 additions & 0 deletions _includes/head/custom.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
<link rel="preconnect" href="https://images.unsplash.com" crossorigin>
<link rel="preconnect" href="https://www.googleapis.com" crossorigin>
<link rel="preconnect" href="https://cdn.jsdelivr.net" crossorigin>
<link rel="preconnect" href="https://www.youtube.com" crossorigin>
<link rel="preconnect" href="https://go.ezoic.net" crossorigin>
<link rel="preconnect" href="https://i.ytimg.com" crossorigin>
<link rel="preconnect" href="https://stats.g.doubleclick.net" crossorigin>
<link rel="preconnect" href="https://analytics.google.com" crossorigin>
<link rel="preconnect" href="https://cse.google.com" crossorigin>
<link rel="preconnect" href="https://www.google-analytics.com" crossorigin>
<link rel="preconnect" href="https://www.google.com" crossorigin>
<link rel="preconnect" href="https://cdn.sender.net" crossorigin>
<link rel="preconnect" href="https://www.googletagmanager.com" crossorigin>

{% include adsense.html %}
{% include head/favicon.html %}

Expand Down
6 changes: 5 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: splash
title: &title "Motionsplan - træningsøvelser og træningsprogrammer"
title: &title "Motionsplan - Træningsøvelser og træningsprogrammer"
description: &description "Træningsøvelser, træningsprogrammer og viden om styrketræning, løbetræning, fitness, yoga og restitution."
excerpt: *description
author_profile: true
Expand Down Expand Up @@ -171,8 +171,12 @@ <h2>Genveje</h2>

{% include feature_row id="diverse" %}

{% comment %}

<h2>Samarbejdspartnere (reklamelinks)</h2>

{% include gallery images=site.data.advertisers %}

{% endcomment %}

<p>Motionsplan er udarbejdet af lærere på <a href="https://www.vih.dk">Vejle Idrætshøjskole</a>. Formålet med Motionsplan er at give den bedst mulige viden om træning til alle.</p>