mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2024-11-21 07:46:30 -05:00
Move font-awesome into local css.
This commit is contained in:
parent
297ec66033
commit
496aa8bfd8
5 changed files with 14 additions and 13 deletions
|
@ -5,12 +5,6 @@
|
|||
using a modified version of the <a href="https://github.com/koirand/pulp/">pulp</a> theme.
|
||||
</p>
|
||||
</footer>
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
tex2jax: {inlineMath: [['$','$']]}
|
||||
});
|
||||
</script>
|
||||
<script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-MML-AM_CHTML' async></script>
|
||||
<script async src="https://dash.brandonrozek.com/tracker.js" data-ackee-server="https://dash.brandonrozek.com" data-ackee-domain-id="d5c3c357-4915-4d5c-b792-e061b76f8186"></script>
|
||||
{{- range .Site.Params.custom_js -}}
|
||||
<script src="{{ . }}"></script>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="author" content="{{ .Site.Params.Author }}" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="/img/{{ .Site.Params.favicon }}">
|
||||
<link rel="shortcut icon" type="image/x-icon" href="{{ .Site.BaseURL }}img/{{ .Site.Params.favicon }}">
|
||||
|
||||
<!-- Identities -->
|
||||
{{ range .Site.Params.identities}}
|
||||
|
@ -22,13 +22,13 @@
|
|||
{{ $markdown := resources.Get "css/markdown.css" }}
|
||||
{{ $fontawesome := resources.Get "css/fontawesome.css" }}
|
||||
{{ $syntaxHighlight := resources.Get "css/syntax-highlight.css" }}
|
||||
{{ $css := slice $style $markdown $syntaxHighlight | resources.Concat "style.css" | resources.Minify | resources.Fingerprint }}
|
||||
{{ $css := slice $style $markdown $fontawesome $syntaxHighlight | resources.Concat "css/style.css" | resources.Minify | resources.Fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $css.Permalink }}" integrity="{{ $css.Data.Integrity }}">
|
||||
{{ $styleDark := resources.Get "css/style-dark.css" }}
|
||||
{{ $markdownDark := resources.Get "css/markdown-dark.css" }}
|
||||
{{ $cssDark := slice $styleDark $markdownDark | resources.Concat "style-dark.css" | resources.Minify | resources.Fingerprint }}
|
||||
{{ $cssDark := slice $styleDark $markdownDark | resources.Concat "css/style-dark.css" | resources.Minify | resources.Fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $cssDark.Permalink }}" media="(prefers-color-scheme: dark)" integrity="{{ $cssDark.Data.Integrity }}">
|
||||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
|
||||
<!-- <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous"> -->
|
||||
|
||||
<!-- custom css -->
|
||||
{{ range .Site.Params.custom_css }}
|
||||
|
@ -56,4 +56,10 @@
|
|||
{{- if and (not .Site.IsServer) .Site.GoogleAnalytics -}}
|
||||
{{ template "_internal/google_analytics_async.html" . }}
|
||||
{{- end -}}
|
||||
|
||||
<!-- MathJax -->
|
||||
{{ if or .Params.math .Site.Params.math }}
|
||||
{{ partial "mathjax_support.html" . }}
|
||||
{{ end }}
|
||||
|
||||
</head>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<meta name="twitter:image" content="{{ index . 0 | absURL }}"/>
|
||||
{{ else -}}
|
||||
<meta name="twitter:card" content="summary"/>
|
||||
<meta name="twitter:image" content="{{ .Site.BaseURL }}/img/{{ .Site.Params.avatar }}"/>
|
||||
<meta name="twitter:image" content="{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}"/>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{{ define "main"}}
|
||||
<h1 class='title'>{{ .Title }}</h1>
|
||||
{{ partial "header.html" . }}
|
||||
<!-- search box -->
|
||||
<div id="searchBox">
|
||||
|
@ -30,7 +29,7 @@
|
|||
{{ end }}
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
||||
{{ $jquery := resources.Get "js/jquery-3.3.1.min.js" }}
|
||||
{{ $jquery := resources.Get "js/jquery-3.5.1.min.js" }}
|
||||
{{ $mark := resources.Get "js/jquery.mark.es6.min.js" }}
|
||||
{{ $lunr := resources.Get "js/lunr.js" }}
|
||||
{{ $search := resources.Get "js/search.js" }}
|
||||
|
|
|
@ -2,8 +2,10 @@
|
|||
<h1 class='title'>{{ .Title }}</h1>
|
||||
{{ partial "header.html" . }}
|
||||
<!-- date -->
|
||||
{{ if not .Date.IsZero }}
|
||||
{{ $singlePageDateFormat := .Site.Params.singlePageDateFormat | default "January 2, 2006"}}
|
||||
<p class="date">{{ .Date.Format $singlePageDateFormat }}</p>
|
||||
{{ end }}
|
||||
<!-- tags -->
|
||||
<div id="tags">
|
||||
<ul>
|
||||
|
|
Loading…
Reference in a new issue