Browse Source

Add more og carg support

master
parent
commit
d4c65e0c90
  1. 7
      theme/templates/album.html
  2. 7
      theme/templates/album_list.html
  3. 2
      theme/templates/media.html

7
theme/templates/album.html

@ -1,5 +1,12 @@
{% extends "base.html" %}
{% block extra_head %}
<meta property="og:image" content="{{ settings.base_url }}{{ album.thumbnail }}">
<meta property="og:url" content="{{ settings.base_url }}{{ album.path|urlencode }}">
<meta property="og:description" content="{{ album.medias|length }} photos in this album.">
<meta name="twitter:card" content="summary_large_image">
{% endblock %}
{% block content %}
<ul>
{% for media in album.medias %}

7
theme/templates/album_list.html

@ -1,5 +1,12 @@
{% extends "base.html" %}
{% block extra_head %}
<meta property="og:image" content="{{ settings.base_url }}{{ album.thumbnail }}">
<meta property="og:url" content="{{ settings.base_url }}">
<meta property="og:description" content="{{ album.albums|length }} albums in this gallery.">
<meta name="twitter:card" content="summary_large_image">
{% endblock %}
{% block content %}
<ul>

2
theme/templates/media.html

@ -3,8 +3,10 @@
{% block extra_head %}
<link rel="stylesheet" href="{{ theme.url }}/css/media.css">
<link rel="stylesheet" href="{{ theme.url }}/fork-awesome/css/fork-awesome.min.css">
<meta property="og:image" content="{{ settings.base_url }}{{ media.path|urlencode }}/{{ media.url }}">
<meta property="og:url" content="{{ settings.base_url }}{{ media.path|urlencode }}/{{ media.url }}.html">
<meta property="og:description" content="Photo {{ media_index }} of {{ album.medias|length }}">
<meta name="twitter:card" content="summary_large_image">
{% endblock %}

Loading…
Cancel
Save