Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
luminy-org
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eloi Perdereau
luminy-org
Commits
67e82b50
Commit
67e82b50
authored
5 years ago
by
Eloi Perdereau
Browse files
Options
Downloads
Patches
Plain Diff
allow author override in front matter
parent
28d755f6
No related branches found
No related tags found
1 merge request
!5
Big fat update, mostly cms configuration
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
_includes/author-profile.html
+5
-3
5 additions, 3 deletions
_includes/author-profile.html
_includes/seo.html
+1
-0
1 addition, 0 deletions
_includes/seo.html
_layouts/single.html
+5
-3
5 additions, 3 deletions
_layouts/single.html
with
11 additions
and
6 deletions
_includes/author-profile.html
+
5
−
3
View file @
67e82b50
<!-- {% assign author = page.author | default: page.authors[0] | default: site.author %} -->
{% assign author = page.url | split: "/" %}
{% assign author = author[1] %}
{% assign author = site.data.authors.authors | where: "prefix", author | first %}
{% unless page.author %}
{% assign author = page.url | split: "/" %}
{% assign author = author[1] %}
{% endunless %}
{% assign author = site.data.authors.authors | where: "directory", author | first %}
<div
itemscope
itemtype=
"https://schema.org/Person"
>
...
...
This diff is collapsed.
Click to expand it.
_includes/seo.html
+
1
−
0
View file @
67e82b50
...
...
@@ -25,6 +25,7 @@
{%- assign seo_description = seo_description | markdownify | strip_html | strip_newlines | escape_once -%}
{%- endif -%}
<!-- don't use page.author even if it is set, find author based on url -->
{% assign author = page.url | split: "/" %}
{% assign author = author[1] %}
{% assign author = site.data.authors.authors | where: "prefix", author | first %}
...
...
This diff is collapsed.
Click to expand it.
_layouts/single.html
+
5
−
3
View file @
67e82b50
...
...
@@ -2,9 +2,11 @@
layout: default
---
{% assign author = page.url | split: "/" %}
{% assign author = author[1] %}
{% assign author = site.data.authors.authors | where: "prefix", author | first %}
{% unless page.author %}
{% assign author = page.url | split: "/" %}
{% assign author = author[1] %}
{% endunless %}
{% assign author = site.data.authors.authors | where: "directory", author | first %}
{% if page.has_header %}
{% include page__hero.html %}
...
...
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