Commit 13f880a5 authored by jan.koester's avatar jan.koester
Browse files

test

parent 2dc8a42b
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
@@ -6,9 +6,15 @@ BLOGI:
    - "/usr/local/lib/blogi/plugins"
    - "/var/lib/blog/plugins"
  HTTP:
<<<<<<< Updated upstream
    URL:
      - "http://localhost"
    PREFIX: "/blog"
=======
    URL: "https://mydomain.local"
    DOMAIN: "mydomain.local"
    PREFIX: "/var/lib/blogi/blog"
>>>>>>> Stashed changes
    PORT: 8080
    BIND: "0.0.0.0"
    MAXCON: 1024
@@ -22,6 +28,7 @@ BLOGI:
  # 0 = disabled (old always-open behavior).
  IDLECONNECTIONTIMEOUT: 120
  DATABASE:
<<<<<<< Updated upstream
    DRIVER: "sqlite"
    CONNECTION: "/var/lib/blogi/blog.db"
    # Replication: writes are sent to primary AND all replicas
@@ -37,6 +44,19 @@ BLOGI:
      DOMAIN: "example.com"
  MEDIADB:
    URL: "https://127.0.0.1:8442"
=======
    DRIVER: sqlite
    CONNECTION: "/var/lib/blogi/blog.db"
  LDAP:
    HOST: "ldap://ldaphost:389"
    DOMAIN: "mydomain.local"
    BASEDN: "CN=Users,DC=mydomain,DC=local"
    LOGINFILTER: " "
  REDIS:
    HOST: "127.0.0.1"
    PORT: 6379
    TIMEOUT: 1000
>>>>>>> Stashed changes
  NGINXFILER:
    HOST: "nginx.example.com"
    PORT: 80
@@ -52,6 +72,7 @@ BLOGI:
    SENDER: "mail@example.com"
  CONTACT:
    RECEIVER: "mail@example.com"
<<<<<<< Updated upstream
  SSL:
    CERT: ""
    KEY: ""
@@ -110,3 +131,7 @@ BLOGI:
      AUTH_CLIENTSECRET: "anothersecret"
      MEDIA_URL: "https://media.another.org:8442"
      # CHROOTDIR: "/srv/blogi/chroot/blog.another.org"
=======
  DOMAIN:
    NAME: "localhost"
>>>>>>> Stashed changes
+31 −0
Original line number Diff line number Diff line
<!DOCTYPE html> 
  <html lang="de">
    <head>
       <title>Blogi</title>
       <meta name="author" content="Jan Koester">
       <meta charset="utf-8">
       <meta name="viewport" content="width=device-width,initial-scale=0.3" >
       <link rel="stylesheet" href="${PREFIX}/theme/public/reset.css">
       <link rel="stylesheet" href="${PREFIX}/theme/public/style.css">
    </head>
    <body>
       <div id="header">
	 <!-- header image-->
         <img alt="headerimage" id="banner" src="${PREFIX}/theme/public/header.webp">
	 <!-- Navbar--> 
         <div id="headnav">
         </div>
       </div>
       <div id="main">
         <!-- content -->
       </div>
       <div id="ghost"> 
       </div>
       <div id="footer">
         <span id="copyrigt" > (c) Jan Koester 2021 </span>
         <br>
         <span id="footernav">
         </span>
       </div>
    </body>
  </html>
+165 −0
Original line number Diff line number Diff line
<!DOCTYPE html>
<html lang="de">
    <head>
        <title>
            Blogi
        </title>
        <meta name="author" content="Jan Koester">
        <meta name="robots" content="all" />
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1" />
        <link rel="stylesheet" href="${prefix}/theme/public/reset.css">
        <link rel="stylesheet" href="${prefix}/theme/public/mstyle.css">
        <link rel="icon" type="image/x-icon" href="${prefix}/theme/public/favicon.ico">
    </head>
    <body>
        <div id="header">
            <div id="menunav">
                        <svg
                        width="48"
                        height="48"
                        viewBox="0 0 12.70 12.7"
                        version12.70="
                        version=" 1.1"
                        id="
                        id=" svg5"
                        xmlns:xlink="
                        xmlns:xlink=" http://www.w3.org/1999/xlink"
                        xmlns="
                        xmlns=" http://www.w3.org/2000/svg"
                        xmlns:svg="
                        xmlns:svg=" http://www.w3.org/2000/svg">
                        <defs id="defs2">
                        <linearGradient id="linearGradient799">
                        <stop
                        style="stop-color:#b2b2b2;stop-opacity:1;"
                        offset="0"
                        id="stop797"
                        />
                        </linearGradient>
                        <linearGradient
                        xlink:href="#linearGradient799"
                        id="linearGradient801"
                        x1="14.186104"
                        y1="121.67753"
                        x2="195.50539"
                        y2="121.67753"
                        gradientUnits="userSpaceOnUse"
                        gradientTransform="matrix(1.0330639,0,0,0.99987297,-3.4472755,0.01545695)" />
                        </defs>
                        <g
                        id="layer1"
                        transform="matrix(0.06380028,0,0,0.07361519,-0.35623634,-2.58322)">
                        <rect
                        style="fill:none;fill-opacity:1;stroke:url(#linearGradient801);stroke-width:3.5;stroke-linejoin:round;stroke-dasharray:none"
                        id="rect111"
                        width="187.31439"
                        height="162.62489"
                        x="11.207876"
                        y="40.365086" />
                        <rect
                        style="fill:#b2b2b2;fill-opacity:1;stroke:#b1b1b1;stroke-width:3.5;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
                        id="rect962"
                        width="161.06856"
                        height="3.4071507"
                        x="22.840359"
                        y="72.404007" />
                        <rect
                        style="fill:#b2b2b2;fill-opacity:1;stroke:#b1b1b1;stroke-width:3.5;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
                        id="rect962-3"
                        width="161.06856"
                        height="3.4071507"
                        x="23.476486"
                        y="117.72447" />
                        <rect
                        style="fill:#b2b2b2;fill-opacity:1;stroke:#b1b1b1;stroke-width:3.5;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
                        id="rect962-6"
                        width="161.06856"
                        height="3.4071507"
                        x="23.403488"
                        y="160.75395" />
            </div>
            <div id="searchbar" >
                <script>
                    function searchword(){
                        var usearch = document.getElementById('search').value.trim();
                        window.location = "${prefix}/search/" + usearch;
                    }
                </script>
                <input type="text" name="search" id="search">
                <a href="#" onclick="searchword()" >
<svg
   width="47.808716"
   height="48.111004"
   viewBox="0 0 12.649389 12.72937"
   version="1.1"
   id="searchico"
   sodipodi:docname="search.svg"
   inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
   inkscape:export-filename="search_plain.svg"
   inkscape:export-xdpi="96"
   inkscape:export-ydpi="96"
   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
   xmlns="http://www.w3.org/2000/svg"
   xmlns:svg="http://www.w3.org/2000/svg">
  <sodipodi:namedview
     id="namedview12"
     pagecolor="#505050"
     bordercolor="#eeeeee"
     borderopacity="1"
     inkscape:showpageshadow="0"
     inkscape:pageopacity="0"
     inkscape:pagecheckerboard="0"
     inkscape:deskcolor="#505050"
     showgrid="false"
     inkscape:zoom="21.395833"
     inkscape:cx="23.976631"
     inkscape:cy="12.782863"
     inkscape:window-width="3840"
     inkscape:window-height="2052"
     inkscape:window-x="0"
     inkscape:window-y="0"
     inkscape:window-maximized="1"
     inkscape:current-layer="svg5" />
  <defs
     id="defs2" />
  <rect
     style="fill:#b2b2b2;stroke:#000000;stroke-width:3.14882;stroke-linejoin:round;stroke-opacity:1"
     id="rect407"
     width="4.3031197"
     height="0.029812455"
     x="-15.714127"
     y="0.29392996"
     transform="matrix(-0.69257343,-0.72134738,0.69257343,-0.72134738,0,0)" />
  <ellipse
     style="fill:none;stroke:#000000;stroke-width:0.775123;stroke-linejoin:bevel;stroke-dasharray:none;stroke-opacity:1"
     id="path473"
     ry="3.7475913"
     rx="3.8324637"
     cy="4.1351528"
     cx="4.2200251" />
</svg>
                </a>
            </div>
            </div>
            <!-- Navbar-->
            <div id="headnav"></div>
        </div>
       <div id="ghosthead"></div>
        <div id="main">
            <!-- content -->
        </div>
        <div id="ghost"></div>
        <div id="footer">
            <span id="copyrigt">
                (c) Jan Koester 2021
            </span>
            <br />
            <div id="footernav"></div>
        </div>
        <script>
            document.addEventListener('DOMContentLoaded',function() {    document.getElementById("menunav").addEventListener("click", function() {        if(document.getElementById("headnav").style.display != "block")            document.getElementById("headnav").style.display = "block";        else            document.getElementById("headnav").style.display = "none";    })});
        </script>
    </body>
</html>
+317 −0
Original line number Diff line number Diff line
#searchresult li {
  background: rgb(49, 54, 59);
  margin:2em 1em;
}

#searchico {
  height:1em;
}

#searchbar {
   background: rgb(255,255,255);
   border-radius:5px;
   display:inline-block;
   padding:1vh 0;
   vertical-align: bottom;
   margin: 0.2em 0;
}

#searchbar input {
   border:none;
   width: 55vw;
   font-size:1.2em;
}

#banner {
   display:block; 
   margin:0px auto;
}

#header {
   width:100%;
   background: rgb(49, 54, 59);
   position:fixed;
   top: 0px;
}

#ghosthead {
   height:5em;
}

#headnav {
     display:none;
     width:100%;
     margin:0px auto;
     text-align:left;
}
 
#headnav a{
  display:flex;
  margin:0.5em 0.5em;
  font-size: 1.5em;
  width:100%;
}

#content {
   float: left;
   width:100%;
   margin:10px 0;
   font-size: 0.5em;
}

#contentidx {
  width:100%;
  margin:10px 0;
}
  
#main {
  display:block; 
  width:100%; 
}

#ghost {
    display:inline-block;
    min-height:300px;
    height:20%;
    width:100%;
    min-width:300px;
}

 
#footer {
    position:fixed;
    margin:50px 0 0 0;
    display:block;
    text-align:center;
    bottom:0px;
    background: rgb(49, 54, 59);
    width:100%;
}

#menunav {
   width:10vw;
   display:inline-block;
   margin-right:10vw;
}

#headnav ul {
}

#headnav li {
   padding: 0.1em 0.25em;
}

#headnav li:hover {
    background:rgb(35, 38, 41);
    border-top: solid 1px transparent;
    border-bottom: solid 1px transparent;
}

#headnav li.active {
    border-top: solid 1px rgb(61, 174, 233);
    background:rgb(35, 38, 39);
    border-right:solid 1px rgb(34, 37, 41);
    border-bottom: solid 1px transparent;
}

#headnav li.inactive {
    border-top:solid 1px rgb(35, 38, 39);
    border-bottom: solid 1px transparent;    
}

#headnav li.active:hover {
    border-bottom:none;
}

#headnav a:link {
    color:rgb(238, 238, 238);
    text-decoration: none;
}

#headnav a:visited {
    color:rgb(238, 238, 238);
    text-decoration: none;
}

body {
    color: rgb(238, 238, 238);
    background: rgb(35, 38, 39);
    margin:0;
    padding:0;
    font-size:min(1.0em);
    width:100%;
}

a {
    text-decoration: none;
    color: rgb(58,212, 58);
    font-size:min(1.5em);
}

#footer a.footer {
    margin:0 10px;
}

.blog_adminmenu {
    background: rgb(49, 54, 59);
    margin:20px 0px;
}

.blog_entry {
    background: rgb(49, 54, 59);
    margin:20px 0px;
}

.title {
    display:block; padding: 10px 0px;
}

.entry_text {
    padding: 0 10px 0 0
}

.author {
    display:block;
    padding: 10px 0px;
}

#idxtags {
    text-align:center;
    background: rgb(49, 54, 59);
    width:100%;
}

#idxtags ul{
    list-style-type: none;
    padding: 0 10px;
    display:inline-block;
}

#idxtags li{
    text-align:left;
    margin: 0.5em 0.5em;
    font-size:1.5em;
}

#idxtags a{
    text-decoration:none;
    color:rgb(255, 255, 255);
}

.staticpage {
    background: rgb(49, 54, 59);
}

.gameserver {
    background: rgb(49, 54, 59);
    margin:20px 0;
}

.kinfo {
    background: rgb(49, 54, 59);
    width:100%;
}

.projects {
    background: rgb(49, 54, 59);
    width:100%;
    margin:20px 0;
}

#pager {
  background: #31363B;
  text-align: center;
}

#settings {
    background: rgb(49, 54, 59);
    margin:20px 0;
}
 
#settings table{
    width: 100%; 
    background: rgb(49, 54, 59); 
    margin:0;
}
 
#setnav {
    font-size: 1.5em;
    width:15%;
    padding:0;
    margin:0;
}

#setnav ul{
   list-style: none;
   padding: 0;
   margin: 0;
}

#setnav li {
        list-style: none;
        background: rgb(35, 38, 39);
        height: 1.5em;
        border-top: solid rgb(49, 54, 59) 0.5em;
        border-bottom: solid rgb(49, 54, 59) 0.5em;
        width: 90%;
        text-align: center;
        font-size: 1.0em;
}

.upreview{
    display: flex;
    width: 128px;
    height: 128px;
    float:left;
}

.upreview img{
    display: flex;
    width: 128px;
    max-height: 128px;
}

.upreview video{
    display: flex;
    width: 128px;
    max-height: 128px;
}

#viewmedia {
    display: inline-block;
    margin: 2em 0;
}

#cookieoverlay {
  top:0px;
  bottom:0px;
  z-index:99;
  position:fixed;
  width:100%;
  height:100%;
  opacity:0.7;
  background:rgb(0,0,0);
}

#cookiecontent {
  position: fixed;
  bottom: 0px;
  margin: 0px auto;
  left: 0%;
  right: 0%;
  z-index: 100;
  color: rgb(58,212, 58);
  opacity: 1;
  background: rgb(0,0,0);
  padding: 20px;
  border-top: solid rgb(49, 54, 59) 1em;
  border-left: solid rgb(49, 54, 59) 1em;
  border-right: solid rgb(49, 54, 59) 1em;
}

#cookiecontent button {
  background: none;
  color: rgb(58,212, 58);
  border: double rgb(58,212, 58) 0.3em;
  margin: 1em;
}
+0 −1
Original line number Diff line number Diff line
@@ -51,4 +51,3 @@ table {
	border-collapse: collapse;
	border-spacing: 0;
}
Loading