Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
teckids.org
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Operate
Environments
Monitor
Incidents
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Teckids
Team PR
teckids.org
Commits
6ee89a1b
Commit
6ee89a1b
authored
5 months ago
by
magicfelix
Browse files
Options
Downloads
Patches
Plain Diff
Show related blog posts on pages
parent
1e5c8980
No related branches found
Branches containing commit
No related tags found
1 merge request
!74
Resolve "Tag blog posts with projects, target groups, and maybe tags"
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
templates/pages/content.html
+1
-0
1 addition, 0 deletions
templates/pages/content.html
templates/pages/raw.html
+1
-0
1 addition, 0 deletions
templates/pages/raw.html
templates/pages/related_posts.html
+16
-0
16 additions, 0 deletions
templates/pages/related_posts.html
with
18 additions
and
0 deletions
templates/pages/content.html
+
1
−
0
View file @
6ee89a1b
...
...
@@ -17,4 +17,5 @@
{% endblock content %}
</div>
</section>
{% include "pages/related_posts.html" %}
{% endblock %}
This diff is collapsed.
Click to expand it.
templates/pages/raw.html
+
1
−
0
View file @
6ee89a1b
...
...
@@ -2,4 +2,5 @@
{% block main %}
{{ page.content | safe }}
{% include "pages/related_posts.html" %}
{% endblock %}
This diff is collapsed.
Click to expand it.
templates/pages/related_posts.html
0 → 100644
+
16
−
0
View file @
6ee89a1b
{% set blog_section = get_section(path="blog/_index.md") %}
<section
class=
"section"
resource=
"{{ blog_section.permalink }}"
typeof=
"schema:Blog"
>
<meta
property=
"schema:publisher"
href=
"https://teckids.org/"
/>
<div
class=
"container"
>
<h2
class=
"title is-2"
>
{{ title | default(value="Aus dem Teckids-Blog") }}
</h2>
<div
class=
"columns is-multiline is-same-height mt-4"
>
{% for post in blog_section.pages %}
{% if "aspekt" in post.taxonomies and page.title in post.taxonomies["aspekt"] %}
<div
class=
"column is-one-third"
>
{% include "blog/card.html" %}
</div>
{% else %}{% continue %}{% endif %}
{% endfor %}
</div>
</div>
</section>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment