Skip to content
This repository has been archived by the owner on Nov 7, 2018. It is now read-only.

Commit

Permalink
agency/office-specific OG metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
konklone committed Dec 6, 2014
1 parent aedab16 commit d047762
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 13 deletions.
20 changes: 19 additions & 1 deletion foia_hub/templates/base.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,25 @@
<!doctype html>
<html>
<head>
{% include "includes/metadata.html" %}

{# Render block here, so that future renderings can be passed through a filter. #}
<!-- {% block title %}FOIA Hub > Freedom of Information Act{% endblock %} -->
<!-- {% block description %}Improving the FOIA request experience by developing a digital tool for the people who make requests and the people who administer them.{% endblock %} -->

<title>{{ self.title() | e }}</title>
<meta property="og:title" content="{{ self.title() | e }}" />

<meta name="description" content="{{ self.description() | e }}" />
<meta property="og:description" content="{{ self.description() | e }}" />

<meta property="og:site_name" content="FOIA Hub > Freedom of Information Act" />
<meta property="og:type" content="website" />

<meta name="twitter:site" content="@18F">
<meta name="twitter:creator" content="@18F">
<meta name="twitter:card" content="summary_large" />


{% include "includes/head.html" %}
</head>
<body>
Expand Down
9 changes: 9 additions & 0 deletions foia_hub/templates/contacts/parent_profile.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{% extends "base.html" %}

{% block title %}{{ profile.name }} > Freedom of Information Act{% endblock %}

{% if profile.description %}
{% block description %}
{{ profile.description }}
{% endblock %}
{% endif %}

{% block body %}

{# 'profile' here is known to be an agency with sub-offices. #}
Expand Down
9 changes: 9 additions & 0 deletions foia_hub/templates/contacts/profile.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{% extends "base.html" %}

{% block title %}{{ profile.name }} > Freedom of Information Act{% endblock %}

{% if profile.description %}
{% block description %}
{{ profile.description }}
{% endblock %}
{% endif %}

{% block body %}

{# 'profile' here can be an office, or an agency with no sub-offices. #}
Expand Down
12 changes: 0 additions & 12 deletions foia_hub/templates/includes/metadata.html

This file was deleted.

0 comments on commit d047762

Please sign in to comment.