Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"main": "index.js",
"scripts": {
"lint": "eslint src",
"start": "run-p start:**",
"start": "npm run build & run-p start:**",
"start:hugo": "hugo -d ../dist -s site -vw",
"start:webpack": "webpack-dev-server --config webpack.dev.js",
"start:sass": "npm run sass:watch",
Expand Down Expand Up @@ -73,4 +73,4 @@
"resolutions": {
"natives": "1.1.6"
}
}
}
6 changes: 0 additions & 6 deletions site/content/homelessness-strategy/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,5 @@ about:
strategy. This includes responses from the council, health, housing, the
voluntary sector, and businesses.
heading: Change Through Co-Production
actionPlans:
body:
heading: Action Plans
strategyCta:
title: READ THE FULL STRATEGY HERE
url: 'https://drive.google.com/file/d/1N2gW8c1ED3LYAKEkwkKlXzOXIWeAi9D1/view'
---

32 changes: 32 additions & 0 deletions site/content/i-need-support/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
title: I need support
menu:
main:
name: I need support
weight: 100
hero:
image: /assets/images/streetwise-opera.jpg
about:
body: >-
The Manchester City Strategy (which you can download below) was co-produced
by members of Manchester Homelessness Partnership. This includes people with
personal insight into homelessness, people who work for the Council and
frontline services. As far as we are aware, this is the first time a city in
the UK has developed a strategy in this way.


We believe that to end homelessness in all it's forms in Manchester, we have
to work together towards a whole city response. We have asked each sector to
create an action plan for how they can work to meet the requirements of this
strategy. This includes responses from the council, health, housing, the
voluntary sector, and businesses.
heading: Change Through Co-Production
actionPlans:
body:
heading: I need support
strategyCta:
title: READ THE FULL STRATEGY HERE
url: 'https://drive.google.com/file/d/1N2gW8c1ED3LYAKEkwkKlXzOXIWeAi9D1/view'
---


70 changes: 70 additions & 0 deletions site/layouts/i-need-support/i-need-support.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<!doctype html>
<html class="no-js single" lang="en-GB" xmlns:fb="http://ogp.me/ns/fb#">
{{- partial "head.html" . -}}

<body>
{{- partial "header.html" . -}}
<main id="main" class="main">
<section class="block">
<div {{ if(eq .Params.hero.image nil) }} class="block__image block__image--bg block__image--bg-missing-image"
{{ else }} class="block__image block__image--bg" {{ end }} {{ if (ne .Params.hero.image nil) }}
style="background-image: url({{ .Params.hero.image }})" {{ end }}>
<div class="container">
<header class="block__header">
<h1 class="block__header-title">{{ .Params.about.heading }}</h1>
{{ if (ne .Params.about.subHeading nil) }}
<p class="block__header-sub-title">{{ .Params.about.subHeading }}</p>
{{ end }}
</header>
</div>
</div>
<div class="container">
<div class="block__body block__body--drop-shadow">
{{ $bodyMarkdown := .Params.about.body | markdownify }}
{{ if not ( strings.Contains $bodyMarkdown "<p>" ) }}<p>{{ $bodyMarkdown }}</p>
{{ else }}{{ $bodyMarkdown }}{{ end }}
</div>
</div>
</section>
{{ if (ne .Params.actionPlans.body nil) }}
<section class="block">
<div class="container">
<header class="block__header">
<h1 class="block__header-title">{{ .Params.actionPlans.heading }}</h1>
{{ if (ne .Params.actionPlans.subHeading nil) }}
<p class="block__header-sub-title">{{ .Params.actionPlans.subHeading }}</p>
{{ end }}
</header>
<div class="block__body block__body--drop-shadow">
{{ $bodyMarkdown := .Params.actionPlans.body | markdownify }}
{{ if not ( strings.Contains $bodyMarkdown "<p>" ) }}<p>{{ $bodyMarkdown }}</p>
{{ else }}{{ $bodyMarkdown }}{{ end }}
</div>
</div>
</section>
{{ end }}

{{ if ((ne .Params.strategyCta.title nil) | and (ne .Params.strategyCta.url nil)) }}
<section class="block block-last">
<div class="container">
{{ $urlPre := "https://api.github.com" }}
{{ $gistJ := getJSON $urlPre "/users/joseph-allen/gists" }}
{{ range first 5 $gistJ }}
{{ if .public }}
<li><a href="{{ .html_url }}" target="_blank">{{ .description }}</a></li>
{{ end }}
{{ end }}
</div>
</section>
{{ end }}
</main>
{{ $footer := .Site.GetPage "_footer.md" }}
{{ partial "footer.html" (dict "footer" $footer) }}

{{ $script := .Site.Data.webpack.main }}
{{ with $script.js }}
<script src="{{ relURL . }}"></script>
{{ end }}
</body>

</html>
12 changes: 12 additions & 0 deletions site/static/admin/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,18 @@ collections:
{label: "Title", name: "title", widget: "string"},
{label: "Url", name: "url", widget: "string"}
]}
- file: "site/content/i-need-support/_index.md"
label: "Homelessness Strategy"
name: "i-need-support"
fields:
- {label: "Title", name: "title", widget: "string"}
- {label: "Hero", name: "hero", widget: "object", fields: [
{label: "Image", name: "image", widget: "image"}
]}
- {label: "About", name: "about", widget: "object", fields: [
{label: "Heading", name: "heading", widget: "string" },
{label: "Body", name: "body", widget: "markdown" },
]}
- file: "site/content/homelessness-in-manchester/_index.md"
label: "Homelessness in Manchester"
name: "homelessness-in-manchester"
Expand Down