parent
4c0a119c43
commit
9cba34af39
2 changed files with 50 additions and 0 deletions
@ -0,0 +1,31 @@ |
||||
<style> |
||||
|
||||
html body { |
||||
font-family: {{ .Site.Params.font }}, sans-serif; |
||||
background-color: {{ .Site.Params.backgroundColor | default "white" }}; |
||||
} |
||||
|
||||
:root { |
||||
--accent: {{ .Site.Params.accent | default "#2196F3" }}; |
||||
--border-width: {{ if .Site.Params.showBorder | default false }} 5px {{ else }} 0 {{ end }}; |
||||
} |
||||
|
||||
</style> |
||||
|
||||
<!-- main --> |
||||
<link rel="stylesheet" href="/css/main.css"> |
||||
|
||||
<!-- custom --> |
||||
{{ range .Site.Params.css }} <link rel="stylesheet" href="{{ . }}"> {{ end }} |
||||
|
||||
<!-- google fonts --> |
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family={{ .Site.Params.font }}"> |
||||
|
||||
<!-- highlight.js --> |
||||
{{ if .Site.Params.highlight | default false }} <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/{{ .Site.Params.highlightStyle | default "default" }}.min.css"> {{ end }} |
||||
|
||||
<!-- bootstrap --> |
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> |
||||
|
||||
<!-- font awesome --> |
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous"> |
||||
@ -0,0 +1,19 @@ |
||||
<!-- highlight.js --> |
||||
{{ if .Site.Params.highlight | default false }} |
||||
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script> |
||||
|
||||
{{ range .Site.Params.highlightLanguages }} <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/{{ . }}.min.js"></script> {{ end }} |
||||
|
||||
<script>hljs.initHighlightingOnLoad();</script> |
||||
|
||||
{{ end }} |
||||
|
||||
<!-- custom --> |
||||
{{ range .Site.Params.js }} <script src="{{ . }}"></script> {{ end }} |
||||
|
||||
<!-- jquery --> |
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> |
||||
|
||||
<!-- bootstrap --> |
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> |
||||
Loading…
Reference in new issue