Skip to content

Commit

Permalink
Merge pull request #1 from aaronczichon/improvements/general
Browse files Browse the repository at this point in the history
Improvement: added find pengiuns logo to the corresponding page
  • Loading branch information
aaronczichon authored Mar 13, 2024
2 parents fc6599c + f2a28e7 commit 9be3cd7
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 7 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build and Deploy

on:
pull_request:
branches:
- main
paths:
- 'web-canada/*/**'

env:
MAPBOX_TOKEN: ''

jobs:
run-build:
name: Build Assets
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: cd web-canada && npm i
- run: cd web-canada && npm run build
10 changes: 7 additions & 3 deletions web-canada/src/pages/pengiun.astro
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
---
import { Image } from 'astro:assets';
import Layout from '../layouts/Layout.astro';
import pengiunLogo from '../resources/find-pengiun-logo.png';
---
<Layout title='Find Pengiun'>
<Layout title="Find Pengiuns">
<main class="container">
<article>
<h1>Find Pengiun</h1>
<h1>Find Pengiuns</h1>
<p>
Wir sind auch etwas in den sozialen Netzen aktiv. Speziell für den Urlaub nutzen wir die Urlaubsapp <a href="https://findpenguins.com/" target="_parent">Find Pengiun</a>.
Wir sind auch etwas in den sozialen Netzen aktiv. Speziell für den Urlaub nutzen wir die Urlaubsapp <a href="https://findpenguins.com/" target="_parent"><Image src={pengiunLogo} widths={[30]}
sizes={`30px`} alt="Logo of the Find Pengiun app" style="width: 25px; height: 25px; vertical-align: middle" /> Find Pengiuns</a>.
</p>
<p>
Dort posten wir von Tag zu Tag Kleinigkeiten in Form eines Microblogs (wie man es von Twitter, Mastodon oder Facebook gewohnt ist).
Expand Down
5 changes: 1 addition & 4 deletions web-canada/src/pages/rss.xml.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import { getCollection } from 'astro:content';
import rss from '@astrojs/rss';
import sanitizeHtml from 'sanitize-html';
import MarkdownIt from 'markdown-it';
const parser = new MarkdownIt();

export async function GET(context) {
export async function GET(_context) {
const blog = await getCollection('blog');
return rss({
title: 'Canada - Working Holiday für 12 Monate - Blog',
Expand Down
Binary file added web-canada/src/resources/find-pengiun-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9be3cd7

Please sign in to comment.