Restructures and refactores the partial layouts
This commit is contained in:
parent
55d7de3e96
commit
6139c76987
8 changed files with 15 additions and 50 deletions
|
@ -3,7 +3,7 @@
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{ define "content" -}}
|
{{ define "content" -}}
|
||||||
{{ partial "list_content.html" . }}
|
{{ partial "content_list.html" . }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{ define "footer" -}}
|
{{ define "footer" -}}
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{ define "content" -}}
|
{{ define "content" -}}
|
||||||
{{ partial "post_content.html" . }}
|
{{ partial "content_single.html" . }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{ define "footer" -}}
|
{{ define "footer" -}}
|
||||||
{{ partial "post_footer.html" . }}
|
{{ partial "commenting.html" . }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
<link href="http://gmpg.org/xfn/11" rel="profile">
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
||||||
{{ with .Site.Params.meta.description }}<meta name="description" content="{{ . }}">{{ end }}
|
|
||||||
{{ with .Site.Params.meta.keywords }}<meta name="keywords" content="{{.}}">{{ end }}
|
|
||||||
{{ .Hugo.Generator }}
|
|
||||||
<!-- Enable responsiveness on mobile devices-->
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
|
|
||||||
{{ if .IsHome -}}
|
|
||||||
<title>{{ .Site.Title }}</title>
|
|
||||||
{{- else -}}
|
|
||||||
<title>{{ .Title }} · {{ .Site.Title }}</title>
|
|
||||||
{{- end }}
|
|
||||||
<!-- CSS -->
|
|
||||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/print.css" media="print">
|
|
||||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/poole.css">
|
|
||||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/hyde.css">
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Fira+Sans:300,300i,400,400i,500">
|
|
||||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
|
|
||||||
<!-- Grid Syntax -->
|
|
||||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/grid.css">
|
|
||||||
|
|
||||||
<!-- Customised CSS -->
|
|
||||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/custom.css">
|
|
||||||
|
|
||||||
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
|
||||||
<!--[if lt IE 9]>
|
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
|
||||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
|
||||||
<![endif]-->
|
|
||||||
<!-- Icons -->
|
|
||||||
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144-precomposed.png">
|
|
||||||
<link rel="shortcut icon" href="/favicon.png">
|
|
||||||
<!-- RSS -->
|
|
||||||
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
|
|
|
@ -12,17 +12,8 @@
|
||||||
{{ if .Site.DisqusShortname -}}
|
{{ if .Site.DisqusShortname -}}
|
||||||
{{ if ne .Params.showcomments false }}
|
{{ if ne .Params.showcomments false }}
|
||||||
<h2>Comments</h2>
|
<h2>Comments</h2>
|
||||||
{{ partial "post_disqus.html" . }}
|
{{ partial "commenting_disqus.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ else if .Site.Params.GraphCommentId -}}
|
{{ else if .Site.Params.GraphCommentId -}}
|
||||||
<div id="graphcomment"></div>
|
{{ partial "commenting_graph.html" . }}
|
||||||
<script type="text/javascript">
|
|
||||||
window.graphcomment_id = '{{ .Site.Params.GraphCommentId }}';
|
|
||||||
/* - - - DON'T EDIT BELOW THIS LINE - - - */
|
|
||||||
(function() {
|
|
||||||
var gc = document.createElement('script'); gc.type = 'text/javascript'; gc.async = true;
|
|
||||||
gc.src = 'https://graphcomment.com/js/integration.js';
|
|
||||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(gc);
|
|
||||||
})();
|
|
||||||
</script>
|
|
||||||
{{- end }}
|
{{- end }}
|
10
layouts/partials/commenting_graph.html
Normal file
10
layouts/partials/commenting_graph.html
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<div id="graphcomment"></div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
window.graphcomment_id = '{{ .Site.Params.GraphCommentId }}';
|
||||||
|
/* - - - DON'T EDIT BELOW THIS LINE - - - */
|
||||||
|
(function() {
|
||||||
|
var gc = document.createElement('script'); gc.type = 'text/javascript'; gc.async = true;
|
||||||
|
gc.src = 'https://graphcomment.com/js/integration.js';
|
||||||
|
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(gc);
|
||||||
|
})();
|
||||||
|
</script>
|
Loading…
Reference in a new issue