reorganized code
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Sebastian Frank
2019-03-18 13:34:52 +01:00
parent 6b34509d9a
commit b2e0d78a2c
120 changed files with 1034 additions and 1067 deletions

View File

@@ -0,0 +1,90 @@
body {
margin: 0;
padding: 0;
color: #333;
background-color: lightgrey;
}
a {
color: #222;
}
#content {
padding: 20px;
background-color: #fff;
clear: both;
}
#dataImg {
float: right;
margin-left: 20px;
margin-bottom: 20px;
}
#logoDiv {
background-color: #444;
padding: 20px;
}
#logoDiv img {
max-width: 60%;
}
#mainNavDiv {
padding: 20px;
}
footer {
padding: 20px;
}
.nav ul {
list-style-type: square;
}
.nav li>a {
color: #555;
text-decoration: none;
}
.nav li>a:hover, .nav li.active>a {
color: #000;
}
.nav li.active>a {
font-weight: bold;
}
.langSelect a img {
border: 2px solid grey;
}
.langSelect a:hover img, .langSelect a.active img {
border: 2px solid black;
}
header .langSelect {
float: right;
padding: 20px;
}
#breadcrumb {
background-color: white;
padding-left: 20px;
padding-top: 20px;
}
#breadcrumb a {
text-decoration: none;
font-size: 0.6em;
color: #555;
padding-right: 10px;
}
#breadcrumb a:hover {
color: #000;
}
#breadcrumb a:before {
content: "▶ ";
}

BIN
_example/assets/img/de.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 B

BIN
_example/assets/img/en.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

13
_example/config.yml Normal file
View File

@@ -0,0 +1,13 @@
Webserver:
Type: "apache" # generates .htaccess
Assets:
FromPath: "assets"
ToPath: "assets"
Action: "copy" # symlink, copy or move
FixTemplate: # change path in html templates, no <base> used
Find: "\\.\\./assets/"
Replace: ""
OtherFiles:
Action: "copy"

View File

@@ -0,0 +1,8 @@
---
Template: base_intro.html
---
# Willkommen
Bitte wählen Sie eine Sprache:

View File

@@ -0,0 +1,20 @@
Index:
InputFile: "README.md"
OutputFile: "index.html"
Meta:
Title: "global title"
Description: "global description of example website"
Keywords: "global keywords"
Template: base.html
Path:
Strip: "^[0-9]*_(.*)"
IgnoreForNav: "^_"
Filename:
Strip: "(.*).md$"
Ignore: "^_"
OutputExtension: "html"

View File

@@ -0,0 +1,2 @@
This:
GoTo: main/home

View File

@@ -0,0 +1,11 @@
---
Meta:
Title: Home
---
# Home
Lorem ipsum...
Hier steht dann ne Menge Text. Der kann auch ***formatiert*** _werden_.

View File

@@ -0,0 +1,5 @@
This:
Navname: HOME
Data:
hoverText: Hover Text

View File

@@ -0,0 +1,20 @@
---
Meta:
Title: Leistungen und Referenzen
Data:
bild: bild.jpg
Template: base_multipart.html
---
# Leistungen
Hier stehen die ***Referenzen***, dsfdfsadfasdf.
---
## Hinweis
Das hier ist der `BodyPart.[1]`

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

View File

@@ -0,0 +1,11 @@
---
Meta:
Title: Adresse
---
# Adresse
Lorem ipsum...
![mein Bild](bild.jpg)

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@@ -0,0 +1,11 @@
---
Meta:
Title: Anfahrt
---
# Anfahrt
Lorem ipsum...
<div style="width: 400px;position: relative;"><iframe width="400" height="200" src="https://maps.google.com/maps?width=400&amp;height=200&amp;hl=en&amp;q=Gotha+(Titel)&amp;ie=UTF8&amp;t=&amp;z=10&amp;iwloc=B&amp;output=embed" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"></iframe><div style="position: absolute;width: 80%;bottom: 10px;left: 0;right: 0;margin-left: auto;margin-right: auto;color: #000;text-align: center;"><small style="line-height: 1.8;font-size: 2px;background: #fff;">Powered by <a href="http://www.googlemapsgenerator.com/pt/">Googlemapsgenerator.com/pt/</a> & <a href="https://lasagradafamiliatickets.de/">lasagrada familia tickets.de</a></small></div><style>#gmap_canvas img{max-width:none!important;background:none!important}</style></div><br />

View File

@@ -0,0 +1,5 @@
This:
GoTo: adresse/
Data:
hoverText: weiterer Text

View File

@@ -0,0 +1,3 @@
This:
GoTo: /de/service/impressum/
Navname: Impressum aus Service

View File

View File

@@ -0,0 +1,9 @@
---
Meta:
Title: Datenschutz
---
# Datenshutz
Lorem ipsum...

View File

@@ -0,0 +1,9 @@
---
Meta:
Title: AGB's
---
# AGB's
Lorem ipsum...

View File

@@ -0,0 +1,9 @@
---
Meta:
Title: Impressum
---
# Impressum
Lorem ipsum...

View File

@@ -0,0 +1,2 @@
This:
GoTo: main/home

View File

@@ -0,0 +1,9 @@
---
Meta:
Title: Home
---
# Home
Lorem ipsum...

View File

@@ -0,0 +1,9 @@
---
Meta:
Title: Services
---
# Services
Lorem ipsum...

View File

@@ -0,0 +1,9 @@
---
Meta:
Title: Contact
---
# Contact
Lorem ipsum...

View File

@@ -0,0 +1,2 @@
This:
GoTo: /en/service/imprint/

View File

@@ -0,0 +1,9 @@
---
Meta:
Title: Terms
---
# Terms
Lorem ipsum...

View File

@@ -0,0 +1,9 @@
---
Meta:
Title: Imprint
---
# Imprint
Lorem ipsum...

View File

@@ -0,0 +1,82 @@
<html>
<meta>
<meta charset="UTF-8">
<title>{{ Meta.Title }}</title>
<meta name="description" content="{{ Meta.Description }}" />
<meta name="keywords" content="{{ Meta.Keywords }}" />
<link rel="stylesheet" type="text/css" href="../assets/css/main.css">
</meta>
<body>
{% block header %}
<header>
<div class="langSelect">
{% for nav in NavSlice %}
<a href="{{ nav.GoTo }}" {% if nav.Active %}class="active"{% endif %}><img src="../assets/img/{{ nav.Navname }}.png" alt="{{ nav.Navname }}" style="height: 20px;"></a>
{% endfor %}
</div>
<div id="logoDiv"><img src="../assets/img/logo.png"></div>
<div id="mainNavDiv" class="nav">
<table border="0" style="width: 100%">
<tr>
<td>
<div><b>main Level 1 ...</b></div>
<ul>
{% for nav in NavActive.0.SubMap.main.SubSlice %}
<li {% if nav.Active %}class="active"{% endif %}><a href="{{ nav.GoTo }}" title="{{ nav.This.Data.hoverText }}">{{ nav.Navname }}</a>
{% if nav.SubSlice %}
<ul>
{% for nav2 in nav.SubSlice %}
<li {% if nav2.Active %}class="active"{% endif %}><a href="{{ nav2.GoTo }}" title="{{ nav2.This.Data.hoverText }}">{{ nav2.Navname }}</a>
</li>
{% endfor %}
</ul
{% endif %}
</li>
{% endfor %}
</ul>
</td>
<td>
<div><b>main/service Level 2</b></div>
<ul>
{% for nav in NavActive.2.SubSlice %}
<li {% if nav.Active %}class="active"{% endif %}><a href="{{ nav.GoTo }}" title="{{ nav.This.Data.hoverText }}">{{ nav.Navname }}</a>
</li>
{% endfor %}
</ul>
</td>
</tr>
</table>
</div>
</header>
{% endblock %}
{% block breadcrumb %}
<div id="breadcrumb">
{% for nav in NavActive %}
<a href="{{ nav.GoTo }}" title="{{ nav.This.Data.hoverText }}">{{ nav.Navname }}</a>
{% endfor %}
</div>
{% endblock %}
{% block content %}
<div id="content">
{{ Body }}
</div>
{% endblock %}
{% block footer %}
<footer class="nav">
<div><b>service Level 1</b></div>
<ul>
{% for nav in NavActive.0.SubMap.service.SubSlice %}
<li {% if nav.Active %}class="active"{% endif %}><a href="{{ nav.GoTo }}" title="{{ nav.This.Data.hoverText }}">{{ nav.Navname }}</a></li>
{% endfor %}
</ul>
</footer>
{% endblock %}
</body>
</html>

View File

@@ -0,0 +1,22 @@
{% extends 'base.html' %}
{% block header %}
<header>
<div id="logoDiv"><img src="../assets/img/logo.png"></div>
</header>
{% endblock header %}
{% block content %}
<div id="content">
{{ Body }}
<div class="langSelect">
{% for nav in NavSlice %}
<a href="{{ nav.GoTo }}"><img src="../assets/img/{{ nav.Navname }}.png" alt="{{ nav.Navname }}" style="height: 100px;"></a>
{% endfor %}
</div>
</div>
{% endblock content %}
{% block footer %}
{% endblock footer %}

View File

@@ -0,0 +1,17 @@
{% extends 'base.html' %}
{% block content %}
<div id="content">
{% if Data.bild %}
<img src="{{ Data.bild }}" id="dataImg">
{% endif %}
{{ BodyParts.0 }}
{% if BodyParts.1 %}
<div class="info">{{ BodyParts.1 }}</div>
{% endif %}
</div>
{% endblock content %}