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
e342cb89
Unverified
Commit
e342cb89
authored
5 months ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
Reduce number of blog posts on front page
parent
ce333c70
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
templates/blog/section.html
+1
-1
1 addition, 1 deletion
templates/blog/section.html
templates/frontpage/blog.html
+8
-0
8 additions, 0 deletions
templates/frontpage/blog.html
with
9 additions
and
1 deletion
templates/blog/section.html
+
1
−
1
View file @
e342cb89
...
...
@@ -7,7 +7,7 @@
<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 posts | slice(end=count|default(value=
9
)) %}
{% for post in posts | slice(end=count|default(value=
6
)) %}
<div
class=
"column is-one-third"
>
{% include "blog/card.html" %}
</div>
...
...
This diff is collapsed.
Click to expand it.
templates/frontpage/blog.html
+
8
−
0
View file @
e342cb89
{% set blog_section = get_section(path="blog/_index.md") %}
{% set count = 3 %}
{% include "blog/section.html" %}
<nav
class=
"section pt-0"
>
<div
class=
"container"
>
<a
href=
"{{ get_url(path="
@/
blog
/
_index.md
")
}}"
class=
"button is-large is-fullwidth is-link is-rounded"
>
Mehr aus dem Teckids-Blog
</a>
</div>
</nav>
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