Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
HidegonSan committed Nov 16, 2023
1 parent 390fa3e commit acde099
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions archetypes/default.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
draft: true

date: "{{ .Date }}"
date: "{{- .Date -}}"
# url: ""

title: "{{ replace .Name "-" " " | title }}"
title: "{{- replace .Name "-" " " | title -}}"
description: ""
keywords: ""

Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/footer/instant_page.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{/* instant.page | Thanks: https://instant.page/ */}}

{{- with resources.Get "js/instantpage.js" | fingerprint -}}
<script defer crossorigin="anonymous" src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}"></script>
<script defer crossorigin="anonymous" src="{{- .RelPermalink -}}" integrity="{{- .Data.Integrity -}}"></script>
{{- end -}}
4 changes: 2 additions & 2 deletions layouts/partials/head/css/contact_form_css.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{{/* contact form css */}}

{{ if .HasShortcode "contact_form" }}
{{- if .HasShortcode "contact_form" -}}
<style>
{{- with resources.Get "css/shortcodes/contact_form.css" | toCSS | minify -}}
{{- .Content | safeCSS -}}
{{- end -}}
</style>
{{ end }}
{{- end -}}
4 changes: 2 additions & 2 deletions layouts/partials/head/css/spoiler_css.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{{/* spoiler css */}}

{{ if .HasShortcode "spoiler" }}
{{- if .HasShortcode "spoiler" -}}
<style>
{{- with resources.Get "css/shortcodes/spoiler.css" | toCSS | minify -}}
{{- .Content | safeCSS -}}
{{- end -}}
</style>
{{ end }}
{{- end -}}
2 changes: 1 addition & 1 deletion layouts/partials/head/seo.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{{- with site.Params.classification -}}
<meta name="classification" content="{{- range $i, $e := . -}}{{- if $i -}}, {{- end -}}{{- $e -}}{{- end -}}">
{{- end -}}
{{- end }}
{{- end -}}

{{- $iso8601 := "2006-01-02T15:04:05-07:00" -}}
{{- with .PublishDate -}}
Expand Down
8 changes: 4 additions & 4 deletions layouts/robots.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
User-agent: *
{{- if hugo.IsProduction | or (eq site.Params.env "production") }}
{{- if hugo.IsProduction | or (eq site.Params.env "production") -}}
Disallow:
{{- else }}
{{- else -}}
Disallow: /
{{- end }}
{{- end -}}

Disallow: /blog/search/
Disallow: /blog/404.html

Sitemap: {{ "sitemap.xml" | absURL }}
Sitemap: {{- "sitemap.xml" | absURL -}}
2 changes: 1 addition & 1 deletion layouts/shortcodes/contact_form.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ .Inner }}
{{- .Inner -}}

<div id="contact_form_wrapper">

Expand Down
4 changes: 2 additions & 2 deletions layouts/shortcodes/spoiler.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{{/* https://github.com/gohugoio/hugo/issues/9692 */}}
<span class="spoiler">{{ trim .Inner "\r\n" | .Page.RenderString }}</span>
{{/* https://github.com/gohugoio/hugo/issues/9692 */}}
<span class="spoiler">{{- trim .Inner "\r\n" | .Page.RenderString -}}</span>

0 comments on commit acde099

Please sign in to comment.