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

WIP: Display a smaller version of the eMoflon logo on non-news pages #45

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
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
8 changes: 6 additions & 2 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,23 @@ defaultContentLanguage: en
title: eMoflon Project Site
theme: ["hugo-cloak-email", "cayman-hugo-theme"]

disableKinds: ["section"]

# Syntax highlighting
pygmentsCodefences: true
pygmentsStyle: pygments

taxonomies:
tag: tags
# tag: tags
# ^disables tag sub page generation

permalinks:
post: /:filename/

params:
# Header text, can be markdown
project_name: "![](/img/emoflon_logo_with_tex_semitransparent_300px.png)"
# project_name: "![](/img/emoflon_logo_with_tex_semitransparent_300px.png)"
# ^use site-specific headers instead
project_tagline: "**eMoflon** is a tool suite for Model-Driven Engineering (MDE) that provides a range of visual and textual languages for (meta)modelling and model management."

# Theme customizations by us
Expand Down
1 change: 1 addition & 0 deletions content/_index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
title: News
site_header: "![](/img/emoflon_logo_with_tex_semitransparent_300px.png)"
---
1 change: 1 addition & 0 deletions content/contact/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "Contact"
date: 2022-09-01
draft: false
site_header: "![](/img/emoflon_logo_with_tex_semitransparent_100px.png)"
---

You can send us an {{< cloakemail address="contact@emoflon.org" query="subject=Message from the emoflon.org webpage" display="email" >}}.
Expand Down
1 change: 1 addition & 0 deletions content/dev-team/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "Development Team"
date: 2022-09-01
draft: false
site_header: "![](/img/emoflon_logo_with_tex_semitransparent_100px.png)"
---

**eMoflon** is developed jointly at the [Ream-Time Systems Lab, TU Darmstadt](https://www.es.tu-darmstadt.de/en/) (TUDa) and the [Database and Information Systems Group, Paderborn University](https://cs.uni-paderborn.de/en/dbis/startseite/) (UPB).
Expand Down
1 change: 1 addition & 0 deletions content/dev/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "Development"
date: 2022-09-01
draft: false
site_header: "![](/img/emoflon_logo_with_tex_semitransparent_100px.png)"
---

**eMoflon** is developed jointly at the [Ream-Time Systems Lab, TU Darmstadt](https://www.es.tu-darmstadt.de/en/) (TUDa) and the [Database and Information Systems Group, Paderborn University](https://cs.uni-paderborn.de/en/dbis/startseite/) (UPB).
Expand Down
1 change: 1 addition & 0 deletions content/download/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "Download"
date: 2022-09-01
draft: false
site_header: "![](/img/emoflon_logo_with_tex_semitransparent_100px.png)"
---

{{< toc >}}
Expand Down
1 change: 1 addition & 0 deletions content/getting-started/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "Getting started with eMoflon"
date: 2022-09-01
draft: false
site_header: "![](/img/emoflon_logo_with_tex_semitransparent_100px.png)"
---

___
Expand Down
1 change: 1 addition & 0 deletions content/ibex/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "eMoflon::IBeX"
date: 2022-09-01
draft: false
site_header: "![](/img/emoflon_logo_with_tex_semitransparent_100px.png)"
---

| {{< toc >}} | {{< img src="/img/emoflon_logo_ibex.png" alt="" width="60%" >}} |
Expand Down
1 change: 1 addition & 0 deletions content/neo/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "eMoflon::Neo"
date: 2022-09-01
draft: false
site_header: "![](/img/emoflon_logo_with_tex_semitransparent_100px.png)"
---

<!-- Copy-pasted from the old eMoflon webpage -->
Expand Down
1 change: 1 addition & 0 deletions content/post/new-webpage/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "New Webpage"
date: 2022-09-02
draft: false
site_header: "![](/img/emoflon_logo_with_tex_semitransparent_100px.png)"
---

We launched the new **eMoflon** webpage today!
1 change: 1 addition & 0 deletions content/publications/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "Publications"
date: 2022-09-01
draft: false
site_header: "![](/img/emoflon_logo_with_tex_semitransparent_100px.png)"
---

Over the years, **eMoflon** has been applied in diverse application scenarios and domains.
Expand Down
26 changes: 26 additions & 0 deletions layouts/partials/header-nav.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<section class="page-header">
<h1 class="project-name">
{{ if not (isset site.Params "project_name") }}
{{ if (isset .Params "site_header") }}
{{ $.Params.site_header | markdownify }}
{{ else }}
{{ errorf "Set site_header on page $.title" }}
{{ end }}
{{ else }}
{{ $.Site.Params.project_name | default "project_name goes here" | markdownify }}
{{ end }}
</h1>
<h2 class="project-tagline">
{{ $.Site.Params.project_tagline | default "project_tagline goes here" | markdownify }}
</h2>
<nav>
{{ $current := . }}
{{ range .Site.Menus.nav }}
{{ $active := or ($current.IsMenuCurrent "nav" .) ($current.HasMenuCurrent "nav" .) }}
{{ $active = or $active (eq .Name $current.Title) }}
{{ $active = or $active (and (eq .Name "Blog") (eq $current.Section "post")) }}
{{ $active = or $active (and (eq .Name "Tags") (eq $current.Section "tags")) }}
<a href="{{ .URL }}" class="btn">{{ .Name }}</a>
{{ end }}
</nav>
</section>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.