Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Fachgruppenwebseite Metadaten
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fginfo
Fachgruppenwebseite Metadaten
Commits
e113f1c4
Verified
Commit
e113f1c4
authored
2 years ago
by
Jake
Browse files
Options
Downloads
Patches
Plain Diff
updated base.html and page.html
parent
151a214f
No related branches found
No related tags found
No related merge requests found
Pipeline
#312630
failed
2 years ago
Stage: build
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
theme/templates/Makefile
+3
-0
3 additions, 0 deletions
theme/templates/Makefile
theme/templates/base.html
+15
-28
15 additions, 28 deletions
theme/templates/base.html
theme/templates/page.html
+17
-17
17 additions, 17 deletions
theme/templates/page.html
with
35 additions
and
45 deletions
theme/templates/Makefile
0 → 100644
+
3
−
0
View file @
e113f1c4
.PHONY
:
run
run
:
make
-C
../../fgs
This diff is collapsed.
Click to expand it.
theme/templates/base.html
+
15
−
28
View file @
e113f1c4
<!DOCTYPE html>
{#- TODO lang irgendwie vernünftig setzen/erkennen -#}
{%- if lang is not defined -%}
{%- set lang = DEFAULT_LANG -%}
{%- else -%}
Hurra!!! lang ist definiert als {{ lang }}.
{{ diese_variable_existiert_nicht_werfe_fehler }}
{%- endif -%}
{%- import 'macros/getters.html' as get with context -%}
{%- import 'macros/cards.html' as cards with context -%}
{%- import 'macros/renderers.html' as render with context -%}
<html
lang=
"{%- block html_lang -%}{{ DEFAULT_LANG }}{%- endblock html_lang -%}"
>
<html
lang=
"{%- block html_lang -%}{{ l }}{%- endblock html_lang -%}"
>
<head>
{% block head %}
<meta
charset=
"utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<title>
{% block title %}{{
l
[l
ang
].title_prefix }}{{
l
[l
ang
].sitename }}{{
l
[l
ang
].title_suffix }}{%endblock%}
</title>
<title>
{% block title %}{{
t
[l].title_prefix }}{{
t
[l].sitename }}{{
t
[l].title_suffix }}{%endblock%}
</title>
<!-- <base target="_blank"> -->
<!-- <meta HTTP-EQUIV="REFRESH" content="500; url=#"> -->
<link
rel=
"preload"
href=
"{{
SITEURL }}/{{ THEME_STATIC_DIR }}/css/{{ CSS_FILE
}}"
as=
"style"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{{
SITEURL }}/{{ THEME_STATIC_DIR }}/css/{{ CSS_FILE
}}"
/>
<link
rel=
"preload"
href=
"{{
siteurl }}/{{ theme.static_dir }}/css/{{ theme.css_file
}}"
as=
"style"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{{
siteurl }}/{{ theme.static_dir }}/css/{{ theme.css_file
}}"
/>
{#- TODO load javascript? -#}
{#- TODO og: meta tags -#}
{#- TODO favicon -#}
<!-- <link rel="icon" type="image/png" sizes="192x192" href="static/img/favicon-192x192.png"/>
<link rel="icon" type="image/png" sizes="32x32" href="static/img/favicon-32x32.png"/>-->
<!-- <link rel="icon" type="image/x-icon" sizes="16x16" href="static/img/favicon.ico"/> -->
{%- if FEED_ALL_ATOM %}
<link
href=
"{{ FEED_DOMAIN }}/{% if FEED_ALL_ATOM_URL %}{{ FEED_ALL_ATOM_URL }}{% else %}{{ FEED_ALL_ATOM }}{% endif %}"
type=
"application/atom+xml"
rel=
"alternate"
title=
"{{
l
[l
ang
].atom.title|e }}"
/>
{% endif -%}
{#
{%- if FEED_ALL_ATOM %}
<link
href=
"{{ FEED_DOMAIN }}/{% if FEED_ALL_ATOM_URL %}{{ FEED_ALL_ATOM_URL }}{% else %}{{ FEED_ALL_ATOM }}{% endif %}"
type=
"application/atom+xml"
rel=
"alternate"
title=
"{{
t
[l].atom.title|e }}"
/>
{% endif -%}
#}
{% block extra_head %}{% endblock extra_head %}
{% endblock head %}
</head>
<body>
<header>
{% block header %}
<h1><a
href=
"{{
SITEURL
}}/"
title=
"{{
l
[l
ang
].banner.title|e }}"
><img
alt=
"{{
l
[l
ang
].banner.alt|e }}"
src=
"{{
SITEURL }}/{{ THEME_STATIC_DIR
}}/images/banner-logo.png"
><span>
{{
l
[l
ang
].banner.prefix|e }}{{
l
[l
ang
].sitename|e }}{{
l
[l
ang
].banner.suffix|e }}
</span></a></h1>
<h1><a
href=
"{{
siteurl }}/{{ l
}}/"
title=
"{{
t
[l].banner.title|e }}"
><img
alt=
"{{
t
[l].banner.alt|e }}"
src=
"{{
siteurl }}/{{ theme.static_dir
}}/images/banner-logo.png"
><span>
{{
t
[l].banner.prefix|e }}{{
t
[l].sitename|e }}{{
t
[l].banner.suffix|e }}
</span></a></h1>
{% block extra_header %}{% endblock extra_header %}
{% endblock header %}
</header>
...
...
@@ -46,19 +34,17 @@ Hurra!!! lang ist definiert als {{ lang }}.
<label
for=
"show-header-menu"
class=
"show-header-menu-bg"
>
</label>
<nav>
<ul>
{% for item in sc.menuitems -%}
{%- if item.category is defined -%}
{%- call(nativecat, sccat, _) get.category_by_name(item.category) -%}
<li
style=
"--category-color: {{ sccat.color }}"
><a
href=
"{{ SITEURL }}/{{ nativecat.url }}"
>
{{ sccat[lang]|e }}
</a></li>
{%- endcall -%}
{%- elif item.tag is defined -%}
{% for item in config.menuitems -%}
{{item}}
{#
{%- if item.tag is defined -%}
{%- call(nativetag, sccat, _) get.tag_by_name(item.tag) -%}
<li
style=
"--category-color: {{ sccat.color }}"
><a
href=
"{{
SITEURL
}}/{{ nativetag.url }}"
>
{{ sccat[lang]|e }}
</a></li>
<li
style=
"--category-color: {{ sccat.color }}"
><a
href=
"{{
siteurl
}}/{{ nativetag.url }}"
>
{{ sccat[lang]|e }}
</a></li>
{%- endcall -%}
{%- elif item.slug is defined -%}
{%- call(aop, _) get.article_or_page_by_slug(item.slug, lang) -%}
{%- call(__, sccat, ___) get.category_by_name(aop.category.name, True) -%}
<li
style=
"--category-color: {{ sccat.color }}"
><a
href=
"{{
SITEURL
}}/{{ aop.url }}"
>
{{ aop.title }}
</a></li>
<li
style=
"--category-color: {{ sccat.color }}"
><a
href=
"{{
siteurl
}}/{{ aop.url }}"
>
{{ aop.title }}
</a></li>
{%- endcall -%}
{%- endcall -%}
{%- else -%}
...
...
@@ -66,6 +52,7 @@ Hurra!!! lang ist definiert als {{ lang }}.
<strong>
ERROR: menuitems: Cannot parse item: {{ item|string|e }}
</strong><br
/>
<br
/>
{%- endif -%}
#}
{#- TODO add active class if this is the current site -#}
{%- endfor %}
</ul>
...
...
This diff is collapsed.
Click to expand it.
theme/templates/page.html
+
17
−
17
View file @
e113f1c4
{% extends "base.html" %}
{%- macro page_translation_link(translation, is_current=False) -%}
<a
href=
"{{
SITEURL
}}/{{ translation.url }}"
hreflang=
"{{ translation.lang }}"
title=
"{{ l[translation.lang].langname|e }}"
>
<img
alt=
"{{ l[translation.lang].langname|e }}"
src=
"{{
SITEURL
}}/{{ THEME_STATIC_DIR }}/images/flags/{{ translation.lang }}.svg"
>
<a
href=
"{{
siteurl
}}/{{ translation.url }}"
hreflang=
"{{ translation.lang }}"
title=
"{{ l[translation.lang].langname|e }}"
>
<img
alt=
"{{ l[translation.lang].langname|e }}"
src=
"{{
siteurl
}}/{{ THEME_STATIC_DIR }}/images/flags/{{ translation.lang }}.svg"
>
</a>
{%- endmacro -%}
...
...
@@ -12,7 +12,7 @@
{% block extra_head %}
{%- for translation in page.translations -%}
<link
rel=
"alternate"
hreflang=
"{{ translation.lang }}"
href=
"{{
SITEURL
}}/{{ translation.url }}"
>
<link
rel=
"alternate"
hreflang=
"{{ translation.lang }}"
href=
"{{
siteurl
}}/{{ translation.url }}"
>
{%- endfor -%}
{% if page.summary %}
...
...
@@ -29,31 +29,31 @@
<footer>
{%- if page.authors -%}
<address>
{{
l
[l
ang
].page.authors_prefix }}
{{
t
[l].page.authors_prefix }}
{% for author in page.authors %}
<a
href=
"{{
SITEURL
}}/{{ author.url }}"
>
{{ author }}
</a>
<a
href=
"{{
siteurl
}}/{{ author.url }}"
>
{{ author }}
</a>
{% endfor %}
{{
l
[l
ang
].page.authors_suffix }}
{{
t
[l].page.authors_suffix }}
</address>
{%- endif -%}
<span>
{{
l
[l
ang
].page.published_prefix }}
<abbr
title=
"{{ page.date.isoformat() }}"
>
{{ page.
locale_date
}}
</abbr>
{{
l
[l
ang
].page.published_suffix }}
</span>
<span>
{{
t
[l].page.published_prefix }}
<abbr
title=
"{{ page.date
_created
.isoformat() }}"
>
{{ page.
date_created.isoformat()
}}
</abbr>
{{
t
[l].page.published_suffix }}
</span>
{%- if page.modified -%}
<br
/>
<span>
{{
l
[l
ang
].page.modified_prefix }}
<span>
{{
t
[l].page.modified_prefix }}
<abbr
title=
"{{ page.modified.isoformat() }}"
>
{{ page.locale_modified }}
</abbr>
{{
l
[l
ang
].page.modified_suffix }}
</span>
{{
t
[l].page.modified_suffix }}
</span>
{%- endif -%}
<br
/>
<span>
{{
l
[l
ang
].page.category_prefix }}
<a
href=
"{{
SITEURL
}}/{{ page.category.url }}"
>
{{ page.category }}
</a>
{{
l
[l
ang
].page.category_suffix }}
</span>
<span>
{{
t
[l].page.category_prefix }}
<a
href=
"{{
siteurl
}}/{{ page.category.url }}"
>
{{ page.category }}
</a>
{{
t
[l].page.category_suffix }}
</span>
<br
/>
<span>
{{
l
[l
ang
].page.languages_prefix }}
</span>
<ul
class=
"languages"
>
<span>
{{
t
[l].page.languages_prefix }}
</span>
{#
<ul
class=
"languages"
>
{%- for translation in page.translations -%}
<li>
{{ page_translation_link(translation) }}
...
...
@@ -62,8 +62,8 @@
<li>
{{ page_translation_link(page, True) }}
</li>
</ul>
{{
l
[l
ang
].page.languages_suffix }}
</ul>
#}
{{
t
[l].page.languages_suffix }}
</footer>
</article>
{% endblock %}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment