Skip to content

Commit

Permalink
Merge pull request #263 from eerison/feature/adding-image-link
Browse files Browse the repository at this point in the history
added image to share
  • Loading branch information
eerison authored Sep 14, 2020
2 parents c3940bb + 97509c5 commit 2fb76b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions templates/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<meta name="keywords" content="{% block keywords %}sites profissionais,curriculo,resume,fazer curriculo,gratis,my profile,meu site,modelo,modelo de curriculo,modelo de curriculo 2018,modelo de curriculo 2019{% endblock %}">
<meta name="author" content="My Profile">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% block metaTags %}{% endblock %}
<title>{% block title %}Welcome!{% endblock %} | My profile</title>

<link rel="shortcut icon" href="{{ asset('../images/ico/favicon.png') }}">
Expand Down
5 changes: 5 additions & 0 deletions templates/default/profile.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
{% block description %}{{ user.headline }}{% endblock %}

{% block keywords %}{{ user.keyWords }}{% endblock %}
{% block metaTags %}
<meta property="og:title" content="{{ user.firstName ~ ' ' ~ user. lastName }}" />
<meta property="og:image" content="{{ bucket_dns ~ '/' ~ bucket_name ~ '/' ~ user.getProfileImage()}}">
<meta property="og:url" content="{{app.request.schemeAndHttpHost ~ path('app_profile', { 'slug': user.slug}) }}">
{% endblock %}

{% block stylesheets %}
{{ encore_entry_link_tags('web_site_profile') }}
Expand Down

0 comments on commit 2fb76b7

Please sign in to comment.