Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pelican-theme-teckids
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
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Teckids
Team PR
pelican-theme-teckids
Compare revisions
77cf7d49f04928bf1caa3f26eaa5318bea02aa7c to 2a1d026ea79e93c1f616d7c09bf7ddaf94bebcb1
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
Teckids/team-pr/pelican-theme-teckids
Select target project
No results found
2a1d026ea79e93c1f616d7c09bf7ddaf94bebcb1
Select Git revision
Branches
master
set-max-carousel-img-height
Swap
Target
Teckids/team-pr/pelican-theme-teckids
Select target project
No results found
77cf7d49f04928bf1caa3f26eaa5318bea02aa7c
Select Git revision
Branches
master
set-max-carousel-img-height
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (1)
Add some more templates
· 2a1d026e
Tom Teichler
authored
5 years ago
Verified
2a1d026e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
templates/author.html
+6
-0
6 additions, 0 deletions
templates/author.html
templates/page_default.html
+70
-0
70 additions, 0 deletions
templates/page_default.html
templates/translations.html
+8
-0
8 additions, 0 deletions
templates/translations.html
with
84 additions
and
0 deletions
templates/author.html
0 → 100644
View file @
2a1d026e
{% extends "page_default.html" %}
{% block title %}{{ SITENAME }} — Articles by {{ author }}{% endblock %}
{% block content_title %}
<h2>
Articles by {{ author }}
</h2>
{% endblock %}
This diff is collapsed.
Click to expand it.
templates/page_default.html
0 → 100644
View file @
2a1d026e
{% extends "base.html" %}
{% block title %}{{ SITENAME }} — News{%endblock%}
{% block head %}
{{ super() }}
<meta
itemprop=
'url'
content=
'{{ SITEURL }}'
/>
<meta
itemprop=
'name'
content=
'{{ SITENAME }} — News'
/>
<meta
itemprop=
'image'
content=
'{{ SITELOGO }}'
/>
<meta
property=
'og:url'
content=
'{{ SITEURL }}'
/>
<meta
property=
'og:title'
content=
'{{ SITENAME }} — News'
/>
<meta
property=
'og:image'
content=
'{{ SITELOGO }}'
/>
{% endblock head %}
{% block content %}
<div
class=
"container title"
>
<div
class=
"row clearfix"
>
<div
class=
"column full"
>
{% block content_title %}
<h1>
Recent News
</h1>
<div
class=
'feed-text'
><a
href=
"https://teckids.edugit.io/feeds/all.atom.xml"
>
Feed
<i
class=
'fa fa-rss'
></i></a></div>
{% endblock %}
</div>
</div>
</div>
<section
id=
"articles"
>
<div
class=
"container"
>
{% for article in articles_page.object_list %}
<div
class=
'row clearfix'
>
<div
class=
"column full"
>
<h3
class=
"entry-title"
>
<a
href=
"/{{ article.url }}"
rel=
"bookmark"
title=
"Permalink to {{ article.title|striptags }}"
>
{{ article.title }}
</a>
</h3>
<div
class=
'post-info'
>
<abbr
class=
"published"
title=
"{{ article.date.isoformat() }}"
>
{{ article.locale_date }}
</abbr>
<address
class=
"vcard author"
>
by
{% for author in article.authors %}
<a
class=
"url fn"
href=
"/{{ author.url }}"
>
{{ author }}
</a>
{% endfor %}
</address>
</div>
<div
class=
'entry-content'
>
{% if article.summary %}
{{ article.summary }}
{% else %}
{{ article.content|truncate() }}
{% endif %}
</div>
</div>
</div>
<hr
/>
{% endfor %}
{% if articles_page.has_other_pages() %}
{% include 'pagination.html' %}
{% endif %}
</div>
</section>
<!-- /#content -->
{% endblock content %}
This diff is collapsed.
Click to expand it.
templates/translations.html
0 → 100644
View file @
2a1d026e
{% macro translations_for(article) %}
{% if article.translations %}
Translations:
{% for translation in article.translations %}
<a
href=
"/{{ translation.url }}"
>
{{ translation.lang }}
</a>
{% endfor %}
{% endif %}
{% endmacro %}
This diff is collapsed.
Click to expand it.