Commit f00b652b authored by Michael Ochmann's avatar Michael Ochmann
Browse files

fixed layout and blogroll

parent 8bba3650
......@@ -18,6 +18,7 @@ class Theme {
add_action("after_setup_theme", [&$this, "setup"]);
add_action("wp_logout", [&$this, "logout"]);
add_action("jetpack_admin_menu", [&$this, "hideJetpackFromNormalUsers"]);
add_filter("get_the_excerpt", [&$this, "filterExcerpt"]);
add_filter("show_admin_bar", function() {
return false;
});
......@@ -135,4 +136,8 @@ class Theme {
$door->render();
}
}
public function filterExcerpt($content) {
return str_replace("[&hellip;]", "&hellip; (<a href='". get_permalink() ."'>weiterlesen</a>)", $content);
}
}
\ No newline at end of file
This diff is collapsed.
......@@ -15,6 +15,7 @@ $light-grey : #eee;
$dark-grey : #888;
$complement : #FF9C00;
$dark-complement : #B26D00;
$calendarborder : #cc0100;
@font-face {
font-family: "Linux Libertine";
......@@ -57,8 +58,16 @@ fsi-tile.sidebar li {
}
article.loopPost {
margin-bottom: 40px;
margin: 40px 40px;
font-size: medium;
line-height: 1.7em;
}
article.loopPost:after {
content: " ";
display: block;
width: 60%;
margin: 50px auto 20px auto;
border-bottom: solid 1px #ccc;
}
article.page {
......@@ -201,10 +210,11 @@ fsi-calendar .month {
fsi-date {
background: white;
padding: 35px 8px 8px;
padding: 22px 1px 1px;
float: left;
margin-right: 20px;
display: inline-block;
border-radius: 6px;
text-align: center;
font-weight: bold;
font-size: xx-large;
......@@ -217,11 +227,13 @@ fsi-date:before {
top: 0;
left: 0;
border-bottom: solid 1px #ccc;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
position: absolute;
display: block;
height: 20px;
height: 15px;
width: 100%;
background: red;
background: $calendarborder;
}
fsi-date small {
font-weight: normal;
......
......@@ -9,8 +9,8 @@
while (have_posts()) {
the_post();
echo "
<fsi-date>".get_the_date("d")."<br /><small>".get_the_date("M")."</small></fsi-date>
<article class='loopPost'>
<fsi-date>".get_the_date("d")."<br /><small>".get_the_date("M")."</small></fsi-date>
<fsi-title><a href=\"".get_the_permalink()."\">".get_the_title()."</a></fsi-title>
".get_the_excerpt()."
</article>
......
......@@ -2,7 +2,7 @@
<main>
<section class="row">
<section class="col-md-8 col-lg-8">
<section class="col-md-8 col-lg-9">
<?php
if (have_posts()) {
while (have_posts()) {
......
......@@ -2,7 +2,7 @@
<main>
<section class="row">
<section class="col-md-8 col-lg-8">
<section class="col-md-8 col-lg-9">
<?php
if (have_posts()) {
while (have_posts()) {
......
......@@ -51,7 +51,7 @@ else {
}
?>
</section>
<section class="col-md-4 col-lg-3">
<section class="col-md-3 col-lg-3">
<fsi-tile class="sidebar">
<?php get_sidebar('sidebar-1'); ?>
</fsi-tile>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment