Skip to content

Commit

Permalink
Merge pull request rhazdon#1 from rhazdon/master
Browse files Browse the repository at this point in the history
Pull in latest from upstream master
  • Loading branch information
Duncanma committed Apr 20, 2019
2 parents f11d0dc + 617a430 commit c972e50
Show file tree
Hide file tree
Showing 13 changed files with 23 additions and 108 deletions.

Large diffs are not rendered by default.

32 changes: 0 additions & 32 deletions assets/scss/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -300,35 +300,3 @@ hr {
width: auto;
z-index: 100000;
}

// #home-center {
// display: flex;
// flex-grow: 1;
// flex-direction: column;
// justify-content: center;
// }
//
// #home-title {
// margin: 0;
// text-align: center;
// }
//
// #home-subtitle {
// margin-top: 0;
// margin-bottom: 1.5em;
// text-align: center;
// line-height: normal;
// font-size: .7em;
// font-style: italic;
// opacity: .9;
// }
//
// #home-social {
// font-size: 1.4em;
// text-align: center;
// opacity: .8;
//
// a {
// margin: 0 .2em;
// }
// }
24 changes: 13 additions & 11 deletions layouts/index.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
{{ define "main" }}
<div id="home-center">
<h1 id="home-title">{{ .Site.Title }}</h1>
<main aria-role="main">
<div>
<h1>{{ .Site.Title }}</h1>

{{- with .Site.Params.homeSubtitle }}
<p id="home-subtitle">{{.}}</p>
{{- end }}
{{- with .Site.Params.homeSubtitle }}
<p>{{.}}</p>
{{- end }}

{{- with .Site.Params.social }}
<div id="home-social">
{{ partialCached "social-icons.html" . }}
</div>
{{- end }}
</div>
{{- with .Site.Params.social }}
<div>
{{ partial "social-icons.html" . }}
</div>
{{- end }}
</div>
</main>
{{ end }}
13 changes: 6 additions & 7 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@
{{ end }}

<!-- CSS -->
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700|Source+Code+Pro" rel="stylesheet"
type="text/css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.2.1/css/flag-icon.min.css" rel="stylesheet"
type="text/css">

{{ $style := resources.Get "scss/main.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }}
{{ $options := (dict "targetPath" "main.css" "outputStyle" "compressed" "enableSourceMap" true) }}
{{ $style := resources.Get "scss/main.scss" | resources.ToCSS $options | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $style.Permalink }}">

{{ range $val := $.Site.Params.customCSS }}
Expand All @@ -46,9 +45,9 @@
<meta property="article:published_time" content="{{ time .Date }}" />{{ end }}

<!-- RSS -->
{{ if .RSSLink }}
<link href="{{ .Site.RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ end }}
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}

<!-- JSON Feed -->
{{ if .OutputFormats.Get "json" }}
Expand All @@ -59,4 +58,4 @@
<!-- Custom head tags -->
{{- if templates.Exists "partials/extra-head.html" -}}
{{ partial "extra-head.html" . }}
{{- end }}
{{- end }}
4 changes: 2 additions & 2 deletions layouts/partials/javascript.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{{ $main := resources.Get "js/main.js" }}
{{ $menu := resources.Get "js/menu.js" }}
{{ $prism := resources.Get "js/prism.js" }}
{{ $theme := resources.Get "js/theme.js" }}
{{ $js := slice $main $menu $theme | resources.Concat "js/bundle.js" }}
{{ $secureJS := $js | resources.Fingerprint "sha512" }}
{{ $secureJS := slice $main $menu $prism $theme | resources.Concat "bundle.js" | resources.Minify | resources.Fingerprint "sha512" }}
<script type="text/javascript" src="{{ $secureJS.Permalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script>

{{- if .Site.GoogleAnalytics }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/posts/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</div>

<article>
<h2 class="post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h2>
<h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>

{{- if .Params.toc }}
<hr />
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit c972e50

Please sign in to comment.