Skip to content

Commit 9a88025

Browse files
committed
v0.1.5
- deny direct access of templates - set default css variables outside media query
1 parent f2cb6f0 commit 9a88025

File tree

7 files changed

+29
-10
lines changed

7 files changed

+29
-10
lines changed

assets/FOOTER.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
</section>
44
<footer id="section-footer">
55
<div class="row">
6-
<p>Apache Fancy Index v0.1.4 | © 2021 Christophe Buliard | <a target="_blank" href="https://github.com/kristuff/apache-fancy-index" rel="no-referer">Source code</a> </p>
6+
<p>Apache Fancy Index v0.1.5 | © 2021 Christophe Buliard | <a target="_blank" href="https://github.com/kristuff/apache-fancy-index" rel="no-referer">Source code</a> </p>
77
</div>
88
</footer>
99
<script src="/fancy-index/js/script.js"></script>

assets/css/style.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
* |__/
77
*
88
* This file is part of kristuff/apache-fancy-index.
9-
* Version 0.1.4 - Copyright (c) 2021 Kristuff <[email protected]>
9+
* Version 0.1.5 - Copyright (c) 2021 Kristuff <[email protected]>
1010
*
1111
* For the full copyright and license information, please view the LICENSE
1212
* file that was distributed with this source code.
1313
*/
1414

15-
@media (prefers-color-scheme: light) {
16-
:root {
15+
16+
:root {
1717
--color-bg: #ffffff;
1818
--color-highlight: #000000;
1919
--color-text: #404040;
@@ -28,7 +28,8 @@
2828
--color-link-text: #115293;
2929
--color-link-text--visited: #115293;
3030
}
31-
}
31+
32+
3233
@media (prefers-color-scheme: dark) {
3334
:root {
3435
--color-bg:#1f242b;

assets/js/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* |__/
77
*
88
* This file is part of kristuff/apache-fancy-index.
9-
* Version 0.1.4 - Copyright (c) 2021 Kristuff <[email protected]>
9+
* Version 0.1.5 - Copyright (c) 2021 Kristuff <[email protected]>
1010
*
1111
* For the full copyright and license information, please view the LICENSE
1212
* file that was distributed with this source code.

conf/fancy-index-tests.conf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# |__/
66
#
77
# This file is part of kristuff/apache-fancy-index.
8-
# Version 0.1.4 - Copyright (c) 2021 Kristuff <[email protected]>
8+
# Version 0.1.5 - Copyright (c) 2021 Kristuff <[email protected]>
99
#
1010
# For the full copyright and license information, please view the LICENSE
1111
# file that was distributed with this source code.
@@ -35,6 +35,11 @@ Alias /fancy-index-tests /usr/share/doc/apache-fancy-index/tests
3535
IndexStyleSheet /fancy-index/css/style.css
3636
HeaderName /fancy-index/HEADER.html
3737
ReadmeName /fancy-index/FOOTER.html
38+
39+
40+
41+
42+
3843
</IfModule>
3944
</Directory>
4045

conf/fancy-index.conf

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# |__/
66
#
77
# This file is part of kristuff/apache-fancy-index.
8-
# Version 0.1.4 - Copyright (c) 2021 Kristuff <[email protected]>
8+
# Version 0.1.5 - Copyright (c) 2021 Kristuff <[email protected]>
99
#
1010
# For the full copyright and license information, please view the LICENSE
1111
# file that was distributed with this source code.
@@ -30,6 +30,19 @@ Alias /fancy-index /usr/share/apache-fancy-index
3030
Options -Indexes -Includes
3131
AllowOverride None
3232
Require all granted
33+
34+
# templates should not be directly requested
35+
<Files "HEADER.html">
36+
<If "-z %{ENV:REDIRECT_STATUS}">
37+
Require all denied
38+
</If>
39+
</Files>
40+
41+
<Files "FOOTER.html">
42+
<If "-z %{ENV:REDIRECT_STATUS}">
43+
Require all denied
44+
</If>
45+
</Files>
3346
</Directory>
3447

3548
AddType image/svg+xml svg svgz

create_package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# |__/
88
#
99
# This file is part of kristuff/apache-fancy-index.
10-
# Version 0.1.4
10+
# Version 0.1.5
1111
# Copyright (c) 2021 Kristuff <[email protected]>
1212
#
1313
# For the full copyright and license information, please view the LICENSE

deb/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: apache-fancy-index
2-
Version: 0.1.4
2+
Version: 0.1.5
33
Maintainer: kristuff <[email protected]>
44
Architecture: all
55
Depends: apache2

0 commit comments

Comments
 (0)