Skip to content

Commit

Permalink
Merge pull request #60 from dmarcoux/remove-pages-in-german
Browse files Browse the repository at this point in the history
Remove pages in German
  • Loading branch information
dmarcoux authored Oct 20, 2024
2 parents 6d8c68d + beec997 commit 289f8d3
Show file tree
Hide file tree
Showing 15 changed files with 4 additions and 104 deletions.
7 changes: 0 additions & 7 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,6 @@ feed_filenames = ["rss.xml", "atom.xml"]
highlight_code = true
highlight_theme = "dracula"

[languages.de]
title = "Dany Marcoux"
description = """\
Software und DevOps Engineer mit 12+ Jahren Erfahrung. \
Ich schreibe über DevOps, Webentwicklung, Linux, Ruby, und mehr.\
"""

[extra]
menu = [
{ name = "Posts", url = "posts", weight = 1 },
Expand Down
4 changes: 0 additions & 4 deletions content/_index.de.md

This file was deleted.

1 change: 0 additions & 1 deletion content/posts/_index.de.md

This file was deleted.

1 change: 0 additions & 1 deletion content/posts/ci-with-markdownlint.de.md

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion content/posts/hash-in-nix-packages.de.md

This file was deleted.

1 change: 0 additions & 1 deletion content/posts/how-to-create-custom-haml-lint-linters.de.md

This file was deleted.

1 change: 0 additions & 1 deletion content/posts/manage-music-collection.de.md

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% import "macros/macros.html" as post_macros %}

<!DOCTYPE html>
<html lang="{{ lang | default(value="en") }}">
<html lang="en">
<html>

{% include "partials/header.html" %}
Expand Down
55 changes: 0 additions & 55 deletions templates/index.de.html

This file was deleted.

8 changes: 0 additions & 8 deletions templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@
<main>
<article>
<div class="title">
{% if lang != "en" %}
<div class="note-container">
<div class="note-content">
<p>Die Blogeinträge sind momentan nur auf Englisch verfügbar.</p>
</div>
</div>
{% endif %}

{{ post_macros::page_header(title=page.title) }}

<div class="meta">
Expand Down
2 changes: 1 addition & 1 deletion templates/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<meta property="og:title" content="{{ og_title }}" />
<meta property="og:type" content="{{ page.extra.meta.type | default(value="website") }}" />
<meta property="og:image" content="{{ get_url(path="images/og_image.png") }}" />
<meta property="og:locale" content="{{ lang | default(value="en") }}" />
<meta property="og:locale" content="en" />

{% set description = page.description | default(value=config.description) %}
{% set description_length = description | length %}
Expand Down
15 changes: 2 additions & 13 deletions templates/partials/nav.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<header>
<div class="main">
<a href={{ get_url(path="@/_index.md", lang=lang) }}>{{ config.title }}</a>
<a href={{ get_url(path="@/_index.md") }}>{{ config.title }}</a>

<div class="socials">
{% for social in config.extra.socials | default(value=[]) %}
Expand All @@ -19,18 +19,7 @@

<nav>
{% for menu in config.extra.menu | default(value=[]) %}
<a href={{ get_url(path=menu.url, lang=lang) }} style="margin-left: 0.5em">{{ menu.name }}</a>
<a href={{ get_url(path=menu.url) }} style="margin-left: 0.5em">{{ menu.name }}</a>
{% endfor %}

{# current_path is not defined on all templates, like the feeds, sitemap and 404 pages #}
{% if current_path is not defined or current_path is not starting_with("posts/") %}
{% if lang == "en" %}
<span style="margin-left:1em;background-color:var(--primary-color);color:white">EN</span>
<a href="{{ get_url(path="@/_index.md", lang="de") }}" style="margin-left: 0.5em">DE</a>
{% else %}
<a href="{{ get_url(path="@/_index.md", lang="en") }}" style="margin-left: 1em">EN</a>
<span style="margin-left:0.5em;background-color:var(--primary-color);color:white">DE</span>
{% endif %}
{% endif %}
</nav>
</header>
8 changes: 0 additions & 8 deletions templates/posts.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
{% extends "base.html" %}

{% block main_content %}
{% if lang != "en" %}
<div class="note-container">
<div class="note-content">
<p>Die Blogeinträge sind momentan nur auf Englisch verfügbar.</p>
</div>
</div>
{% endif %}

{% if section.extra.section_path -%}
{% set section = get_section(path=section.extra.section_path) %}
{% endif -%}
Expand Down

0 comments on commit 289f8d3

Please sign in to comment.