Kakise/Kaki-Static

View on GitHub
views/layout.pug

Summary

Maintainability
Test Coverage
doctype html
html(lang="fr")

  head
    if (article)
      title #{article.title} | cat /dev/urandom
      - var title = article.title + " | cat /dev/urandom"
    else if (page)
      title #{page.title} | cat /dev/urandom
      - var title = page.title + " | cat /dev/urandom"
    else if (tag)
      title Recherche par tag: #{tag} | cat /dev/urandom
      - var title = "Recherche par tag: " + tag + " | cat /dev/urandom"
    else
      title Accueil | cat /dev/urandom
      - var title = "Accueil | cat /dev/urandom"
    if (article && !preview)
      - var description = article.desc.substring(0, 440) + "..."
    else
      - var description = "Le blog de Kakise, un internaute comme un autre."
    meta(charset="utf-8")
    meta(http-equiv="X-UA-Compatible" content="IE=edge")
    meta(property="og:title" content=title)
    meta(property="og:description" content=description)
    meta(name="description" content=description)
    meta(name="viewport" content="width=device-width, initial-scale=1")
    meta(property="og:image" content="/images/avatar.jpg")
    link(rel="stylesheet" href="/css/uikit.css")
    link(rel="stylesheet" href="/css/site.css")
    link(rel="stylesheet" href="/css/zenburn.css")
    link(rel="shortcut icon" href="/favicon.ico" type="image/x-icon")
    script(src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js")
    script(src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.js")
    script(src="/js/cookies.js")
    script(src="/js/highlight.pack.js")
    // Code blocks
    script hljs.initHighlightingOnLoad();

  body
    
    div(class="uk-container uk-container-center uk-margin-top uk-margin-large-bottom")

      div(class="uk-grid")
      
        div(class="uk-width-medium-3-4 uk-row-first")
          h1(style="font-size:42px; text-align:center;")
            a(href="/" style="color: #aaa; text-decoration: none") cat /dev/urandom
          div(id="listing" class="block pure-u-2-3")
            block content
          
        .uk-width-medium-1-4
          div(class="uk-panel uk-panel-box uk-text-center")
            img(class="uk-border-circle" width="120" height="120" src="/images/avatar.jpg" alt="author avatar")
            h3 Kakise
            p Nos drapeaux sont rouge de notre sang, noir de notre peine ❤
            p Militant convaincu, développeur passionné. Grand amoureux des sciences et du progrès.
            p Vous voulez faire un don?
            p Adresse ETH: cptkakise.eth
              
          div(class="uk-panel uk-panel-box uk-text-center")
            h3 Le reste du site
            p 
              a(href="https://pod.kakise.xyz") KakiPod, diaspora*
            p 
              a(href="https://cloud.kakise.xyz") KakiDrive, Nextcloud
            p 
              a(href="https://pad.kakise.xyz") KakiPad, Etherpad
            p 
              a(href="https://notes.kakise.xyz") KakiNotes, Turtl

  footer(id="footer")
      p Crée avec amour par 
        a(href="https://kakise.xyz") Kakise
        | . <3
        p Version: #{version}