Skip to content

Commit

Permalink
Merge pull request #12 from andypiper/boilerplate
Browse files Browse the repository at this point in the history
Fix: update themes for deprecated conditional. Add README.
  • Loading branch information
renchap authored Jun 12, 2024
2 parents 4df57c1 + 34883ea commit f95861b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# mastodon/blog

This repository contains the source code for the Mastodon blog at joinmastodon.org/blog

The blog is built with Hugo, a static site generator.

Contributions are limited to the core Mastodon project team.
4 changes: 2 additions & 2 deletions themes/mastodon/layouts/partials/head/stylesheets.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{ $styles := resources.Get "css/styles.css" | postCSS (dict "config" "./postcss.config.js") }}
{{ if .Site.IsServer }}
{{ if hugo.IsServer }}
<link rel="stylesheet" href="{{ $styles.RelPermalink }}">
{{ else }}
{{ $styles := $styles | minify | fingerprint | resources.PostProcess }}
<link rel="stylesheet" href="{{ $styles.Permalink }}" integrity="{{ $styles.Data.Integrity }}">
{{ end }}
{{ end }}

0 comments on commit f95861b

Please sign in to comment.