Browse Source

Strip down layout

Remove all styles and scripts which are unneeded in my eyes
master
Schneider 8 years ago
parent
commit
890389b654
  1. 5
      layouts/_default/single.html
  2. 7
      layouts/partials/head.html
  3. 6
      layouts/partials/js.html

5
layouts/_default/single.html

@ -30,13 +30,8 @@
<span>{{ .Site.Params.aboutAuthor }}</span>
</div>
{{ with .Site.Params.twitter }}</a>{{ end }}
<section id="sharing">
{{ partial "share.html" . }}
</section>
</footer>
{{ template "_internal/disqus.html" . }}
{{ partial "latest-posts.html" . }}
{{ partial "footer.html" . }}
</section>

7
layouts/partials/head.html

@ -10,17 +10,10 @@
<title>{{ if .IsHome }}{{ .Title }}{{ else }}{{ .Title }} &middot; {{ .Site.Title }}{{ end }}</title>
<link rel="shortcut icon" href="{{ .Site.BaseURL }}images/favicon.ico">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/style.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/highlight.css">
{{ range .Site.Params.customCSS }}
<link rel="stylesheet" href="{{ $.Site.BaseURL }}{{ . }}">
{{ end }}
{{ if eq .Site.Params.iconFont "font-awesome" }}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css">
{{ else }}
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/monosocialiconsfont.css">
{{ end }}
{{ if .Site.Params.enableRSS }}
<link href="{{ .Site.RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ end }}

6
layouts/partials/js.html

@ -1,10 +1,4 @@
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="{{ .Site.BaseURL }}js/main.js"></script>
<script src="{{ .Site.BaseURL }}js/highlight.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
{{ range .Site.Params.customJS }}
<script src="{{ $.Site.BaseURL }}{{ . }}"></script>
{{ end }}
{{ template "_internal/google_analytics.html" . }}
Loading…
Cancel
Save