Skip to content

Commit f4034a2

Browse files
committed
passing the entire article
1 parent 13b8b4f commit f4034a2

162 files changed

Lines changed: 168 additions & 651 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/App/templates/partial/title-section.html.twig

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@
1616
</div>
1717
{% endif %}
1818

19-
<h1>{{ title }}</h1>
19+
<h1>{{ article.title }}</h1>
2020

21-
{% if author_name is defined %}
21+
{% if article.author is defined and article.author %}
2222
<div class="post-meta-v2 mt-3">
2323
<span class="meta-item">
2424
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="8" r="4"/><path d="M4 20c0-4 3.6-6 8-6s8 2 8 6"/></svg>
25-
By <a href="{{ path('page::author-resource', {slug: author_slug}) }}">{{ author_name }}</a>
25+
By <a href="{{ path('page::author-resource', {slug: article.author.slug}) }}">{{ article.author.name }}</a>
2626
</span>
27-
{% if post_date is defined %}
27+
{% if article.postDate is defined %}
2828
<span class="meta-item">
2929
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="4" width="18" height="18" rx="2"/><path d="M16 2v4M8 2v4M3 10h18"/></svg>
30-
{{ post_date|date('M d, Y') }}
30+
{{ article.postDate|date('M d, Y') }}
3131
</span>
3232
{% endif %}
3333
</div>
@@ -37,12 +37,12 @@
3737
<span class="meta-item">
3838
Also on
3939
</span>
40-
{% if author_github is defined and author_github %}
40+
{% if article.author.github is defined and article.author.github %}
4141
<span class="meta-item">
4242
<svg viewBox="0 0 24 24" width="16" height="16" fill="currentColor" aria-hidden="true">
4343
<path d="M12 .5C5.73.5.5 5.73.5 12c0 5.09 3.29 9.4 7.86 10.93.57.1.79-.25.79-.55 0-.27-.01-1.17-.02-2.12-3.2.7-3.88-1.36-3.88-1.36-.52-1.34-1.28-1.7-1.28-1.7-1.05-.72.08-.7.08-.7 1.16.08 1.77 1.19 1.77 1.19 1.03 1.77 2.7 1.26 3.36.96.1-.75.4-1.26.73-1.55-2.55-.29-5.24-1.28-5.24-5.7 0-1.26.45-2.29 1.19-3.1-.12-.29-.52-1.46.11-3.05 0 0 .97-.31 3.18 1.18a11 11 0 0 1 5.8 0c2.2-1.49 3.17-1.18 3.17-1.18.63 1.59.24 2.76.12 3.05.74.81 1.19 1.84 1.19 3.1 0 4.43-2.7 5.4-5.27 5.69.42.36.78 1.07.78 2.16 0 1.56-.01 2.82-.01 3.2 0 .31.21.66.8.55A11.5 11.5 0 0 0 23.5 12c0-6.27-5.23-11.5-11.5-11.5z"/>
4444
</svg>
45-
<a href="https://github.com/{{ author_github }}" target="_blank" rel="noopener noreferrer">{{ author_github }}</a>
45+
<a href="https://github.com/{{ article.author.github }}" target="_blank" rel="noopener noreferrer">{{ article.author.github }}</a>
4646
</span>
4747
{% endif %}
4848
</div>

src/Blog/templates/page/blog-resource/android/listen-for-android-install-referrer.html.twig

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@
88
back_href: url('page::blog'),
99
back_label: 'Back to Blog',
1010
badge: 'Android',
11-
title: article.title,
12-
author_name: article.author.name,
13-
author_slug: article.author.slug,
14-
post_date: article.postDate
11+
article: article,
1512
}) }}
1613
{% endblock %}
1714

src/Blog/templates/page/blog-resource/android/multiple-broadcast-receivers-in-the-same-app-for-the-same-action.html.twig

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@
88
back_href: url('page::blog'),
99
back_label: 'Back to Blog',
1010
badge: 'Android',
11-
title: article.title,
12-
author_name: article.author.name,
13-
author_slug: article.author.slug,
14-
post_date: article.postDate
11+
article: article,
1512
}) }}
1613
{% endblock %}
1714

src/Blog/templates/page/blog-resource/architecture/configprovider-bootstrap-modern-php-applications.html.twig

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@
88
back_href: url('page::blog'),
99
back_label: 'Back to Blog',
1010
badge: 'Architecture',
11-
title: article.title,
12-
author_name: article.author.name,
13-
author_slug: article.author.slug,
14-
post_date: article.postDate
11+
article: article,
1512
}) }}
1613
{% endblock %}
1714

src/Blog/templates/page/blog-resource/architecture/request-lifecycle-for-a-mezzio-based-application.html.twig

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@
88
back_href: url('page::blog'),
99
back_label: 'Back to Blog',
1010
badge: 'Architecture',
11-
title: article.title,
12-
author_name: article.author.name,
13-
author_slug: article.author.slug,
14-
post_date: article.postDate
11+
article: article,
1512
}) }}
1613
{% endblock %}
1714

src/Blog/templates/page/blog-resource/architecture/understanding-middleware.html.twig

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@
88
back_href: url('page::blog'),
99
back_label: 'Back to Blog',
1010
badge: 'Architecture',
11-
title: article.title,
12-
author_name: article.author.name,
13-
author_slug: article.author.slug,
14-
post_date: article.postDate
11+
article: article,
1512
}) }}
1613
{% endblock %}
1714

src/Blog/templates/page/blog-resource/best-practice/aptana-set-svn-keywords.html.twig

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@
88
back_href: url('page::blog'),
99
back_label: 'Back to Blog',
1010
badge: 'Best Practice',
11-
title: article.title,
12-
author_name: article.author.name,
13-
author_slug: article.author.slug,
14-
post_date: article.postDate
11+
article: article,
1512
}) }}
1613
{% endblock %}
1714

src/Blog/templates/page/blog-resource/best-practice/basic-security-in-dotkernel-headless-platform.html.twig

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@
88
back_href: url('page::blog'),
99
back_label: 'Back to Blog',
1010
badge: 'Best Practice',
11-
title: article.title,
12-
author_name: article.author.name,
13-
author_slug: article.author.slug,
14-
post_date: article.postDate
11+
article: article,
1512
}) }}
1613
{% endblock %}
1714

src/Blog/templates/page/blog-resource/best-practice/golden-rules-of-professional-php-coding.html.twig

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@
88
back_href: url('page::blog'),
99
back_label: 'Back to Blog',
1010
badge: 'Best Practice',
11-
title: article.title,
12-
author_name: article.author.name,
13-
author_slug: article.author.slug,
14-
post_date: article.postDate
11+
article: article,
1512
}) }}
1613
{% endblock %}
1714

src/Blog/templates/page/blog-resource/best-practice/htaccess-301-redirect-non-www-to-www.html.twig

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@
88
back_href: url('page::blog'),
99
back_label: 'Back to Blog',
1010
badge: 'Best Practice',
11-
title: article.title,
12-
author_name: article.author.name,
13-
author_slug: article.author.slug,
14-
post_date: article.postDate
11+
article: article,
1512
}) }}
1613
{% endblock %}
1714

0 commit comments

Comments
 (0)