Skip to content

Commit 3e42ea4

Browse files
committed
initial commit
0 parents  commit 3e42ea4

331 files changed

Lines changed: 35216 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/jekyll.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
7+
name: Deploy Jekyll site to Pages
8+
9+
on:
10+
# Runs on pushes targeting the default branch
11+
push:
12+
branches: ["main"]
13+
14+
# Allows you to run this workflow manually from the Actions tab
15+
workflow_dispatch:
16+
17+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
18+
permissions:
19+
contents: read
20+
pages: write
21+
id-token: write
22+
23+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
24+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
25+
concurrency:
26+
group: "pages"
27+
cancel-in-progress: false
28+
29+
jobs:
30+
# Build job
31+
build:
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Checkout
35+
uses: actions/checkout@v4
36+
- name: Setup Ruby
37+
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0
38+
with:
39+
ruby-version: '3.1' # Not needed with a .ruby-version file
40+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
41+
cache-version: 0 # Increment this number if you need to re-download cached gems
42+
- name: Setup Pages
43+
id: pages
44+
uses: actions/configure-pages@v4
45+
- name: Build with Jekyll
46+
# Outputs to the './_site' directory by default
47+
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
48+
env:
49+
JEKYLL_ENV: production
50+
- name: Upload artifact
51+
# Automatically uploads an artifact from the './_site' directory by default
52+
uses: actions/upload-pages-artifact@v3
53+
54+
# Deployment job
55+
deploy:
56+
environment:
57+
name: github-pages
58+
url: ${{ steps.deployment.outputs.page_url }}
59+
runs-on: ubuntu-latest
60+
needs: build
61+
steps:
62+
- name: Deploy to GitHub Pages
63+
id: deployment
64+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
_site
2+
.sass-cache
3+
Gemfile.lock
4+
*.gem
5+
.jekyll-cache

404.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
permalink: /404.html
3+
layout: base
4+
---
5+
6+
<style type="text/css" media="screen">
7+
.container {
8+
margin: 10px auto;
9+
max-width: 600px;
10+
text-align: center;
11+
}
12+
h1 {
13+
margin: 30px 0;
14+
font-size: 4em;
15+
line-height: 1;
16+
letter-spacing: -1px;
17+
}
18+
</style>
19+
20+
<div class="container">
21+
<h1>404</h1>
22+
23+
<p><strong>Page not found :(</strong></p>
24+
<p>The requested page could not be found.</p>
25+
</div>

Gemfile

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
source "https://rubygems.org"
2+
# Hello! This is where you manage which Jekyll version is used to run.
3+
# When you want to use a different version, change it below, save the
4+
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
5+
#
6+
# bundle exec jekyll serve
7+
#
8+
# This will help ensure the proper Jekyll version is running.
9+
# Happy Jekylling!
10+
gem "jekyll", "~> 4.2.0"
11+
# This is the default theme for new Jekyll sites. You may change this to anything you like.
12+
gem "minima", "~> 2.5"
13+
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
14+
# uncomment the line below. To upgrade, run `bundle update github-pages`.
15+
# gem "github-pages", group: :jekyll_plugins
16+
# If you have any plugins, put them here!
17+
group :jekyll_plugins do
18+
gem "jekyll-feed", "~> 0.12"
19+
end
20+
21+
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
22+
# and associated library.
23+
#platforms :mingw, :x64_mingw, :mswin, :jruby do
24+
gem "tzinfo", "~> 1.2"
25+
gem "tzinfo-data"
26+
#end
27+
28+
# Performance-booster for watching directories on Windows
29+
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
30+
31+
32+
gem "webrick", "~> 1.8"

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
Multilingual from https://github.com/ranbureand/multilingual-experiment
3+
4+
Theme from https://github.com/pages-themes/leap-day
5+
6+
# Folder structure
7+
8+
Folder | Description
9+
:--- | :---
10+
_data | copied from multilingual-experiment and adjusted
11+
_includes | copied from multilingual-experiment and adjusted
12+
_layouts | copied from multilingual-experiment and adjusted
13+
_posts | news in English and German
14+
_sass | copied from leap-day and adjusted
15+
assets | copied from leap-day
16+
de | german content
17+
en | english content
18+
19+
# Files in root folder
20+
21+
File | Description
22+
:--- | :---
23+
Gemfile | copied from multilingual-experiment and adjusted
24+
index.html | redirect to en\overview

_config.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Site settings
2+
title: 'QuickImageComment'
3+
description: 'quick change of user comment and artists in digital images, display and change of meta data, ...'
4+
5+
# baseurl: '/' # the subpath of your site, e.g. /blog
6+
# absoluteurl: 'https://ranbureand.github.io/multilingual-experiment'
7+
url: '' # the base hostname & protocol for your site, e.g. http://example.com
8+
9+
default_language: 'en'
10+
fallback_page: 'overview'
11+
12+
timezone: Europe/Rome
13+
encoding: utf-8
14+
15+
# Build settings
16+
markdown: kramdown
17+
18+
# Markdown Processors
19+
kramdown:
20+
auto_ids: true
21+
footnote_nr: 1
22+
entity_output: as_char
23+
toc_levels: 2..3
24+
25+
plugins:
26+
- jekyll-seo-tag
27+
28+
# Defaults
29+
defaults:
30+
-
31+
scope:
32+
path: '_posts/en'
33+
type: 'posts'
34+
values:
35+
permalink: 'en/news/:title'
36+
language: en
37+
-
38+
scope:
39+
path: '_posts/de'
40+
type: 'posts'
41+
values:
42+
permalink: 'de/nachrichten/:title'
43+
language: de

_data/snippets.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
title:
2+
en: QuickImageComment
3+
de: QuickImageComment
4+
5+
subtitle:
6+
en: quick change of user comment and artists in digital images, display and change of meta data, ...
7+
de: schnelles Ändern von Kommentar und Autor in Bildern, Anzeigen und Ändern von Metadaten, ...
8+
9+
languages:
10+
en:
11+
value: English
12+
slug: en
13+
de:
14+
value: Deutsch
15+
slug: de
16+
17+
back:
18+
en: Back to the Top
19+
de: Zurück zum Anfang
20+
21+
top:
22+
en: Top
23+
de: Anfang
24+
25+
content:
26+
en: Content
27+
de: Inhalt
28+
29+
homepage:
30+
en: en/overview.html
31+
de: de/uebersicht.html
32+
33+
latestnews:
34+
en: Latest news
35+
de: Letzte Meldungen
36+
37+
sitecreated:
38+
en: Site created using
39+
de: Website erstellt unter Verwendung von
40+
41+
othermasks:
42+
en: Other masks
43+
de: Sonstige Masken

_includes/footer.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<footer class="footer">
2+
<hr width="100%" size="2" color="grey" noshade>
3+
{% if site.github.is_project_page %}
4+
<p>Project maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a></p>
5+
{% endif %}
6+
<p>
7+
<a>&copy; Norbert Wagner 2024</a><br>
8+
<a>Hosted on GitHub Pages</a><br>
9+
<a>{{ snippets.sitecreated[page.language] }}</a><br>
10+
<a href="https://github.com/pages-themes/leap-day">pages-theme leap-day</a><br>
11+
<a href="https://github.com/ranbureand/multilingual-experiment">multilingual-experiment</a>
12+
</p>
13+
</footer>

_includes/head.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<head>
2+
<meta charset="utf-8" />
3+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
4+
<meta name="viewport" content="width=device-width, initial-scale=1" />
5+
6+
{%- seo -%}
7+
8+
<title>{% if page.title %}{{ page.title | escape }} / {{ site.title | escape }}{% else %}{{ site.title | escape }}{%
9+
endif %}</title>
10+
<meta name="description"
11+
content="{% if page.description %}{{ page.description | strip_html | strip_newlines }}{% else %}{{ site.description }}{% endif %}" />
12+
13+
<link rel="shortcut icon" type="image/png" href="/favicon.png">
14+
15+
{% include localizations.html %}
16+
17+
</head>

_includes/language-switch.html

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<li>
2+
{%- for language in snippets.languages %}
3+
4+
{%- if page.layout == 'page' or page.layout == 'document' or page.layout == 'screenshot' %}
5+
{%- assign navigation_pages = site.pages
6+
| where: 'language_reference', page.language_reference
7+
| where: 'language', language[1].slug %}
8+
{%- if navigation_pages.size == 1 %}
9+
{%- for navigation_page in navigation_pages %}
10+
{%- assign url = site.baseurl | append: navigation_page.url %}
11+
{%- endfor %}
12+
{%- else %}
13+
{%- assign navigation_pages = site.pages
14+
| where: 'language_reference', site.fallback_page
15+
| where: 'language', language[1].slug %}
16+
{%- for navigation_page in navigation_pages %}
17+
{%- assign url = site.baseurl | append: navigation_page.url %}
18+
{%- endfor %}
19+
{%- endif %}
20+
21+
{%- elsif page.layout == 'post' %}
22+
{%- assign navigation_posts = site.posts
23+
| where: 'language_reference', page.language_reference
24+
| where: 'language', language[1].slug %}
25+
{%- if navigation_posts.size == 1 %}
26+
{%- for navigation_post in navigation_posts %}
27+
{%- assign url = site.baseurl | append: navigation_post.url %}
28+
{%- endfor %}
29+
{%- else %}
30+
{%- assign navigation_pages = site.pages
31+
| where: 'language_reference', site.fallback_page
32+
| where: 'language', language[1].slug %}
33+
{%- for navigation_page in navigation_pages %}
34+
{%- assign url = site.baseurl | append: navigation_page.url %}
35+
{%- endfor %}
36+
{%- endif %}
37+
38+
{%- else %}
39+
{%- assign navigation_pages = site.pages
40+
| where: 'language_reference', site.fallback_page
41+
| where: 'language', language[1].slug %}
42+
{%- for navigation_page in navigation_pages %}
43+
{%- assign url = site.baseurl | append: navigation_page.url %}
44+
{%- endfor %}
45+
46+
{%- endif %}
47+
48+
{%- if page.language == language[1].slug %}
49+
<a style="color: grey">{{ language[1].value }}</a>
50+
{% else %}
51+
<a href="{{ url }}">{{ language[1].value }}</a>
52+
{% endif %}
53+
54+
{%- endfor %}
55+
</li>

0 commit comments

Comments
 (0)