Commit 4afa7d37 authored by julientaq's avatar julientaq
Browse files

add donation and gitlab to the menu

parent 91ee0a7e
......@@ -78,6 +78,11 @@
content: none;
margin: 0;
}
.gitlab-link {
svg {
display: none;
}
}
}
}
......
......@@ -5,31 +5,28 @@
<meta charset="utf-8">
<meta name="description" content="The home of paged.js, the library to turn HTML into PDF">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Paged.js — {{ .Page.Title }} </title>
<title>Paged.js — {{ .Page.Title }}
</title>
{{ $css := resources.Get "./css/main.css" | resources.PostCSS (dict "config" "./assets/css/postcss.config.js" "noMap" true) | minify | resources.Fingerprint "md5" }}
<link rel="stylesheet" href="{{ $css.Permalink }}" integrity="{{ $css.Data.Integrity }}">
{{ block "htmlhead" .}}
{{ partial "pagedjs-header.html" . }}
{{ partial "pagedjs-header.html" . }}
{{ end }}
</head>
<body style="{{ if .Params.colorPaper }} --color-paper:{{ .Params.colorPaper }}; {{ end }} " class="{{block "bodyClass" .}} {{ end }} {{ if .Params.class }} {{ .Params.class }} {{ end }} {{ .Page.Section }}" >
{{ block "background" . }}
{{ end }}
{{ block "print" .}}
{{/* print button */}}
{{ block "background" . }}{{ end }}
{{ block "print" .}}{{/* print button */}}
{{ if or (.Params.print) (eq .Page.Section "documentation") (eq .Page.Section "posts")}}
{{ partial "print-button.html" . }}
{{ partial "print-button.html" . }}
{{ end }}
{{ end }}
{{ partial "cropmarks.html" }}
{{ block "running" . }}
{{ end }}
{{ partial "cropmarks.html" }}
{{ block "running" . }}
<div class="running-head">
<a class="back-home" href="{{ .Site.BaseURL }}">
{{ partial "paged-logo.html" . }}
......@@ -40,84 +37,127 @@
<!-- </a> -->
</div>
{{ end }}
{{ block "header" . }}
{{ end }}
{{ block "header" . }}
<header>
<h1 id="title">{{ .Title }}</h1>
{{ if .Params.intro }}
<p class="intro">{{ .Params.intro | markdownify }}</p>
<p class="intro">{{ .Params.intro | markdownify }}</p>
{{end}}
</header>
{{ end }}
{{ block "main" . }}
{{ block "breadcrumb.html" . }}{{/* {{ partial "breadcrumb.html" .}} */}}
{{ end }}
{{ block "main" . }}
{{ block "breadcrumb.html" . }}
{{/* {{ partial "breadcrumb.html" .}} */}}
{{ end }}
<article>
{{ if .Params.intro }}<p class="intro">{{ .Params.intro | markdownify }} <br/><span class="tags"> {{ partial "tag-coma.html" . }}</span></p>{{end}}
<article>
{{ if .Params.intro }}
<p class="intro">{{ .Params.intro | markdownify }}
<br/>
<span class="tags">
{{ partial "tag-coma.html" . }}</span></p>
{{end}}
{{ .Content }}
{{ .Content }}
{{block "aside" .}}
{{block "aside" .}}
<aside class="paginator {{ if and .NextInSection .PrevInSection }} both {{ end }}">
{{ with .NextInSection }}
<a class="previous" href="{{.Permalink}}">{{.Title}}</a>
<a class="previous" href="{{.Permalink}}">{{.Title}}</a>
{{ end }}
{{ if .NextInSection }}
{{ with .PrevInSection }}
<a class="next" href="{{.Permalink}}">{{.Title}}</a>
{{ end }}
{{ with .PrevInSection }}
<a class="next" href="{{.Permalink}}">{{.Title}}</a>
{{ end }}
{{ else }}
{{ with .PrevInSection }}
<a class="next alone" href="{{.Permalink}}">{{.Title}}</a>
{{ end }}
{{ with .PrevInSection }}
<a class="next alone" href="{{.Permalink}}">{{.Title}}</a>
{{ end }}
{{ end }}
</aside>
{{ end }}
</article>
{{ end }}
</article>
{{ end }}
{{ block "footer" . }}
{{ partial "footer.html" . }}
{{ end }}
{{ block "footer" . }}
{{ partial "footer.html" . }}
{{ end }}
{{ block "script" . }}
{{ $js := resources.Get "/js/scripts.js" }}
<script src="{{$js.Permalink}}"></script>
{{ if eq .Params.section "documentation" }}
{{ block "script" . }}
{{ $js := resources.Get "/js/scripts.js" }}
<script src="{{$js.Permalink}}"></script>
{{ if eq .Params.section "documentation" }}
{{ $docjs := resources.Get "/js/docList.js" }}
<script src="{{$docjs.Permalink}}"></script>
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{/* {{ partial "matomo-tracking" . }} */}}
{{/* {{ partial "matomo-tracking" . }} */}}
<!-- Matomo -->
<script type="text/javascript">
var _paq = window._paq || [];
/ tracker methods like "setCustomDimension" should be called before "trackPageView" /
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//stats.coko.foundation/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '17']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
var _paq = window._paq || [];
/ tracker methods like "setCustomDimension" should be called before "trackPageView" /
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function () {
var u = "//stats.coko.foundation/";
_paq.push([
'setTrackerUrl', u + 'matomo.php'
]);
_paq.push(['setSiteId', '17']);
var d = document,
g = d.createElement('script'),
s = d.getElementsByTagName('script')[0];
g.type = 'text/javascript';
g.async = true;
g.defer = true;
g.src = u + 'matomo.js';
s
.parentNode
.insertBefore(g, s);
})();
</script>
<noscript><p><img src="//stats.coko.foundation/matomo.php?idsite=17&rec=1" style="border:0;" alt="" /></p></noscript>
<noscript>
<p><img src="//stats.coko.foundation/matomo.php?idsite=17&rec=1" style="border:0;" alt=""/></p>
</noscript>
<!-- End Matomo Code -->
</body>
<!--
Donation nation
-->
<script>
(function () {
if (document.querySelector('.commitchange-donate[data-fixed]'))
return;
var cc_donate = document.createElement('div');
cc_donate.innerHTML = "<a data-fixed class='commitchange-donate'></a>";
document
.body
.appendChild(cc_donate);
var npo = 5726;
var script = document.createElement('script');
var first = document.getElementsByTagName('script')[0];
script.setAttribute('data-npo-id', npo);
script.id = 'commitchange-script';
script.src = 'https://us.commitchange.com/js/donate-button.v2.js';
first
.parentNode
.insertBefore(script, first);
})();
// # styles for the button #
{# console.log(frames); #}
{# const buttonStyles = `body * {color: red !important}`; #}
{# frames['frame1']
.document
.body
.appendChild(`<style>${buttonStyle}</style>`); #}
</script>
</body>
</html>
\ No newline at end of file
......@@ -8,5 +8,27 @@
</a>
</li>
{{ end }}
<li>
<a class="gitlab-link" href="https://gitlab.pagedmedia.org/tools/pagedjs">
<svg width="340" height="315" viewBox="0 0 340 315" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M338.514 176.355L320.465 120.768C320.473 120.793 320.476 120.819 320.484 120.844C320.475 120.815 320.47 120.786 320.462 120.757C320.461 120.755 320.461 120.754 320.461 120.752V120.75L284.631 10.4399C282.671 4.62888 277.278 0.728878 271.095 0.776878C264.894 0.808878 259.649 4.63387 257.731 10.5249L223.721 115.23H116.408L82.3341 10.5179C80.4181 4.63188 75.1721 0.807879 68.9721 0.775879C68.9471 0.775879 68.9231 0.775879 68.8971 0.775879C62.7921 0.775879 57.3881 4.65188 55.4071 10.5279L19.6751 120.739L19.6701 120.753V120.756C19.6611 120.784 19.6571 120.812 19.6481 120.84C19.6561 120.815 19.6591 120.789 19.6671 120.764L1.5521 176.355C-1.1729 184.747 1.7841 193.867 8.9121 199.052L165.328 312.7C165.351 312.717 165.377 312.727 165.4 312.744C165.467 312.792 165.532 312.841 165.6 312.886C165.536 312.843 165.476 312.796 165.413 312.752L165.412 312.751C165.422 312.759 165.434 312.764 165.445 312.771C165.454 312.777 165.463 312.781 165.472 312.787C165.472 312.787 165.474 312.789 165.476 312.79C165.718 312.958 165.969 313.112 166.229 313.253C166.265 313.273 166.297 313.298 166.333 313.317L166.335 313.318C166.357 313.329 166.377 313.343 166.399 313.354C166.416 313.362 166.434 313.367 166.45 313.375C166.462 313.381 166.475 313.385 166.487 313.39C166.516 313.404 166.548 313.413 166.577 313.428C166.713 313.493 166.856 313.546 166.996 313.603C167.127 313.657 167.254 313.72 167.388 313.767C167.394 313.769 167.399 313.772 167.405 313.774C167.427 313.782 167.447 313.793 167.47 313.801C167.498 313.811 167.525 313.822 167.553 313.831C167.564 313.834 167.575 313.836 167.586 313.839C167.621 313.85 167.659 313.855 167.694 313.865C167.707 313.869 167.722 313.871 167.736 313.875C167.924 313.932 168.119 313.973 168.313 314.016C168.389 314.033 168.462 314.057 168.539 314.071C168.55 314.073 168.56 314.077 168.572 314.079C168.597 314.084 168.62 314.093 168.646 314.097C168.687 314.104 168.727 314.117 168.769 314.123C168.802 314.128 168.836 314.126 168.869 314.131C168.875 314.132 168.88 314.131 168.886 314.132H168.891C169.26 314.185 169.634 314.222 170.015 314.222H170.022H170.024H170.025H170.028C170.41 314.222 170.784 314.185 171.154 314.132H171.158C171.164 314.131 171.17 314.132 171.176 314.131C171.209 314.126 171.244 314.128 171.277 314.123C171.319 314.116 171.359 314.104 171.401 314.097C171.426 314.093 171.449 314.084 171.474 314.079C171.485 314.077 171.495 314.073 171.506 314.071C171.584 314.056 171.659 314.032 171.737 314.015C171.928 313.973 172.12 313.932 172.307 313.876C172.32 313.872 172.333 313.871 172.346 313.867C172.383 313.856 172.421 313.851 172.458 313.84C172.469 313.836 172.481 313.835 172.492 313.832C172.521 313.823 172.549 313.811 172.577 313.801C172.599 313.793 172.619 313.782 172.641 313.774C172.647 313.772 172.652 313.769 172.658 313.767C172.8 313.717 172.934 313.651 173.073 313.594C173.202 313.54 173.334 313.492 173.46 313.432C173.491 313.417 173.524 313.408 173.554 313.393C173.566 313.387 173.58 313.383 173.592 313.377C173.609 313.369 173.627 313.364 173.644 313.355C173.667 313.343 173.689 313.329 173.711 313.318L173.712 313.317C173.749 313.298 173.782 313.271 173.819 313.251C174.077 313.111 174.327 312.958 174.568 312.791C174.587 312.778 174.609 312.768 174.629 312.754C174.634 312.75 174.64 312.748 174.645 312.744C174.668 312.727 174.695 312.716 174.718 312.699L331.158 199.049C338.282 193.867 341.239 184.747 338.514 176.355ZM271.194 20.7739L301.874 115.23H240.514L271.194 20.7739ZM296.501 131.202L283.982 147.243L191.648 265.55L235.325 131.202H296.501ZM148.42 265.558L43.6241 131.202H104.804L148.42 265.558ZM68.8751 20.7729L99.6121 115.23H38.2521L68.8751 20.7729ZM18.3041 186.133C16.7881 185.03 16.1601 183.083 16.7411 181.295L30.2071 139.97L128.877 266.472L18.3041 186.133ZM165.053 312.489C165.022 312.464 164.992 312.437 164.962 312.411C164.956 312.406 164.95 312.399 164.943 312.394C164.883 312.344 164.824 312.293 164.766 312.241C164.652 312.142 164.54 312.041 164.433 311.935C164.442 311.943 164.452 311.95 164.461 311.958C164.473 311.969 164.486 311.978 164.498 311.989C164.727 312.208 164.968 312.414 165.22 312.604C165.223 312.606 165.225 312.609 165.228 312.611C165.24 312.62 165.25 312.631 165.262 312.641C165.193 312.591 165.121 312.543 165.053 312.489ZM170.028 280.392L144.363 201.333L121.597 131.202H218.53L170.028 280.392ZM175.281 312.241C175.221 312.293 175.163 312.345 175.102 312.395C175.095 312.401 175.088 312.408 175.081 312.414C175.05 312.439 175.021 312.466 174.991 312.491C174.925 312.544 174.853 312.592 174.784 312.643C174.796 312.634 174.806 312.622 174.819 312.614L174.825 312.608C175.077 312.418 175.317 312.214 175.544 311.995C175.553 311.986 175.564 311.979 175.573 311.971C175.585 311.96 175.598 311.951 175.609 311.94C175.503 312.043 175.392 312.143 175.281 312.241ZM321.766 186.13L211.209 266.447L309.912 139.98L323.324 181.287C323.906 183.083 323.279 185.03 321.766 186.13Z" fill="#231F20"/>
</svg> Gitlab</a>
</li>
</ul>
</nav>
<script>
(function() {
if(document.querySelector('.commitchange-donate[data-fixed]')) return;
var cc_donate = document.createElement('div');
cc_donate.innerHTML = "<a data-fixed class='commitchange-donate'></a>";
document.body.appendChild(cc_donate);
var npo = 5726;
var script = document.createElement('script');
var first = document.getElementsByTagName('script')[0];
script.setAttribute('data-npo-id', npo);
script.id = 'commitchange-script';
script.src = 'https://us.commitchange.com/js/donate-button.v2.js';
first.parentNode.insertBefore(script, first);
})();
</script>
\ No newline at end of file
Markdown is supported
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