mirror of
https://github.com/typemill/typemill.git
synced 2025-08-05 21:57:31 +02:00
redirect index.php, fix styles, use absolute urls
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -7,6 +7,7 @@ plugins/admin
|
||||
plugins/demo
|
||||
plugins/disqus
|
||||
plugins/version
|
||||
plugins/finalwords
|
||||
system/vendor
|
||||
tests
|
||||
zips
|
||||
|
11
.htaccess
11
.htaccess
@@ -18,11 +18,20 @@ RewriteRule ^(.*)?\.txt$ - [F,L]
|
||||
RewriteRule ^(.*)?\.example$ - [F,L]
|
||||
RewriteRule ^(.*/)?\.git+ - [F,L]
|
||||
|
||||
# Use this to redirect HTTP to HTTPS on apache servers
|
||||
# RewriteCond %{HTTPS} off
|
||||
# RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
|
||||
|
||||
|
||||
# Use this to redirect www to non-wwww on apache servers
|
||||
# RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
|
||||
# RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
|
||||
|
||||
# Remove the index.php
|
||||
# Removes index.php
|
||||
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
|
||||
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]
|
||||
|
||||
# Directs all web requests through the site index file
|
||||
RewriteCond %{REQUEST_URI} !^/index\.php
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
|
2
cache/lastCache.txt
vendored
2
cache/lastCache.txt
vendored
@@ -1 +1 @@
|
||||
1519593451
|
||||
1519847402
|
@@ -17,7 +17,7 @@
|
||||
<ul>
|
||||
{% for element in item.folderContent %}
|
||||
|
||||
<li class="level-2"><a href="{{ element.urlRel }}">{{ element.name }}</a></li>
|
||||
<li class="level-2"><a href="{{ element.urlAbs }}">{{ element.name }}</a></li>
|
||||
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
@@ -300,7 +300,7 @@ header p{
|
||||
/************************
|
||||
* CHAPTER *
|
||||
************************/
|
||||
.chapter{
|
||||
.chapterNumber, .chapter h1{
|
||||
text-align: center;
|
||||
}
|
||||
.chapterNumber{
|
||||
@@ -314,9 +314,6 @@ header p{
|
||||
padding-bottom: 40px;
|
||||
margin:0;
|
||||
}
|
||||
.chapter p{
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
/************************
|
||||
* ARTICLE *
|
||||
|
@@ -11,12 +11,12 @@
|
||||
<li class="{{ element.elementType }} level-{{ element.keyPathArray|length }}">
|
||||
{% endif %}
|
||||
{% if element.elementType == 'folder' %}
|
||||
<a href="{{ element.urlRel }}">{{ element.name|title }}</a>
|
||||
<a href="{{ element.urlAbs }}">{{ element.name|title }}</a>
|
||||
<ul>
|
||||
{{ macros.loop_over(element.folderContent) }}
|
||||
</ul>
|
||||
{% else %}
|
||||
<a href="{{ element.urlRel }}">{{ element.name|title }}</a>
|
||||
<a href="{{ element.urlAbs }}">{{ element.name|title }}</a>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
@@ -11,12 +11,12 @@
|
||||
<li class="{{ element.elementType }} level-{{ element.keyPathArray|length }}">
|
||||
{% endif %}
|
||||
{% if element.elementType == 'folder' and element.keyPathArray|length == 1 %}
|
||||
<a href="{{ element.urlRel }}">{{ element.name|title }}</a>
|
||||
<a href="{{ element.urlAbs }}">{{ element.name|title }}</a>
|
||||
<ul>
|
||||
{{ macros.loop_over(element.folderContent) }}
|
||||
</ul>
|
||||
{% else %}
|
||||
<a href="{{ element.urlRel }}">{{ element.name|title }}</a>
|
||||
<a href="{{ element.urlAbs }}">{{ element.name|title }}</a>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
Reference in New Issue
Block a user