style: add & run prettier

This commit is contained in:
Jan Raasch 2020-09-09 18:00:59 +02:00
parent 30fe331123
commit 848f6129ec
24 changed files with 1874 additions and 1239 deletions

View file

@ -1,15 +1,16 @@
{{ define "main" }}
<main class="content page-template 404" role="main">
<main class="content page-template 404" role="main">
<article class="post page">
<header class="post-header">
<a id="blog-logo" href="{{ "/" | relURL }}">
{{ .Site.Title }}
</a>
</header>
<h1 class="post-title">404 - Page Not Found</h1>
<section class="post-content">
Give it another try: <a href="{{ "/" | relURL }}" alt="Homepage">Back to the homepage</a>.
</section>
<header class="post-header">
<a id="blog-logo" href="{{ "/" | relURL }}">
{{ .Site.Title }}
</a>
</header>
<h1 class="post-title">404 - Page Not Found</h1>
<section class="post-content">
Give it another try:
<a href="{{ "/" | relURL }}" alt="Homepage">Back to the homepage</a>.
</section>
</article>
</main>
{{ end }}
</main>
{{ end }}

View file

@ -1,20 +1,23 @@
<!DOCTYPE html>
<html>
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
{{- block "main" . }}{{- end }}
{{- partial "footer.html" . -}}
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
{{- block "main" . }}{{- end }}
{{- partial "footer.html" . -}}
<!-- We do need jQuery to be loaded before HugoScroll script -->
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<!-- We do need jQuery to be loaded before HugoScroll script -->
<script
type="text/javascript"
src="https://code.jquery.com/jquery-1.11.3.min.js"
></script>
<!-- The main JavaScript files for HugoScroll -->
<script type="text/javascript" src='{{ "js/icons.js" | absURL }}'></script>
<script type="text/javascript" src='{{ "js/index.js" |absURL }}'></script>
<!-- A partial to be overwritten by the user.
<!-- The main JavaScript files for HugoScroll -->
<script type="text/javascript" src='{{ "js/icons.js" | absURL }}'></script>
<script type="text/javascript" src='{{ "js/index.js" |absURL }}'></script>
<!-- A partial to be overwritten by the user.
Simply place a custom_body.html into
your local /layouts/partials-directory -->
{{- partial "custom_body.html" . -}}
</body>
{{- partial "custom_body.html" . -}}
</body>
</html>

View file

@ -1,15 +1,15 @@
{{ define "main" }}
<main class="content page-template page-{{ .Slug }}" role="main">
<main class="content page-template page-{{ .Slug }}" role="main">
<article class="post page">
<header class="post-header">
<a id="blog-logo" href="{{ "/" | relURL }}">
{{ .Site.Title }}
</a>
</header>
<h1 class="post-title">{{ .Title }}</h1>
<section class="post-content">
{{ .Content }}
</section>
<header class="post-header">
<a id="blog-logo" href="{{ "/" | relURL }}">
{{ .Site.Title }}
</a>
</header>
<h1 class="post-title">{{ .Title }}</h1>
<section class="post-content">
{{ .Content }}
</section>
</article>
</main>
</main>
{{ end }}

View file

@ -14,7 +14,6 @@
<i id='header-arrow' class="fa fa-angle-down"></i>
</div>
</div>
</header>
<main class="content" role="main">

View file

@ -1,11 +1,18 @@
<footer class="site-footer">
<div class="inner">
{{ with .Site.Params.copyright }}<section class="copyright">{{ . | markdownify }}</section>{{ end }}
<section>{{ echoParam .Site.Params "hidebyline" }}</section>
{{ if ne .Site.Params.hidedesignbyline true }}<section>
<!-- TODO: Change link to https://themes.gohugo.io/hugo-scroll/ once
<div class="inner">
{{ with .Site.Params.copyright }}
<section class="copyright">{{ . | markdownify }}</section>{{ end }}
<section>{{ echoParam .Site.Params "hidebyline" }}</section>
{{ if ne .Site.Params.hidedesignbyline true }}
<section>
<!-- TODO: Change link to https://themes.gohugo.io/hugo-scroll/ once
https://github.com/gohugoio/hugoThemes/issues/881 is solved. -->
<a href="https://github.com/janraasch/hugo-scroll/">Design</a> template built with ♥️ by <a href="https://www.janraasch.com" title="Jan Raasch">Jan Raasch</a>
</section>{{ end }}
</div>
<a href="https://github.com/janraasch/hugo-scroll/">Design</a> template
built with ♥️ by
<a href="https://www.janraasch.com" title="Jan Raasch">Jan Raasch</a>
</section>{{ end }}
</div>
</footer>

View file

@ -3,20 +3,37 @@
<title>{{ with .Title }}{{ . }}{{ else }}{{ .Site.Title }}{{ end }}</title>
{{ with .Site.Params.favicon }}<link rel="shortcut icon" href="{{ . | absURL }}" type="image/png"/>{{ end }}
{{ with .Site.Params.favicon }}
<link rel="shortcut icon" href="{{ . | absURL }}" type="image/png"
/>{{ end }}
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}" />{{ end }}
{{ with .Site.Params.meta.keywords }}<meta name="keywords" content="{{ . }}" />{{ end }}
{{ with .Site.Params.description }}
<meta name="description" content="{{ . }}"
/>{{ end }}
{{ with .Site.Params.meta.keywords }}
<meta name="keywords" content="{{ . }}"
/>{{ end }}
<meta name="referrer" content="no-referrer-when-downgrade" />
<meta name="HandheldFriendly" content="True" />
<meta name="MobileOptimized" content="320" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href='{{ "css/screen.css" | absURL }}'>
<link href='https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,300italic,700' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Oswald:400,300,700|Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800|Roboto+Slab:400,100,300,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href='{{ "font-awesome/css/font-awesome.min.css" | absURL }}'>
<link rel="stylesheet" href="{{ "css/screen.css" | absURL }}" />
<link
href="https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,300italic,700"
rel="stylesheet"
type="text/css"
/>
<link
href="https://fonts.googleapis.com/css?family=Oswald:400,300,700|Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800|Roboto+Slab:400,100,300,700"
rel="stylesheet"
type="text/css"
/>
<link
rel="stylesheet"
href="{{ "font-awesome/css/font-awesome.min.css" | absURL }}"
/>
{{ template "_internal/opengraph.html" . }}
{{ template "_internal/twitter_cards.html" . }}