harms-columns-front-page 2.2.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -0
  3. data/_layouts/not-found.html +171 -0
  4. metadata +2 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b3b437dba8af9fb31b000ad0960a536eda996daa
4
- data.tar.gz: cbdbc0bda404b86bfa521f19f685c55ca68fa4b9
3
+ metadata.gz: 5da401b8ca2d1440103ae5167b0085c95bf31672
4
+ data.tar.gz: 1f3e26d503c0d9f90fe527378a54f006626e42fe
5
5
  SHA512:
6
- metadata.gz: c332c1dab0f5a7ab100c415b0a0207c1aac58e021d3d7117900b970f1d6f67c4cfd9e2e76359941a6c30838e57c503f5e094cb3fc68615750b4a285ab61f6311
7
- data.tar.gz: 1ba82170a3be30ea7baf9a04e509f7dd7af9f7a2dd6673f205bc5087bd2fe69dd8c2b32118f72ec255cf6a29e5fdf67b505ca031cdf9c76feb9db956a0a54e1b
6
+ metadata.gz: 5a9e36dafdf4139b4838b20cb1e3583e20a84ae375752881b58544e1c469bc0d9c79e71c2b31ad1e8708aaea70f32a81fcc8ba86e904f3eee0acb8a747b38d87
7
+ data.tar.gz: 3d332e49da931c08c75f0f913622ee4119f687bcdfdc902243f11641d9889055cacc43b03a37468088e9af433869891f406c75a6f3274eb143b6f643e54f2335
data/README.md CHANGED
@@ -467,6 +467,7 @@ The available layouts are:
467
467
  * `home` - for the front page
468
468
  * `page` - for pages
469
469
  * `post` - for posts
470
+ * `not-found` - for 404-error-pages (with automatic redirection to front page after 5 seconds)
470
471
 
471
472
  <br>
472
473
 
@@ -0,0 +1,171 @@
1
+ ---
2
+ #layout for 404 pages
3
+ ---
4
+
5
+ <!DOCTYPE html>
6
+
7
+ <!-- gives the lang-attribute the same value as in the corresponding page variable. If that's not set, it uses the global site's configuration and if that isn't set either, it uses 'en' as a default value -->
8
+ <html lang="{{ page.lang | default: site.lang | default: " en " }}">
9
+
10
+ <head>
11
+ <meta charset="utf-8">
12
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
13
+ <meta http-equiv="refresh" content="5; URL={{ site.url }}">
14
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
15
+
16
+ <!-- Displays the site title as set in the global configuration and then the title of the current page if set -->
17
+ <title>{{ site.title | escape }}{% if page.title %} | {{ page.title | escape }}{% endif %}</title>
18
+
19
+ <!-- Sets an excerpt of the page as the meta description, if that's not possible it uses the site's global description variable -->
20
+ <meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
21
+
22
+ <!-- Stylesheet for the jQuery UI Library -->
23
+ <style media="screen">
24
+ {% include css/vendor/jquery-ui.min.css %}
25
+ </style>
26
+
27
+ <!-- Stylesheet for the site's font from Google Fonts -->
28
+ <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet">
29
+
30
+ <!-- The Theme's main stylesheet -->
31
+ <link rel="stylesheet" href="{{ "/assets/css/main.css " | relative_url }}">
32
+
33
+ <link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
34
+ <link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ " /feed.xml " | relative_url }}">
35
+
36
+ <!-- The site's favicon -->
37
+ <link rel="icon" type="image/png" href="{{ site.favicon }}" sizes="32x32">
38
+
39
+ <!-- CSS that overrides the defaults, when the theme user selected custom colors in the site's global configuration -->
40
+ {% include custom-styles.html %}
41
+
42
+ <style media="screen">
43
+ .wrapper {
44
+ text-align: center !important;
45
+ }
46
+ </style>
47
+ </head>
48
+
49
+
50
+ <body>
51
+
52
+ <!-- displays the main desktop and the main mobile navigation menu -->
53
+ {% include nav.html %}
54
+
55
+ <!-- displays the header (it shows the the profile/logo image and the site's title and subtitle) -->
56
+ <div class="header">
57
+ <div class="header-content">
58
+ <div class="header-left">
59
+ {% if site.profile-image %}
60
+ <a href="{{ site.url }}"><div class="profile-image" style="background-image: url('{{ site.profile-image }}')"></div></a>
61
+ {% endif %}
62
+ <div class="header-text">
63
+ <a href="{{ site.url }}"><h1>{{ site.title | escape }}</h1></a>
64
+ <a href="{{ site.url }}"><p class="sub-title">{{ site.subtitle | escape }}</p></a>
65
+ </div>
66
+ </div>
67
+ </div>
68
+ </div>
69
+
70
+
71
+ <main class="page-content" aria-label="Content">
72
+ <div class="margin">
73
+
74
+ <!-- displays the page's main content -->
75
+ <div class="wrapper page">
76
+ <h2>{{ page.title }}</h2>
77
+ {{ content }}
78
+ </div>
79
+
80
+ <!-- displays a list of posts, if the show-category variable of the page is set -->
81
+ {% if page.show-category %}
82
+ {% assign post_count = site.categories[page.show-category] | size %}
83
+ {% if post_count > 0 %}
84
+ <div class="wrapper posts-wrapper page-posts">
85
+
86
+ <!-- displays the tag filter, if the corresponding page variable is set -->
87
+ {% if page.tag-filter %}
88
+ <ul class="tag-list">
89
+
90
+ <li>
91
+ <a href="#" class="button tag selected show-all">{{ page.show-all-filter-label }}</a>
92
+ </li>
93
+
94
+ <!-- goes through every tag of the entire site and checks if there are posts in the post category to show (as set in the pages front matter) with that tag. if so, then it displays a button for the tag -->
95
+ {% assign sorted_tags = site.tags | sort %}
96
+ {% for tag in sorted_tags %}
97
+ {% assign zz = tag[1] | where: "category", page.show-category | sort %}
98
+ {% if zz != empty %}
99
+ <li>
100
+ <a href="#" class="button tag" id="{{ tag[0] }}">{{ tag[0] }}</a>
101
+ </li>
102
+ {% endif %}
103
+ {% endfor %}
104
+
105
+ </ul>
106
+ {% endif %}
107
+
108
+ <!-- loop for displaying posts -->
109
+ {% assign post_limit = page.post-limit %}
110
+ <!-- displays every post in the blog category to show (as set in the page's front matter) and limits the number of posts to display (also as set in the page's front matter) -->
111
+ {% for post in site.categories[page.show-category] limit:post_limit %}
112
+ <div class="post {% for tag in post.tags %} {{ tag }}{% endfor %}">
113
+
114
+ <!-- if there's a featured-image set in the posts front matter, then it's dipslayed alongside the content -->
115
+ {% if post.featured-image %}
116
+
117
+ <h2 class="dark with-img">{{ post.title }}</h2>
118
+ <div class="post-contents">
119
+ <div class="left">
120
+ <img src="{{ post.featured-image }}" />
121
+ </div>
122
+ <div class="right">
123
+ <!-- if there's a publishing-date set in the posts front matter, then it's displayed alongside the content -->
124
+ {% if post.publishing-date %}
125
+ <span class="date">{{ post.publishing-date }}</span>
126
+ {% endif %}
127
+ <p class="post-excerpt">{{ post.excerpt }}</p>
128
+ <a class="button" href="{{ post.url | prepend: site.baseurl }}">
129
+ {{ site.post-button-label }}
130
+ </a>
131
+ </div>
132
+ </div>
133
+
134
+ <!-- loop that displays the posts without a featured image set -->
135
+ {% else %}
136
+
137
+ <h2 class="dark">{{ post.title }}</h2>
138
+ <div class="post-contents">
139
+ <div class="left">
140
+
141
+ </div>
142
+ <div class="right">
143
+ <!-- if there's a publishing-date set in the posts front matter, then it's displayed alongside the content -->
144
+ {% if post.publishing-date %}
145
+ <span class="date">{{ post.publishing-date }}</span>
146
+ {% endif %}
147
+ <p class="post-excerpt">{{ post.excerpt }}</p>
148
+ <a class="button" href="{{ post.url | prepend: site.baseurl }}">
149
+ {{ site.post-button-label }}
150
+ </a>
151
+ </div>
152
+ </div>
153
+
154
+ {% endif %}
155
+
156
+ </div>
157
+
158
+ {% endfor %}
159
+
160
+ </div>
161
+
162
+ {% endif %}
163
+
164
+ {% endif %}
165
+
166
+ </div>
167
+
168
+ </main>
169
+
170
+ <!-- includes the code for the header -->
171
+ {% include footer.html %}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: harms-columns-front-page
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Harms
@@ -98,6 +98,7 @@ files:
98
98
  - _includes/js/vendor/jquery-ui.min.js
99
99
  - _includes/nav.html
100
100
  - _layouts/home.html
101
+ - _layouts/not-found.html
101
102
  - _layouts/page.html
102
103
  - _layouts/post.html
103
104
  - _sass/_accordion.sass