diff --git a/package.json b/package.json index 80a1e1754..57c9e8558 100644 --- a/package.json +++ b/package.json @@ -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", @@ -73,4 +73,4 @@ "resolutions": { "natives": "1.1.6" } -} +} \ No newline at end of file diff --git a/site/content/homelessness-strategy/_index.md b/site/content/homelessness-strategy/_index.md index 9201e6aa6..0fbbd4c5d 100644 --- a/site/content/homelessness-strategy/_index.md +++ b/site/content/homelessness-strategy/_index.md @@ -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' --- diff --git a/site/content/i-need-support/_index.md b/site/content/i-need-support/_index.md new file mode 100644 index 000000000..6eaefa4dd --- /dev/null +++ b/site/content/i-need-support/_index.md @@ -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' +--- + + diff --git a/site/layouts/i-need-support/i-need-support.html b/site/layouts/i-need-support/i-need-support.html new file mode 100644 index 000000000..0cd5a40f0 --- /dev/null +++ b/site/layouts/i-need-support/i-need-support.html @@ -0,0 +1,70 @@ + + +{{- partial "head.html" . -}} + + + {{- partial "header.html" . -}} +
+
+
+
+
+

{{ .Params.about.heading }}

+ {{ if (ne .Params.about.subHeading nil) }} +

{{ .Params.about.subHeading }}

+ {{ end }} +
+
+
+
+
+ {{ $bodyMarkdown := .Params.about.body | markdownify }} + {{ if not ( strings.Contains $bodyMarkdown "

" ) }}

{{ $bodyMarkdown }}

+ {{ else }}{{ $bodyMarkdown }}{{ end }} +
+
+
+ {{ if (ne .Params.actionPlans.body nil) }} +
+
+
+

{{ .Params.actionPlans.heading }}

+ {{ if (ne .Params.actionPlans.subHeading nil) }} +

{{ .Params.actionPlans.subHeading }}

+ {{ end }} +
+
+ {{ $bodyMarkdown := .Params.actionPlans.body | markdownify }} + {{ if not ( strings.Contains $bodyMarkdown "

" ) }}

{{ $bodyMarkdown }}

+ {{ else }}{{ $bodyMarkdown }}{{ end }} +
+
+
+ {{ end }} + + {{ if ((ne .Params.strategyCta.title nil) | and (ne .Params.strategyCta.url nil)) }} +
+
+ {{ $urlPre := "https://api.github.com" }} + {{ $gistJ := getJSON $urlPre "/users/joseph-allen/gists" }} + {{ range first 5 $gistJ }} + {{ if .public }} +
  • {{ .description }}
  • + {{ end }} + {{ end }} +
    +
    + {{ end }} +
    + {{ $footer := .Site.GetPage "_footer.md" }} + {{ partial "footer.html" (dict "footer" $footer) }} + + {{ $script := .Site.Data.webpack.main }} + {{ with $script.js }} + + {{ end }} + + + \ No newline at end of file diff --git a/site/static/admin/config.yml b/site/static/admin/config.yml index 9cbfc1af2..77a414b9b 100644 --- a/site/static/admin/config.yml +++ b/site/static/admin/config.yml @@ -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"