top img in website
@ -2,6 +2,14 @@
|
||||
Markdown:
|
||||
ChromaRenderer: False
|
||||
|
||||
Data:
|
||||
background: /img/coffee.jpg
|
||||
|
||||
slider:
|
||||
- img: /img/coffee.jpg
|
||||
alt:
|
||||
opacity: 1
|
||||
|
||||
---
|
||||
|
||||
# mark2web
|
||||
|
@ -1,3 +1,13 @@
|
||||
---
|
||||
Data:
|
||||
background: /img/laptop.jpg
|
||||
|
||||
slider:
|
||||
- img: /img/laptop.jpg
|
||||
alt:
|
||||
opacity: 1
|
||||
|
||||
---
|
||||
# Installation
|
||||
|
||||
Damit die korrekten Versionsinformationen dynamisch in das finale mark2web-Binary eingefügt wurde, ist eine manuelle Installation aus dem Git-Repository sinnvoll.
|
||||
|
@ -1,3 +1,13 @@
|
||||
---
|
||||
Data:
|
||||
|
||||
slider:
|
||||
- img: /img/folder.jpg
|
||||
alt:
|
||||
opacity: 1
|
||||
|
||||
---
|
||||
|
||||
# Benutzung
|
||||
|
||||
## Ordnerstruktur
|
||||
@ -38,6 +48,8 @@ DIR assets (kann auch abweichend benannt werden)
|
||||
DIR css
|
||||
|
||||
DIR templates
|
||||
DIR filters
|
||||
FILE myfilter.js
|
||||
FIL base.html
|
||||
FIL base_sub.html
|
||||
|
||||
|
@ -1,3 +1,13 @@
|
||||
---
|
||||
Data:
|
||||
|
||||
slider:
|
||||
- img: /img/wire.jpg
|
||||
alt:
|
||||
opacity: 1
|
||||
|
||||
---
|
||||
|
||||
# Konfiguration
|
||||
|
||||
Die Konfigurationsdatein sind im YAML-Format gehalten (siehe: [Wikipedia](https://de.wikipedia.org/wiki/YAML)).
|
||||
|
@ -1,3 +1,13 @@
|
||||
---
|
||||
Data:
|
||||
|
||||
slider:
|
||||
- img: /img/write.jpg
|
||||
alt:
|
||||
opacity: 1
|
||||
|
||||
---
|
||||
|
||||
# Inhalte
|
||||
|
||||
Die Inhalte der Website werden im Ordner `content` und dessen Unterordnern gespeichert.
|
||||
|
@ -1,3 +1,13 @@
|
||||
---
|
||||
Data:
|
||||
|
||||
slider:
|
||||
- img: /img/design.jpg
|
||||
alt:
|
||||
opacity: 1
|
||||
|
||||
---
|
||||
|
||||
# Templates
|
||||
|
||||
Templates werden über das pongo2-Paket gerendert. Dieses nutzt die Template-Sprache **Django-Template**.
|
||||
|
@ -1,2 +1,9 @@
|
||||
This:
|
||||
GoTo: ordnerstruktur
|
||||
GoTo: ordnerstruktur
|
||||
|
||||
Data:
|
||||
|
||||
slider:
|
||||
- img: /img/gears.jpg
|
||||
alt:
|
||||
opacity: 1
|
||||
|
@ -1,5 +1,14 @@
|
||||
---
|
||||
Template: base_blog.html
|
||||
|
||||
Data:
|
||||
background: /img/blog.jpg
|
||||
|
||||
slider:
|
||||
- img: /img/blog.jpg
|
||||
alt:
|
||||
opacity: 1
|
||||
|
||||
---
|
||||
|
||||
# Blog
|
BIN
website/img/blog.jpg
Normal file
After Width: | Height: | Size: 714 KiB |
BIN
website/img/coffee.jpg
Normal file
After Width: | Height: | Size: 453 KiB |
BIN
website/img/design.jpg
Normal file
After Width: | Height: | Size: 436 KiB |
BIN
website/img/desk.jpg
Normal file
After Width: | Height: | Size: 644 KiB |
BIN
website/img/folder.jpg
Normal file
After Width: | Height: | Size: 524 KiB |
BIN
website/img/gears.jpg
Normal file
After Width: | Height: | Size: 881 KiB |
BIN
website/img/html.jpg
Normal file
After Width: | Height: | Size: 520 KiB |
BIN
website/img/keyboard.jpg
Normal file
After Width: | Height: | Size: 595 KiB |
BIN
website/img/laptop.jpg
Normal file
After Width: | Height: | Size: 691 KiB |
BIN
website/img/laptop2.jpg
Normal file
After Width: | Height: | Size: 389 KiB |
BIN
website/img/wire.jpg
Normal file
After Width: | Height: | Size: 171 KiB |
BIN
website/img/write.jpg
Normal file
After Width: | Height: | Size: 715 KiB |
@ -154,7 +154,7 @@ label {font-weight:600;}
|
||||
# Header
|
||||
--------------------------------------------------------------*/
|
||||
#header {height:80px;}
|
||||
#header .logo {height:70%; max-width:500px;}
|
||||
#header .logo {height:70%; max-width:400px;}
|
||||
#header .logo img {height:100%;}
|
||||
|
||||
#header .container {
|
||||
@ -175,6 +175,7 @@ label {font-weight:600;}
|
||||
z-index:300;
|
||||
background:none;
|
||||
}
|
||||
#header .logo {height:70%; max-width:100px;}
|
||||
#header .logo img {height:auto; width:100%;}
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 22 KiB |
BIN
website/project-files/img/logo_text.png
Normal file
After Width: | Height: | Size: 14 KiB |
@ -29,7 +29,14 @@
|
||||
|
||||
<header id="header">
|
||||
<div class="container">
|
||||
<div class="logo"><a href="{{ "/"|relative_path }}"><img src="project-files/img/logo.png" alt=""></a></div>
|
||||
<div class="logo" {% if not Data.slider %}style="max-width: 400px;"{% endif %}>
|
||||
<a href="{{ "/"|relative_path }}">
|
||||
<picture>
|
||||
<source media="(max-width: 768px)" srcset="project-files/img/logo_text.png">
|
||||
<img src="project-files/img/logo{% if not Data.slider %}_text{% endif %}.png" alt="mark2web Logo">
|
||||
</picture>
|
||||
</a>
|
||||
</div>
|
||||
<a id="pull">
|
||||
<span class="pull_button">
|
||||
<span></span>
|
||||
@ -43,6 +50,16 @@
|
||||
|
||||
<!-- ========== Slider ========== -->
|
||||
<section class="slider white_arrows" data-dots="true" data-arrows="true">
|
||||
{% for sl in Data.slider %}
|
||||
<div class="slide">
|
||||
<img
|
||||
src="{{ sl.img|image_process:"p=fill,w=1440,h=600,q=60" }}"
|
||||
srcset="{{ sl.img|image_process:"p=fill,w=768,h=384,q=60" }} 768w,
|
||||
{{ sl.img|image_process:"p=fill,w=1440,h=600,q=60" }} 1440w,
|
||||
{{ sl.img|image_process:"p=fill,w=1920,h=800,q=60" }} 1920w"
|
||||
alt="{{ sl.alt }}" style="opacity:{{ sl.opacity|default:1 }}">
|
||||
</div>
|
||||
{% endfor %}
|
||||
</section>
|
||||
|
||||
<!-- ========== Navigation ========== -->
|
||||
@ -80,6 +97,9 @@
|
||||
|
||||
<!-- ========== Main Content ========== -->
|
||||
<div class="maincontent">
|
||||
{% if Data.background %}
|
||||
<img src="{{ Data.background|relative_path }}" alt="{{ Meta.Title }}" class="img2bg">
|
||||
{% endif %}
|
||||
<div class="white_section section_padding">
|
||||
<div class="container">
|
||||
{% block part1 %}
|
||||
|