Reorganize http resources and build logic
This commit is contained in:
40
templates/explore.html.j2
Normal file
40
templates/explore.html.j2
Normal file
@@ -0,0 +1,40 @@
|
||||
{% from "macros.html.j2" import make_header %}{% from "macros.html.j2" import make_social_links %}<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
{{ make_header(config, alttitle="Explore " + config.title, css_bundle=css_bundle, js_bundle=js_bundle) }}
|
||||
<body>
|
||||
<div id="background-image"><div class="overlay"></div></div>
|
||||
|
||||
<div id="preloader" class="nojs"><div class="spinner"><div></div></div></div>
|
||||
|
||||
<div id="toggle-description" class="nojs active"><i class="fas fa-paragraph"></i></div>
|
||||
|
||||
<div id="content">
|
||||
<div id="header">
|
||||
<h1>
|
||||
Explore {{ config.title }}
|
||||
|
||||
<span class="float-right">
|
||||
{{ make_social_links(config) }}
|
||||
</span>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
<ul>
|
||||
{% for post in posts %}
|
||||
<li class="article primary-text{{ ' hidden' if loop.index > 10 else '' }}">
|
||||
<div class="article-banner" style="background-image: url('{{ post.banner_url(config) }}');">
|
||||
<a href="{{ post.slug }}/" class="article-content">
|
||||
<h2>{{ post.title }}</h2>
|
||||
<p>
|
||||
<i class="fas fa-map-marker-alt"></i>{{ post.location.title }}
|
||||
<i class="far fa-calendar-alt"></i>{{ post.date }}
|
||||
</p>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -1,100 +1,43 @@
|
||||
<!DOCTYPE html>
|
||||
{% from "macros.html.j2" import make_header %}{% from "macros.html.j2" import make_social_links %}<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Web crawler and search indexing meta -->
|
||||
<meta charset="utf-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<meta name="author" content="admin@allaroundhere.org"/>
|
||||
<meta name="description" content="Some of the best places are all around here"/>
|
||||
<meta name="robots" content="index follow"/>
|
||||
<meta
|
||||
name="keywords"
|
||||
content="travel photography explore exploration urbex urban nature all around here local museum history historical society"
|
||||
/>
|
||||
|
||||
<!-- Facebook integration meta -->
|
||||
<meta property="og:title" content="All Around Here"/>
|
||||
<meta property="og:url" content="https://allaroundhere.org/explore/"/>
|
||||
<meta property='og:site_name' content="All Around Here"/>
|
||||
<meta property="og:type" content="website"/>
|
||||
<meta property='og:locale' content="en_US"/>
|
||||
<meta property="og:image" content="https://cdn.enp.one/img/backgrounds/cl-photo-boston.jpg"/>
|
||||
<meta property='og:description' content="Some of the best places are all around here"/>
|
||||
|
||||
<!-- Twitter integration meta -->
|
||||
<meta name="twitter:card" content="summary">
|
||||
<meta name="twitter:site" content="https://allaroundhere.org/explore/">
|
||||
<meta name="twitter:title" content="All Around Here">
|
||||
<meta name="twitter:description" content="Some of the best places are all around here">
|
||||
<meta name="twitter:image" content="https://cdn.enp.one/img/backgrounds/cl-photo-boston.jpg">
|
||||
<meta name="twitter:image:alt" content="All Around Here">
|
||||
|
||||
<title>Explore All Around Here</title>
|
||||
<link rel="shortcut icon" href="https://cdn.enp.one/img/logos/aah-b-sm.png">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="https://cdn.enp.one/img/logos/aah-b-sm.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="https://cdn.enp.one/img/logos/aah-b-sm.png" >
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="https://cdn.enp.one/img/logos/aah-b-sm.png">
|
||||
|
||||
<link rel="stylesheet" href="../css/explore.css"/>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://use.fontawesome.com/releases/v5.6.3/css/all.css"
|
||||
integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/"
|
||||
crossorigin="anonymous"
|
||||
/>
|
||||
|
||||
<script type="text/javascript" src="../js/custom.js"></script>
|
||||
|
||||
<noscript><style>.nojs { display: none; }</style></noscript>
|
||||
</head>
|
||||
|
||||
{{ make_header(config, css_bundle=css_bundle, js_bundle=js_bundle) }}
|
||||
<body>
|
||||
<div id="background-image"><div class="overlay"></div></div>
|
||||
<div id="background-image"></div>
|
||||
|
||||
<div id="preloader" class="nojs"><div class="spinner"><div></div></div></div>
|
||||
|
||||
<div id="toggle-description" class="nojs"><i class="fas fa-paragraph"></i></div>
|
||||
|
||||
<div id="content">
|
||||
<div id="header">
|
||||
<h1>
|
||||
Explore All Around Here
|
||||
<img
|
||||
id="logo"
|
||||
alt="Road to the great wide nowhere"
|
||||
src="https://cdn.enp.one/img/logos/aah-md.jpg"
|
||||
/>
|
||||
|
||||
<span class="float-right">
|
||||
<a
|
||||
class="button instagram"
|
||||
title="Follow All Around Here on instagram @allaroundhere"
|
||||
href="https://www.instagram.com/allaroundhere/"
|
||||
>
|
||||
<i class="fab fa-instagram"></i>
|
||||
</a>
|
||||
<a
|
||||
class="button twitter"
|
||||
title="Follow me on twitter @enpaul_"
|
||||
href="https://www.twitter.com/enpaul_/"
|
||||
>
|
||||
<i class="fab fa-twitter"></i>
|
||||
</a>
|
||||
</span>
|
||||
</h1>
|
||||
</div>
|
||||
<h1>{{ config.title }}</h1>
|
||||
|
||||
<ul>
|
||||
{% for post in config.posts %}
|
||||
<li class="article">
|
||||
<div class="article-banner" style="background-image: url('{{ post.banner }}');">
|
||||
<a href="{{ post.slug }}/" class="article-content">
|
||||
<h2>{{ post.title }}</h2>
|
||||
<p>
|
||||
<i class="fas fa-map-marker-alt"></i>{{ post.location.title }}
|
||||
<i class="far fa-calendar-alt"></i>{{ post.date }}
|
||||
</p>
|
||||
</a>
|
||||
</div>
|
||||
<p>
|
||||
This is a project of mine where I turn my random travels, undirected wanderings, and
|
||||
unexpected discoveries into something other people can enjoy along with me. There are a
|
||||
lot of cool things in the world and I like to find them, wherever I happen to be. If you're
|
||||
interested in seeing some of these arbitrary oddities then check out the links below.
|
||||
</p>
|
||||
|
||||
<ul class="buttons">
|
||||
<li>
|
||||
<a class="button nav" title="Explore All Around Here" href="{{ config.baseurl }}{{ config.build.post_base }}">
|
||||
<i class="fas fa-binoculars"></i> Explore
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<footer>
|
||||
<div>
|
||||
{{ make_social_links(config) }}
|
||||
</div>
|
||||
<div>
|
||||
<a title="Personal website" href="https://enpaul.net/">©2022-{{ today.year }} enpaul</a>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
|
||||
62
templates/macros.html.j2
Normal file
62
templates/macros.html.j2
Normal file
@@ -0,0 +1,62 @@
|
||||
{% macro make_header(config, alttitle=none, css_bundle=none, js_bundle=none) %}
|
||||
<head>
|
||||
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
|
||||
<meta content="utf-8" http-equiv="encoding">
|
||||
|
||||
<!-- Web crawler and search indexing meta -->
|
||||
<meta charset="utf-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<meta name="author" content="{{ config.email }}"/>
|
||||
<meta name="description" content="{{ config.description }}"/>
|
||||
<meta name="robots" content="index follow"/>
|
||||
<meta name="keywords" content="{{ config.keywords | join(' ') }}"/>
|
||||
|
||||
<!-- Facebook integration meta -->
|
||||
<meta property="og:title" content="{{ alttitle or config.title }}"/>
|
||||
<meta property="og:url" content="{{ config.url }}{{ config.build.post_base }}"/>
|
||||
<meta property='og:site_name' content="{{ config.title }}"/>
|
||||
<meta property="og:type" content="website"/>
|
||||
<meta property='og:locale' content="en_US"/>
|
||||
<meta property="og:image" content="https://cdn.enp.one/img/backgrounds/cl-photo-boston.jpg"/>
|
||||
<meta property='og:description' content="{{ config.description }}"/>
|
||||
|
||||
<!-- Twitter integration meta -->
|
||||
<meta name="twitter:card" content="summary">
|
||||
<meta name="twitter:site" content="{{ config.url }}{{ config.build.post_base }}">
|
||||
<meta name="twitter:title" content="{{ alttitle or config.title }}">
|
||||
<meta name="twitter:description" content="{{ config.description }}">
|
||||
<meta name="twitter:image" content="https://cdn.enp.one/img/backgrounds/cl-photo-boston.jpg">
|
||||
<meta name="twitter:image:alt" content="{{ config.title }}">
|
||||
|
||||
<title>{{ alttitle or config.title }}</title>
|
||||
<link rel="shortcut icon" href="https://cdn.enp.one/img/logos/aah-b-sm.png">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="https://cdn.enp.one/img/logos/aah-b-sm.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="https://cdn.enp.one/img/logos/aah-b-sm.png" >
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="https://cdn.enp.one/img/logos/aah-b-sm.png">
|
||||
|
||||
{% if css_bundle %}<link rel="stylesheet" href="{{ config.baseurl }}css/{{ css_bundle }}.css"/>{% endif %}
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://use.fontawesome.com/releases/v5.6.3/css/all.css"
|
||||
integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/"
|
||||
crossorigin="anonymous"
|
||||
/>
|
||||
|
||||
{% if js_bundle %}<script type="text/javascript" src="{{ config.baseurl }}js/{{ js_bundle }}.js"></script>{% endif %}
|
||||
|
||||
<noscript><style>.nojs { display: none; }</style></noscript>
|
||||
</head>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro make_social_links(config) %}
|
||||
{% for social, link in config.social.items() %}
|
||||
<a
|
||||
class="button {{ social }}"
|
||||
title="Follow me on {{ social }} @{{ link.rstrip('/').rpartition('/')[-1] }}"
|
||||
href="{{ link }}"
|
||||
>
|
||||
<i class="fab fa-{{ social }}"></i>
|
||||
</a>
|
||||
{% endfor %}
|
||||
{% endmacro %}
|
||||
@@ -0,0 +1,43 @@
|
||||
{% from "macros.html.j2" import make_header %}{% from "macros.html.j2" import make_social_links %}<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
{{ make_header(config, alttitle=post.title, css_bundle=css_bundle, js_bundle=js_bundle) }}
|
||||
<body>
|
||||
<div id="preloader" class="nojs"><div class="spinner"><div></div></div></div>
|
||||
{% for media in post.media %}
|
||||
<div class="post-media" style="background-image: url('{{ media.preload_url(config) }}')"><div class="overlay"></div></div>
|
||||
{% endfor %}
|
||||
<div id="download-source" class="nojs"><i class="fas fa-cloud-download-alt"></i></div>
|
||||
<div id="link" class="nojs"><i class="fas fa-link"></i></div>
|
||||
<div id="media-previous" class="nojs"><i class="fas fa-chevron-left"></i></div>
|
||||
<div id="media-next" class="nojs"><i class="fas fa-chevron-right"></i></div>
|
||||
|
||||
<div id="content">
|
||||
<div id="header">
|
||||
<h1>
|
||||
Explore {{ config.title }}
|
||||
|
||||
<span class="float-right">
|
||||
{{ make_social_links(config) }}
|
||||
</span>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
<ul>
|
||||
{% for post in posts %}
|
||||
<li class="article primary-text">
|
||||
<div class="article-banner" style="background-image: url('{{ post.banner_url(config) }}');">
|
||||
<a href="{{ post.slug }}/" class="article-content">
|
||||
<h2>{{ post.title }}</h2>
|
||||
<p>
|
||||
<i class="fas fa-map-marker-alt"></i>{{ post.location.title }}
|
||||
<i class="far fa-calendar-alt"></i>{{ post.date }}
|
||||
</p>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
7
templates/robots.txt.j2
Normal file
7
templates/robots.txt.j2
Normal file
@@ -0,0 +1,7 @@
|
||||
# Allow all bots
|
||||
User-agent: *
|
||||
|
||||
# Disallow access to non-content directories{% for path in disallowed %}
|
||||
Disallow: {{ path }}{% endfor %}
|
||||
|
||||
Sitemap: {{ config.url }}sitemap.xml
|
||||
@@ -7,21 +7,22 @@
|
||||
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
|
||||
|
||||
<url>
|
||||
<loc>https://allaroundhere.org/</loc>
|
||||
<lastmod>2021-02-01T00:30:55+00:00</lastmod>
|
||||
<priority>1.00</priority>
|
||||
<loc>{{ config.url }}</loc>
|
||||
<lastmod>{{ today.strftime('%Y-%m-%dT%H:%M:%S') }}+00:00</lastmod>
|
||||
<priority>0.90</priority>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>https://allaroundhere.org/explore/</loc>
|
||||
<lastmod>2021-02-01T00:30:55+00:00</lastmod>
|
||||
<priority>1.10</priority>
|
||||
<loc>{{ config.url }}{{ config.build.post_base }}</loc>
|
||||
<lastmod>{{ today.strftime('%Y-%m-%dT%H:%M:%S') }}+00:00</lastmod>
|
||||
<priority>1.00</priority>
|
||||
</url>
|
||||
{% for post in config.posts %}
|
||||
|
||||
{% for post in config.posts %}
|
||||
<url>
|
||||
<loc>https://allaroundhere.org/explore/{{ post.slug }}/</loc>
|
||||
<lastmod>2021-02-01T00:30:55+00:00</lastmod>
|
||||
<priority>0.90</priority>
|
||||
<loc>{{ config.url }}{{ config.build.post_base }}{{ post.slug }}</loc>
|
||||
<lastmod>{{ today.strftime('%Y-%m-%dT%H:%M:%S') }}+00:00</lastmod>
|
||||
<priority>0.80</priority>
|
||||
</url>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</urlset>
|
||||
|
||||
Reference in New Issue
Block a user