Skip to content

Commit 9cccd0f

Browse files
Create "simple-page.html" for "content/legal/*" pages
1 parent e5ce3f7 commit 9cccd0f

File tree

7 files changed

+20
-7
lines changed

7 files changed

+20
-7
lines changed

build/api-page.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
use Gacela\Framework\Gacela;
88
use Phel\Phel;
9-
use PhelWeb\FileGenerator\Facade as FileGeneratorFacade;
9+
use PhelWeb\ApiGenerator\Facade as ApiGeneratorFacade;
1010

1111
Gacela::bootstrap(__DIR__, Phel::configFn());
1212

13-
$facade = new FileGeneratorFacade();
13+
$facade = new ApiGeneratorFacade();
1414
$facade->generateApiMarkdownFile();

build/api-search.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
use Gacela\Framework\Gacela;
88
use Phel\Phel;
9-
use PhelWeb\FileGenerator\Facade as FileGeneratorFacade;
9+
use PhelWeb\ApiGenerator\Facade as FileGeneratorFacade;
1010

1111
Gacela::bootstrap(__DIR__, Phel::configFn());
1212

build/src/php/ReleasesGenerator/Domain/Asset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function __construct(
1515
public static function fromArray(array $data): self
1616
{
1717
return new self(
18-
name: $data['name'] ?? 'Unknown',
18+
name: $data['name'],
1919
downloadUrl: $data['browser_download_url'],
2020
size: $data['size'],
2121
);

content/blog/2020-06-05-functional-programming-in-php.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
+++
22
title = "My attempt on functional programming in PHP"
3-
template = "blog-entry.html"
43
+++
54

65
PHP was one of my first languages I learned. Even so, this dates back over 10 years, I still use PHP every day at work. However, in the meantime I also learned a lot of other languages like Java, Clojure, Scala, Python, Javascript and Scheme. By learning all the languages and their concepts, the concept of functional programming always was my favorite, and so I tried to make my PHP programming style more functional. In the following article you can read some approaches I tried.

content/legal/data-protection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
+++
22
title = "Data protection"
3-
template = "blog-entry.html"
3+
template = "simple-page.html"
44
+++
55

66
## How is responsible for this website

content/legal/disclosure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
+++
22
title = "Disclosure"
3-
template = "blog-entry.html"
3+
template = "simple-page.html"
44
+++
55

66
This website is operated by

templates/simple-page.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{% extends "layouts/one-column-layout.html" %}
2+
3+
{% block meta_content %}
4+
<title>{{ page.title }} | {{ config.title }}</title>
5+
<meta property="og:title" content="{{ page.title }} | {{ config.title }}" />
6+
{% endblock meta_content %}
7+
8+
{% block content %}
9+
<div class="simple-page">
10+
<h1>{{page.title}}</h1>
11+
{{page.content | safe}}
12+
</div>
13+
{% endblock content %}
14+

0 commit comments

Comments
 (0)