Chart.jsを参照するようテンプレートを修正

This commit is contained in:
Kazuhiro MUSASHI 2020-06-13 12:37:21 +07:00 committed by Gitea
parent a374d6c011
commit 54a98e15d0
1 changed files with 8 additions and 0 deletions

View File

@ -37,6 +37,10 @@
</style> </style>
{{ end }} {{ end }}
{{ if .Params.chart }}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.css" />
{{ end }}
<!-- RSS <!-- RSS
--> -->
<link href="{{ .Site.BaseURL }}index.xml" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> <link href="{{ .Site.BaseURL }}index.xml" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
@ -53,6 +57,10 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/topojson/3.0.0/topojson.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/topojson/3.0.0/topojson.min.js"></script>
{{ end }} {{ end }}
{{ if .Params.chart }}
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.bundle.min.js"></script>
{{ end }}
<!-- OGP Settings --> <!-- OGP Settings -->
<meta property="fb:app_id" content="951084758293113" /> <meta property="fb:app_id" content="951084758293113" />
{{template "_internal/opengraph.html" . }} {{template "_internal/opengraph.html" . }}