Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hypha
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
ots
hypha
Commits
7ce184cb
Commit
7ce184cb
authored
6 years ago
by
Fredrik Jonsson
Browse files
Options
Downloads
Patches
Plain Diff
Add default social media image. Make sure links are https.
parent
977081b9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
opentech/static_src/src/images/otf_social.jpg
+0
-0
0 additions, 0 deletions
opentech/static_src/src/images/otf_social.jpg
opentech/templates/base-apply.html
+1
-1
1 addition, 1 deletion
opentech/templates/base-apply.html
opentech/templates/base.html
+6
-6
6 additions, 6 deletions
opentech/templates/base.html
with
7 additions
and
7 deletions
opentech/static_src/src/images/otf_social.jpg
0 → 100644
+
0
−
0
View file @
7ce184cb
29.6 KiB
This diff is collapsed.
Click to expand it.
opentech/templates/base-apply.html
+
1
−
1
View file @
7ce184cb
...
...
@@ -9,7 +9,7 @@
<!-- favicons -->
{% comment %}
Generate favicons by http://realfavicongenerator.net using the following path: settings.STATIC_URL + img/favicons.
Generate favicons by http
s
://realfavicongenerator.net using the following path: settings.STATIC_URL + img/favicons.
Then favicon.ico should be copied to a directory called "public" in the application root and puppet does some magic to serve it up at the site root.
{% endcomment %}
<link
rel=
"icon"
sizes=
"144x144"
href=
"{% static 'images/favicons/android-chrome-144.png' %}"
>
...
...
This diff is collapsed.
Click to expand it.
opentech/templates/base.html
+
6
−
6
View file @
7ce184cb
...
...
@@ -9,7 +9,7 @@
<!-- favicons -->
{% comment %}
Generate favicons by http://realfavicongenerator.net using the following path: settings.STATIC_URL + img/favicons.
Generate favicons by http
s
://realfavicongenerator.net using the following path: settings.STATIC_URL + img/favicons.
Then favicon.ico should be copied to a directory called "public" in the application root and puppet does some magic to serve it up at the site root.
{% endcomment %}
<link
rel=
"icon"
sizes=
"144x144"
href=
"{% static 'images/favicons/android-chrome-144.png' %}"
>
...
...
@@ -32,10 +32,10 @@
<meta
name=
"twitter:title"
content=
"{{ page.title }}"
/>
<meta
name=
"twitter:description"
content=
"{{ page|social_text:request.site }}"
>
{% if page.social_image %}
{% image page.social_image width-320 as social_img %}
<meta
name=
"twitter:image"
content=
"{{ request.site.root_url }}{{ social_img.url }}"
>
{% image page.social_image width-320 as social_img %}
<meta
name=
"twitter:image"
content=
"{{ request.site.root_url }}{{ social_img.url }}"
>
{% else %}
<!-- Add a default image to use for social sharing here in case one is not provided on the page. --
>
<meta
name=
"twitter:image"
content=
"{{ request.site.root_url }}{% static 'images/otf_social.jpg' %}"
>
{% endif %}
<!--facebook opengraph tags-->
...
...
@@ -44,9 +44,9 @@
<meta
property=
"og:url"
content=
"{{ page.url }}"
/>
<meta
property=
"og:title"
content=
"{{ page.title }}"
/>
{% if page.social_image %}
<meta
property=
"og:image"
content=
"
http://
{{ request.site.
hostname
}}{{ social_img.url }}"
/>
<meta
property=
"og:image"
content=
"{{ request.site.
root_url
}}{{ social_img.url }}"
/>
{% else %}
<!-- Add a default image to use for social sharing here in case one is not provided on the page. --
>
<meta
property=
"og:image"
content=
"{{ request.site.root_url }}{% static 'images/otf_social.jpg' %}"
/
>
{% endif %}
<meta
property=
"og:description"
content=
"{{ page|social_text:request.site }}"
/>
<meta
property=
"og:site_name"
content=
"{{ settings.utils.SocialMediaSettings.site_name }}"
/>
...
...
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