closes #9, Timestamp variable in template context
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Sebastian Frank 2019-03-12 13:16:37 +01:00
parent 4041868a9f
commit de7931acda
Signed by: apairon
GPG Key ID: 7270D06DDA7FE8C3
3 changed files with 16 additions and 13 deletions

View File

@ -7,6 +7,7 @@ import (
"path"
"regexp"
"strings"
"time"
"gitbase.de/apairon/mark2web/config"
"github.com/Depado/bfchroma"
@ -24,6 +25,8 @@ func newContext() pongo2.Context {
"fnRender": RenderFn,
"AssetsPath": config.Config.Assets.ToPath,
"Timestamp": time.Now().Unix,
}
}

View File

@ -13,4 +13,4 @@ Markdown:
Data:
debug: False
matomoSiteId: 89
token: 89ff216524093123bf7a0a10f7b273 # cockpit api token
token: 985cee34099f4d3b08f18fc22f6296 # cockpit api token

View File

@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Favicon -->
<link rel="icon" href="project-files/img/favicon.ico" />
<link rel="icon" href="project-files/img/favicon.ico?{{ Timestamp }}" />
<!-- Meta -->
@ -15,7 +15,7 @@
<meta name="keywords" content="{{ Meta.Keywords }}" />
{% endblock meta %}
<link rel="stylesheet" type="text/css" href="project-files/css/preloader.css">
<link rel="stylesheet" type="text/css" href="project-files/css/preloader.css?{{ Timestamp }}">
{% include "partials/matomo.html" with siteId=Data.matomoSiteId %}
</head>
@ -201,20 +201,20 @@
<!-- Style -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="project-files/css/grid.css">
<link rel="stylesheet" type="text/css" href="project-files/css/main.css">
<link rel="stylesheet" type="text/css" href="project-files/css/menu.css">
<link rel="stylesheet" type="text/css" href="project-files/css/slider.css">
<link rel="stylesheet" type="text/css" href="project-files/fonts/font-awesome/font-awesome.css">
<link rel="stylesheet" type="text/css" href="project-files/js/slick/slick.css">
<link rel="stylesheet" type="text/css" href="project-files/css/grid.css?{{ Timestamp }}">
<link rel="stylesheet" type="text/css" href="project-files/css/main.css?{{ Timestamp }}">
<link rel="stylesheet" type="text/css" href="project-files/css/menu.css?{{ Timestamp }}">
<link rel="stylesheet" type="text/css" href="project-files/css/slider.css?{{ Timestamp }}">
<link rel="stylesheet" type="text/css" href="project-files/fonts/font-awesome/font-awesome.css?{{ Timestamp }}">
<link rel="stylesheet" type="text/css" href="project-files/js/slick/slick.css?{{ Timestamp }}">
<!-- Javascript -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="project-files/js/slick/slick.min.js"></script>
<script src="project-files/js/slick/slick-custom.js"></script>
<script src="project-files/js/slick/slick.min.js?{{ Timestamp }}"></script>
<script src="project-files/js/slick/slick-custom.js?{{ Timestamp }}"></script>
<script src="project-files/js/preloader.js"></script>
<script src="project-files/js/functions.js"></script>
<script src="project-files/js/preloader.js?{{ Timestamp }}"></script>
<script src="project-files/js/functions.js?{{ Timestamp }}"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mermaid/8.0.0/mermaid.min.js"></script>