harms-columns-front-page 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +170 -0
- data/_includes/footer.html +38 -0
- data/_includes/header.html +167 -0
- data/_includes/icon-github.html +1 -0
- data/_includes/icon-github.svg +1 -0
- data/_layouts/home.html +83 -0
- data/_layouts/page.html +18 -0
- data/_layouts/post.html +21 -0
- data/_sass/_base.sass +87 -0
- data/_sass/_buttons.sass +22 -0
- data/_sass/_colors.sass +6 -0
- data/_sass/_footer.sass +16 -0
- data/_sass/_header.sass +93 -0
- data/_sass/_headings.sass +24 -0
- data/_sass/_nav.sass +195 -0
- data/_sass/_posts.sass +66 -0
- data/_sass/_reset.sass +39 -0
- data/_sass/_search.sass +83 -0
- data/_sass/_special-format.sass +171 -0
- data/assets/favicon.png +0 -0
- data/assets/jt.jpg +0 -0
- data/assets/main.js +104 -0
- data/assets/main.sass +16 -0
- metadata +110 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 167b146ab5f4728c91082ad7fecc95c2d5c0ac24
|
4
|
+
data.tar.gz: 9810819f885db8d91a88c0ace354db08f62eaa08
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 1718d6c7c8dfc713833cc187af557e9b1ac439971afd05fbf6c68c365f878be1eb28de4939d728c428fb2d879e3ce7e949e30d4900d3e27fe208fee6ea3a447d
|
7
|
+
data.tar.gz: 27b15024c210cb5331fffb08e9b118dc25282a977701f9eafdfff6d515ee9f3e63a37b06d816d4da39c7af60d486cb31ee1bff28465ecaa761583e0b3e2cd14c
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Michael Harms
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,170 @@
|
|
1
|
+
# harms-columns-front-page
|
2
|
+
|
3
|
+
This jekyll theme was developed as part of a bachelor thesis.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Step 1: Add this line to the bottom of your Jekyll site's `Gemfile`:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem "harms-columns-front-page"
|
11
|
+
```
|
12
|
+
Step 2: Install the theme by running this in the terminal:
|
13
|
+
|
14
|
+
bundle
|
15
|
+
|
16
|
+
Step 3: Add this lines to the bottom of your Jekyll site's `_config.yml`:
|
17
|
+
|
18
|
+
```yaml
|
19
|
+
theme: harms-columns-front-page
|
20
|
+
gems:
|
21
|
+
- jekyll-lunr-js-search
|
22
|
+
```
|
23
|
+
|
24
|
+
Step 4: And then run the following command in the terminal:
|
25
|
+
|
26
|
+
bundle exec jekyll serve
|
27
|
+
|
28
|
+
Now you can head over to <http://localhost:4000> in your browser and view the new theme on your jekyll site.
|
29
|
+
|
30
|
+
## Updating
|
31
|
+
|
32
|
+
If you've already installed this theme for your Jekyll site, you can update it by running the following command in the terminal:
|
33
|
+
|
34
|
+
bundle update
|
35
|
+
|
36
|
+
## Usage
|
37
|
+
|
38
|
+
### Global options
|
39
|
+
The following options are available to use in your Jekyll site's `_config.yml`.
|
40
|
+
|
41
|
+
**Site Title**
|
42
|
+
|
43
|
+
Appears in the header and as the title of your browser window.
|
44
|
+
|
45
|
+
```yaml
|
46
|
+
title: Your title here
|
47
|
+
```
|
48
|
+
|
49
|
+
**Site Description**
|
50
|
+
|
51
|
+
This is the meta description of your site.
|
52
|
+
|
53
|
+
```yaml
|
54
|
+
description: Your site description here.
|
55
|
+
```
|
56
|
+
|
57
|
+
**Profile Image**
|
58
|
+
|
59
|
+
This image will appear as a little profile image in your header.
|
60
|
+
|
61
|
+
```yaml
|
62
|
+
profile-image: path/to/your/image/here.jpg
|
63
|
+
```
|
64
|
+
|
65
|
+
**Favicon**
|
66
|
+
|
67
|
+
The favicon will appear as the icon alongside the title of your site in the browser window. Please use a png-file.
|
68
|
+
|
69
|
+
```yaml
|
70
|
+
favicon: path/to/your/favicon/here.png
|
71
|
+
```
|
72
|
+
|
73
|
+
**Subtitle**
|
74
|
+
|
75
|
+
The subtitle will appear in your header under the site title.
|
76
|
+
|
77
|
+
```yaml
|
78
|
+
subtitle: Your subtitle here
|
79
|
+
```
|
80
|
+
|
81
|
+
**Social Links**
|
82
|
+
|
83
|
+
The links to your social profiles will appear in the footer of your site. You have to specify a title and the link url like so:
|
84
|
+
|
85
|
+
```yaml
|
86
|
+
social:
|
87
|
+
- title: Link 1
|
88
|
+
url: http://www.your-first-link-here.com
|
89
|
+
- title: Link 2
|
90
|
+
url: http://www.your-second-link-here.com
|
91
|
+
```
|
92
|
+
Optionally you can specify the path to an icon that should be used for the link instead of the title.
|
93
|
+
|
94
|
+
```yaml
|
95
|
+
social:
|
96
|
+
- title: Link 1
|
97
|
+
url: http://www.your-first-link-here.com
|
98
|
+
icon: path/to/social/icon/1.jpg
|
99
|
+
- title: Link 2
|
100
|
+
url: http://www.your-second-link-here.com
|
101
|
+
icon: path/to/social/icon/1.jpg
|
102
|
+
```
|
103
|
+
|
104
|
+
**Footer Copyright Text**
|
105
|
+
|
106
|
+
You can add your name to the copyright section in the footer.
|
107
|
+
|
108
|
+
```yaml
|
109
|
+
footer-copyright: Year and name here
|
110
|
+
```
|
111
|
+
**Home columns**
|
112
|
+
|
113
|
+
Here you can add content for the column section on the home page. You have to specify a heading and the content. The button url is optional: if it is not set, there will be no button for that column on your site.
|
114
|
+
```yaml
|
115
|
+
home-columns:
|
116
|
+
- heading: Your heading 1 here
|
117
|
+
content: Your content 1 here
|
118
|
+
button-url: http://www.your-link-1-here.com
|
119
|
+
|
120
|
+
- heading: Your heading 2 here
|
121
|
+
content: Your content 2 here
|
122
|
+
button-url: http://www.your-link-2-here.com
|
123
|
+
|
124
|
+
- heading: Your heading 3 here
|
125
|
+
content: Your content 3 here
|
126
|
+
button-url: http://www.your-link-3-here.com
|
127
|
+
```
|
128
|
+
|
129
|
+
### Page and posts options
|
130
|
+
|
131
|
+
The following options are available to use in each of your Jekyll pages or posts front matter.
|
132
|
+
|
133
|
+
**Layout**
|
134
|
+
|
135
|
+
You can specify a layout for a page/post like this:
|
136
|
+
|
137
|
+
```yaml
|
138
|
+
layout: layout-name-here
|
139
|
+
```
|
140
|
+
|
141
|
+
The available layouts are:
|
142
|
+
* `home`: Default layout for the home page
|
143
|
+
* `page`: Default layout for subpages
|
144
|
+
* `post`: Default layout for posts
|
145
|
+
|
146
|
+
**Title**
|
147
|
+
|
148
|
+
This specifies the title of your page/post, which will appear on top of the page/post (except for the home page) and in the title of your browser window behind your site title.
|
149
|
+
|
150
|
+
```yaml
|
151
|
+
title: Your page/post title here
|
152
|
+
```
|
153
|
+
|
154
|
+
TODO: Write further options for the posts and pages.
|
155
|
+
|
156
|
+
<!-- ## Contributing
|
157
|
+
|
158
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
159
|
+
|
160
|
+
## Development
|
161
|
+
|
162
|
+
To set up your environment to develop this theme, run `bundle install`.
|
163
|
+
|
164
|
+
Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
|
165
|
+
|
166
|
+
When your theme is released, only the files in `_layouts`, `_includes`, and `_sass` tracked with Git will be released. -->
|
167
|
+
|
168
|
+
## License
|
169
|
+
|
170
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
@@ -0,0 +1,38 @@
|
|
1
|
+
|
2
|
+
<footer>
|
3
|
+
|
4
|
+
<p>© {{ site.footer-copyright }} - <a href="/impressum">Impressum</a> - Webdesign by <a href="https://www.harms.design" target="_blank">Michael Harms</a></p>
|
5
|
+
|
6
|
+
</footer>
|
7
|
+
|
8
|
+
<script
|
9
|
+
src="https://code.jquery.com/jquery-3.2.1.min.js"
|
10
|
+
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
|
11
|
+
crossorigin="anonymous">
|
12
|
+
</script>
|
13
|
+
<script src="{{ "/assets/main.js " | relative_url }}"></script>
|
14
|
+
<script src="/js/search.min.js" type="text/javascript" charset="utf-8"></script>
|
15
|
+
{% raw %}
|
16
|
+
<script id="search-results-template" type="text/mustache">
|
17
|
+
{{#entries}}
|
18
|
+
<article>
|
19
|
+
<a href="{{url}}">{{title}}</a>
|
20
|
+
{{#date}} - <small><time datetime="{{pubdate}}" pubdate>{{displaydate}}</time></small>{{/date}}
|
21
|
+
</article>
|
22
|
+
{{/entries}}
|
23
|
+
</script>
|
24
|
+
{% endraw %}
|
25
|
+
<script type="text/javascript">
|
26
|
+
$(function() {
|
27
|
+
$('#search-query').lunrSearch({
|
28
|
+
indexUrl : '/js/index.json', // url for the .json file containing search index data
|
29
|
+
results : '#search-results', // selector for containing search results element
|
30
|
+
template : '#search-results-template', // selector for Mustache.js template
|
31
|
+
titleMsg : '<h3>Suchergebnisse</h3><p>Der Suchbegriff findet sich in:</p>', // message attached in front of results (can be empty)
|
32
|
+
emptyMsg : '<p>Keine Suchergebnisse gefunden.</p>' // shown message if search returns no results
|
33
|
+
});
|
34
|
+
});
|
35
|
+
</script>
|
36
|
+
</body>
|
37
|
+
|
38
|
+
</html>
|
@@ -0,0 +1,167 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: " en " }}">
|
3
|
+
|
4
|
+
<head>
|
5
|
+
<meta charset="utf-8">
|
6
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
8
|
+
|
9
|
+
<title>{{ site.title | escape }}{% if page.title %} | {{ page.title | escape }}{% endif %}</title>
|
10
|
+
<meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
|
11
|
+
|
12
|
+
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet">
|
13
|
+
<link rel="stylesheet" href="{{ "/assets/main.css " | relative_url }}">
|
14
|
+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
|
15
|
+
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ " /feed.xml " | relative_url }}">
|
16
|
+
<link rel="icon" type="image/png" href="{{ site.favicon }}" sizes="32x32">
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<nav>
|
21
|
+
<ul class="desktop-nav">
|
22
|
+
|
23
|
+
<div class="search-container">
|
24
|
+
<form action="" method="get">
|
25
|
+
<input type="text" id="search-query" name="q" placeholder="Suchen..." autocomplete="off">
|
26
|
+
</form>
|
27
|
+
<div class="close-search">
|
28
|
+
<div class="close-search-button">
|
29
|
+
<div class="close-search-line" id="line-a">
|
30
|
+
|
31
|
+
</div>
|
32
|
+
<div class="close-search-line" id="line-b">
|
33
|
+
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
|
40
|
+
{% assign sorted_pages = site.pages | sort:"nav-order" %}
|
41
|
+
{% for item in sorted_pages %}
|
42
|
+
{% if item.nav == true %}
|
43
|
+
<li {% if item.url == page.url %} class="active" {% endif %}>
|
44
|
+
<a href="{{ item.permalink }}">{{ item.title }}</a>
|
45
|
+
</li>
|
46
|
+
{% endif %}
|
47
|
+
{% endfor %}
|
48
|
+
|
49
|
+
<li class="search-button">
|
50
|
+
<a href="#">
|
51
|
+
<svg id="search-icon" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" width="19.70711" height="20.49911" viewBox="0 0 19.70711 20.49911">
|
52
|
+
<defs>
|
53
|
+
<style>
|
54
|
+
.cls-1, .cls-2 {
|
55
|
+
fill: none;
|
56
|
+
}
|
57
|
+
|
58
|
+
.cls-2 {
|
59
|
+
stroke-width: 2px;
|
60
|
+
}
|
61
|
+
</style>
|
62
|
+
</defs>
|
63
|
+
<title>Gruppe 19</title>
|
64
|
+
<g id="Gruppe_19" data-name="Gruppe 19">
|
65
|
+
<g id="Ellipse_1" data-name="Ellipse 1">
|
66
|
+
<circle class="cls-1" cx="7.521" cy="7.521" r="7.521"/>
|
67
|
+
<circle class="cls-2" cx="7.521" cy="7.521" r="6.521"/>
|
68
|
+
</g>
|
69
|
+
<line id="Linie_1" data-name="Linie 1" class="cls-2" x1="11.875" y1="12.667" x2="19" y2="19.792"/>
|
70
|
+
</g>
|
71
|
+
</svg>
|
72
|
+
</a>
|
73
|
+
</li>
|
74
|
+
|
75
|
+
<li class=" mobile menu-button">
|
76
|
+
|
77
|
+
<div class="menu-button-container">
|
78
|
+
<div class="menu-button-line" id="line-1">
|
79
|
+
|
80
|
+
</div>
|
81
|
+
<div class="menu-button-line" id="line-2">
|
82
|
+
|
83
|
+
</div>
|
84
|
+
<div class="menu-button-line" id="line-3">
|
85
|
+
|
86
|
+
</div>
|
87
|
+
|
88
|
+
</div>
|
89
|
+
|
90
|
+
</li>
|
91
|
+
<li class="mobile search-button">
|
92
|
+
|
93
|
+
<a href="#">
|
94
|
+
<svg id="search-icon" data-name="Ebene 1" xmlns="http://www.w3.org/2000/svg" width="19.70711" height="20.49911" viewBox="0 0 19.70711 20.49911">
|
95
|
+
<defs>
|
96
|
+
<style>
|
97
|
+
.cls-1, .cls-2 {
|
98
|
+
fill: none;
|
99
|
+
}
|
100
|
+
|
101
|
+
.cls-2 {
|
102
|
+
stroke-width: 2px;
|
103
|
+
}
|
104
|
+
</style>
|
105
|
+
</defs>
|
106
|
+
<title>Gruppe 19</title>
|
107
|
+
<g id="Gruppe_19" data-name="Gruppe 19">
|
108
|
+
<g id="Ellipse_1" data-name="Ellipse 1">
|
109
|
+
<circle class="cls-1" cx="7.521" cy="7.521" r="7.521"/>
|
110
|
+
<circle class="cls-2" cx="7.521" cy="7.521" r="6.521"/>
|
111
|
+
</g>
|
112
|
+
<line id="Linie_1" data-name="Linie 1" class="cls-2" x1="11.875" y1="12.667" x2="19" y2="19.792"/>
|
113
|
+
</g>
|
114
|
+
</svg>
|
115
|
+
</a>
|
116
|
+
|
117
|
+
</li>
|
118
|
+
</ul>
|
119
|
+
<!-- <ul class="mobile-nav">
|
120
|
+
|
121
|
+
</ul> -->
|
122
|
+
</nav>
|
123
|
+
|
124
|
+
<div id="search-results" style="display: none;"></div>
|
125
|
+
|
126
|
+
<div class="mobile-nav-content">
|
127
|
+
<ul>
|
128
|
+
{% assign sorted_pages = site.pages | sort:"nav-order" %}
|
129
|
+
{% for item in sorted_pages %}
|
130
|
+
{% if item.nav == true %}
|
131
|
+
<li {% if item.url == page.url %} class="active" {% endif %}>
|
132
|
+
<a href="{{ item.permalink }}">{{ item.title }}</a>
|
133
|
+
</li>
|
134
|
+
{% endif %}
|
135
|
+
{% endfor %}
|
136
|
+
</ul>
|
137
|
+
</div>
|
138
|
+
|
139
|
+
{% if page.featured-image %}
|
140
|
+
<div class="header" style="height: 120px; background-image: url({{ page.featured-image }}); background-size: cover; background-position: center">
|
141
|
+
{% else %}
|
142
|
+
<div class="header">
|
143
|
+
<div class="header-content">
|
144
|
+
<div class="header-left">
|
145
|
+
<div class="profile-image" style="background-image: url('{{ site.profile-image }}')"></div>
|
146
|
+
<div class="header-text">
|
147
|
+
<h1>{{ site.title | escape }}</h1>
|
148
|
+
<p class="sub-title">{{ site.subtitle | escape }}</p>
|
149
|
+
</div>
|
150
|
+
</div>
|
151
|
+
|
152
|
+
<div class="header-right">
|
153
|
+
{% for item in site.social %}
|
154
|
+
|
155
|
+
{% if item.icon %}
|
156
|
+
<a href="{{ item.url }}" target="_blank"><img class="social-icon" src="{{ item.icon }}"></a>
|
157
|
+
{% else %}
|
158
|
+
<a class="button light" href="{{ item.url }}" target="_blank">{{ item.title }}</a>
|
159
|
+
{% endif %}
|
160
|
+
|
161
|
+
{% endfor %}
|
162
|
+
</div>
|
163
|
+
|
164
|
+
</div>
|
165
|
+
{% endif %}
|
166
|
+
|
167
|
+
</div>
|
@@ -0,0 +1 @@
|
|
1
|
+
<a href="https://github.com/{{ include.username }}"><span class="icon icon--github">{% include icon-github.svg %}</span><span class="username">{{ include.username }}</span></a>
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg viewBox="0 0 16 16" width="16px" height="16px"><path fill="#828282" d="M7.999,0.431c-4.285,0-7.76,3.474-7.76,7.761 c0,3.428,2.223,6.337,5.307,7.363c0.388,0.071,0.53-0.168,0.53-0.374c0-0.184-0.007-0.672-0.01-1.32 c-2.159,0.469-2.614-1.04-2.614-1.04c-0.353-0.896-0.862-1.135-0.862-1.135c-0.705-0.481,0.053-0.472,0.053-0.472 c0.779,0.055,1.189,0.8,1.189,0.8c0.692,1.186,1.816,0.843,2.258,0.645c0.071-0.502,0.271-0.843,0.493-1.037 C4.86,11.425,3.049,10.76,3.049,7.786c0-0.847,0.302-1.54,0.799-2.082C3.768,5.507,3.501,4.718,3.924,3.65 c0,0,0.652-0.209,2.134,0.796C6.677,4.273,7.34,4.187,8,4.184c0.659,0.003,1.323,0.089,1.943,0.261 c1.482-1.004,2.132-0.796,2.132-0.796c0.423,1.068,0.157,1.857,0.077,2.054c0.497,0.542,0.798,1.235,0.798,2.082 c0,2.981-1.814,3.637-3.543,3.829c0.279,0.24,0.527,0.713,0.527,1.437c0,1.037-0.01,1.874-0.01,2.129 c0,0.208,0.14,0.449,0.534,0.373c3.081-1.028,5.302-3.935,5.302-7.362C15.76,3.906,12.285,0.431,7.999,0.431z"/></svg>
|
data/_layouts/home.html
ADDED
@@ -0,0 +1,83 @@
|
|
1
|
+
---
|
2
|
+
#layout for the homepage
|
3
|
+
---
|
4
|
+
|
5
|
+
{% include header.html %}
|
6
|
+
|
7
|
+
<main class="page-content" aria-label="Content">
|
8
|
+
<div class="margin">
|
9
|
+
<div class="wrapper home-content">
|
10
|
+
{{ content }}
|
11
|
+
</div>
|
12
|
+
</div>
|
13
|
+
|
14
|
+
<div class="dark-section">
|
15
|
+
<div class="wrapper">
|
16
|
+
|
17
|
+
{% for item in site.home-columns %}
|
18
|
+
<div class="col">
|
19
|
+
<h3 class="light">{{ item.heading }}</h3>
|
20
|
+
<p>
|
21
|
+
{{ item.content }}
|
22
|
+
</p>
|
23
|
+
{% if item.button-url %}
|
24
|
+
<a href="{{ item.button-url }}" class="button light" target="_blank">Mehr erfahren</a>
|
25
|
+
{% endif %}
|
26
|
+
</div>
|
27
|
+
{% endfor %}
|
28
|
+
|
29
|
+
</div>
|
30
|
+
</div>
|
31
|
+
|
32
|
+
<div class="margin">
|
33
|
+
|
34
|
+
{% assign post_count = site.posts | size %}
|
35
|
+
{% if post_count > 0 %}
|
36
|
+
<div class="wrapper">
|
37
|
+
<h2>Neuigkeiten</h2>
|
38
|
+
<!-- loop for displaying posts -->
|
39
|
+
{% for post in site.posts %}
|
40
|
+
<div class="post">
|
41
|
+
|
42
|
+
{% if post.featured-image %}
|
43
|
+
|
44
|
+
<h3 class="dark with-img">{{ post.title }}</h3>
|
45
|
+
<div class="post-contents">
|
46
|
+
<div class="left">
|
47
|
+
<img src="{{ post.featured-image }}" />
|
48
|
+
</div>
|
49
|
+
<div class="right">
|
50
|
+
{% if post.publishing-date %}
|
51
|
+
<span class="date">{{ post.publishing-date }}</span>
|
52
|
+
{% endif %}
|
53
|
+
<p class="post-excerpt">{{ post.excerpt }}</p>
|
54
|
+
<a class="button" href="{{ post.url | prepend: site.baseurl }}">Weiterlesen</a>
|
55
|
+
</div>
|
56
|
+
</div>
|
57
|
+
|
58
|
+
{% else %}
|
59
|
+
|
60
|
+
<h3 class="dark">{{ post.title }}</h3>
|
61
|
+
<div class="post-contents">
|
62
|
+
<div class="left">
|
63
|
+
|
64
|
+
</div>
|
65
|
+
<div class="right">
|
66
|
+
{% if post.publishing-date %}
|
67
|
+
<span class="date">{{ post.publishing-date }}</span>
|
68
|
+
{% endif %}
|
69
|
+
<p class="post-excerpt">{{ post.excerpt }}</p>
|
70
|
+
<a class="button" href="{{ post.url | prepend: site.baseurl }}">Weiterlesen</a>
|
71
|
+
</div>
|
72
|
+
</div>
|
73
|
+
|
74
|
+
{% endif %}
|
75
|
+
|
76
|
+
</div>
|
77
|
+
{% endfor %}
|
78
|
+
</div>
|
79
|
+
{% endif %}
|
80
|
+
</div>
|
81
|
+
</main>
|
82
|
+
|
83
|
+
{% include footer.html %}
|
data/_layouts/page.html
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
---
|
2
|
+
#layout for subpages
|
3
|
+
---
|
4
|
+
|
5
|
+
{% include header.html %}
|
6
|
+
|
7
|
+
<main class="page-content" aria-label="Content">
|
8
|
+
<div class="margin">
|
9
|
+
|
10
|
+
|
11
|
+
<div class="wrapper page">
|
12
|
+
<h2>{{ page.title }}</h2>
|
13
|
+
{{ content }}
|
14
|
+
</div>
|
15
|
+
</div>
|
16
|
+
</main>
|
17
|
+
|
18
|
+
{% include footer.html %}
|
data/_layouts/post.html
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
---
|
2
|
+
#layout for blog-posts
|
3
|
+
---
|
4
|
+
|
5
|
+
{% include header.html %}
|
6
|
+
|
7
|
+
<main class="page-content" aria-label="Content">
|
8
|
+
<div class="margin">
|
9
|
+
|
10
|
+
|
11
|
+
<div class="wrapper single-post">
|
12
|
+
<h2>{{ page.title }}</h2>
|
13
|
+
{% if page.publishing-date %}
|
14
|
+
<span class="date">{{ page.publishing-date }}</span>
|
15
|
+
{% endif %}
|
16
|
+
{{ content }}
|
17
|
+
</div>
|
18
|
+
</div>
|
19
|
+
</main>
|
20
|
+
|
21
|
+
{% include footer.html %}
|
data/_sass/_base.sass
ADDED
@@ -0,0 +1,87 @@
|
|
1
|
+
$max-width: 1200px
|
2
|
+
$site-margin: 40px
|
3
|
+
$section-margin: 80px
|
4
|
+
|
5
|
+
$mobile: 'max-width: 600px'
|
6
|
+
$tablet: 'max-width: 1000px'
|
7
|
+
$desktop: 'min-width: 1001px'
|
8
|
+
|
9
|
+
html
|
10
|
+
overflow-x: hidden
|
11
|
+
&.mobile-menu-open
|
12
|
+
overflow-y: hidden
|
13
|
+
body
|
14
|
+
font-family: 'Open Sans', sans-serif
|
15
|
+
font-weight: 400
|
16
|
+
font-size: 16px
|
17
|
+
overflow-x: hidden
|
18
|
+
a
|
19
|
+
text-decoration: none
|
20
|
+
color: $blue
|
21
|
+
.page-content
|
22
|
+
display: flex
|
23
|
+
align-items: center
|
24
|
+
flex-direction: column
|
25
|
+
background-color: $white
|
26
|
+
.margin
|
27
|
+
max-width: 1280px
|
28
|
+
width: 100%
|
29
|
+
.wrapper
|
30
|
+
&.page
|
31
|
+
p
|
32
|
+
font-size: 15px
|
33
|
+
color: $dark-grey
|
34
|
+
line-height: 2
|
35
|
+
margin-bottom: 60px
|
36
|
+
// width: 100%
|
37
|
+
max-width: $max-width
|
38
|
+
margin-left: $site-margin
|
39
|
+
margin-right: $site-margin
|
40
|
+
margin-top: $section-margin
|
41
|
+
margin-bottom: $section-margin
|
42
|
+
@media screen and ($mobile)
|
43
|
+
margin-left: $site-margin/2
|
44
|
+
margin-right: $site-margin/2
|
45
|
+
margin-top: $section-margin/1.5
|
46
|
+
margin-bottom: $section-margin/1.5
|
47
|
+
&.home-content
|
48
|
+
font-size: 35px
|
49
|
+
@media screen and ($tablet)
|
50
|
+
font-size: 30px
|
51
|
+
@media screen and ($mobile)
|
52
|
+
font-size: 25px
|
53
|
+
color: $dark-grey
|
54
|
+
line-height: 1.7
|
55
|
+
font-weight: 300
|
56
|
+
hyphens: auto
|
57
|
+
.dark-section
|
58
|
+
width: 100%
|
59
|
+
height: auto
|
60
|
+
display: flex
|
61
|
+
justify-content: center
|
62
|
+
align-items: center
|
63
|
+
background-color: $black
|
64
|
+
color: $white
|
65
|
+
.wrapper
|
66
|
+
display: flex
|
67
|
+
flex-direction: row
|
68
|
+
@media screen and ($tablet)
|
69
|
+
flex-direction: column
|
70
|
+
justify-content: space-between
|
71
|
+
.col
|
72
|
+
margin-right: $site-margin*2
|
73
|
+
@media screen and ($tablet)
|
74
|
+
margin-right: 0
|
75
|
+
margin-bottom: 75px
|
76
|
+
&:last-of-type
|
77
|
+
margin-bottom: 0
|
78
|
+
flex-basis: 0
|
79
|
+
flex-grow: 1
|
80
|
+
&:last-of-type
|
81
|
+
margin-right: 0
|
82
|
+
p
|
83
|
+
font-weight: 300
|
84
|
+
font-size: 14px
|
85
|
+
line-height: 2
|
86
|
+
margin-bottom: 30px
|
87
|
+
text-align: justify
|
data/_sass/_buttons.sass
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
a
|
2
|
+
&.button
|
3
|
+
text-decoration: none
|
4
|
+
font-size: 14px
|
5
|
+
font-weight: 400
|
6
|
+
padding: 10px 20px
|
7
|
+
border: 1px solid $blue
|
8
|
+
border-radius: 50px
|
9
|
+
color: $blue
|
10
|
+
background-color: none
|
11
|
+
transition: color .3s ease, background-color .3s ease
|
12
|
+
&:hover
|
13
|
+
background-color: $blue
|
14
|
+
color: $white
|
15
|
+
transition: color .3s ease, background-color .3s ease
|
16
|
+
&.light
|
17
|
+
color: $white
|
18
|
+
border-color: $white
|
19
|
+
&:hover
|
20
|
+
background-color: $white
|
21
|
+
color: $black
|
22
|
+
transition: color .3s ease, background-color .3s ease
|
data/_sass/_colors.sass
ADDED
data/_sass/_footer.sass
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
footer
|
2
|
+
background-color: $light-grey
|
3
|
+
padding: 100px $site-margin
|
4
|
+
@media screen and ($mobile)
|
5
|
+
padding: 50px $site-margin/2
|
6
|
+
display: flex
|
7
|
+
justify-content: center
|
8
|
+
align-items: center
|
9
|
+
p
|
10
|
+
display: inline-block
|
11
|
+
text-align: center
|
12
|
+
width: 100%
|
13
|
+
color: $dark-grey
|
14
|
+
font-size: 14px
|
15
|
+
font-weight: 300
|
16
|
+
line-height: 2
|