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
3dde6ffb
Commit
3dde6ffb
authored
5 months ago
by
magicfelix
Browse files
Options
Downloads
Patches
Plain Diff
Do not show related posts on blog posts
parent
a1e52224
No related branches found
No related tags found
1 merge request
!74
Resolve "Tag blog posts with projects, target groups, and maybe tags"
Pipeline
#193017
passed
5 months ago
Stage: build
Stage: deploy
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
templates/blog/post.html
+1
-0
1 addition, 0 deletions
templates/blog/post.html
templates/pages/content.html
+10
-1
10 additions, 1 deletion
templates/pages/content.html
templates/pages/related_posts.html
+9
-15
9 additions, 15 deletions
templates/pages/related_posts.html
with
20 additions
and
16 deletions
templates/blog/post.html
+
1
−
0
View file @
3dde6ffb
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
{% block related_posts %}{% endblock %}
</div>
</div>
</div>
</div>
{% endblock %}
{% endblock %}
This diff is collapsed.
Click to expand it.
templates/pages/content.html
+
10
−
1
View file @
3dde6ffb
...
@@ -17,5 +17,14 @@
...
@@ -17,5 +17,14 @@
{% endblock content %}
{% endblock content %}
</div>
</div>
</section>
</section>
{% include "pages/related_posts.html" %}
{% block related_posts %}
{% 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>
{% include "pages/related_posts.html" %}
</div>
</section>
{% endblock %}
{% endblock %}
{% endblock %}
This diff is collapsed.
Click to expand it.
templates/pages/related_posts.html
+
9
−
15
View file @
3dde6ffb
{% set blog_section = get_section(path="blog/_index.md") %}
{% set blog_section = get_section(path="blog/_index.md") %}
<section
class=
"section"
resource=
"{{ blog_section.permalink }}"
typeof=
"schema:Blog"
>
<div
class=
"columns is-multiline is-same-height mt-4"
>
<meta
property=
"schema:publisher"
href=
"https://teckids.org/"
/>
{% for post in blog_section.pages %}
<div
class=
"container"
>
{% if "aspekt" in post.taxonomies and page.title in post.taxonomies["aspekt"] %}
<h2
class=
"title is-2"
>
{{ title | default(value="Aus dem Teckids-Blog") }}
</h2>
<div
class=
"column is-one-third"
>
<div
class=
"columns is-multiline is-same-height mt-4"
>
{% include "blog/card.html" %}
{% for post in blog_section.pages %}
</div>
{% if "aspekt" in post.taxonomies and page.title in post.taxonomies["aspekt"] %}
{% else %}{% continue %}{% endif %}
<div
class=
"column is-one-third"
>
{% endfor %}
{% include "blog/card.html" %}
</div>
</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