Update templates to use new data config data model
This commit is contained in:
parent
4541f80bcc
commit
93d837c590
@ -30,23 +30,22 @@
|
|||||||
<meta name="twitter:image" content="https://cdn.enp.one/img/backgrounds/cl-photo-boston.jpg">
|
<meta name="twitter:image" content="https://cdn.enp.one/img/backgrounds/cl-photo-boston.jpg">
|
||||||
<meta name="twitter:image:alt" content="All Around Here">
|
<meta name="twitter:image:alt" content="All Around Here">
|
||||||
|
|
||||||
<title>{{ config.title }}</title>
|
<title>Explore All Around Here</title>
|
||||||
<link rel="shortcut icon" href="https://cdn.enp.one/img/logos/aah-b-sm.png">
|
<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="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="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="icon" type="image/png" sizes="16x16" href="https://cdn.enp.one/img/logos/aah-b-sm.png">
|
||||||
{% for style in config.assets.css %}
|
|
||||||
<link rel="stylesheet" href="http{{ 's' if config.https else '' }}://{{ config.site }}/{{ style }}"/>
|
<link rel="stylesheet" href="../css/explore.css"/>
|
||||||
{% endfor %}
|
|
||||||
<link
|
<link
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
href="https://use.fontawesome.com/releases/v5.6.3/css/all.css"
|
href="https://use.fontawesome.com/releases/v5.6.3/css/all.css"
|
||||||
integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/"
|
integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/"
|
||||||
crossorigin="anonymous"
|
crossorigin="anonymous"
|
||||||
/>
|
/>
|
||||||
{% for script in config.assets.js %}
|
|
||||||
<script type="text/javascript" src="http{{ 's' if config.https else '' }}://{{ config.site }}/{{ script }}"></script>
|
<script type="text/javascript" src="../js/custom.js"></script>
|
||||||
{% endfor %}
|
|
||||||
<noscript><style>.nojs { display: none; }</style></noscript>
|
<noscript><style>.nojs { display: none; }</style></noscript>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
@ -58,16 +57,16 @@
|
|||||||
<div id="toggle-description" class="nojs"><i class="fas fa-paragraph"></i></div>
|
<div id="toggle-description" class="nojs"><i class="fas fa-paragraph"></i></div>
|
||||||
|
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<div id="header"><h1>{{ config.title }}</h1></div>
|
<div id="header"><h1>Explore All Around Here</h1></div>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
{% for post in config.posts %}
|
{% for post in config.posts %}
|
||||||
<li class="article">
|
<li class="article">
|
||||||
<div class="article-banner" style="background-image: url('{{ post.banner }}');">
|
<div class="article-banner" style="background-image: url('{{ post.banner }}');">
|
||||||
<a href="http{{ 's' if config.https else '' }}://{{ config.site }}/{{ config.path.output }}/{{ post.slug }}/" class="article-content">
|
<a href="{{ post.slug }}/" class="article-content">
|
||||||
<h2>{{ post.title }}</h2>
|
<h2>{{ post.title }}</h2>
|
||||||
<p>
|
<p>
|
||||||
<i class="fas fa-map-marker-alt"></i>{{ post.location }}
|
<i class="fas fa-map-marker-alt"></i>{{ post.location.title }}
|
||||||
<i class="far fa-calendar-alt"></i>{{ post.date }}
|
<i class="far fa-calendar-alt"></i>{{ post.date }}
|
||||||
</p>
|
</p>
|
||||||
</a>
|
</a>
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
location = http{{ 's' if config.https else '' }}://{{ config.site }}/robots.txt {
|
location = robots.txt {
|
||||||
allow all;
|
allow all;
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
access_log off;
|
access_log off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location = http{{ 's' if config.https else '' }}://{{ config.site }}/{{ config.path.output }}/ {
|
location = explore/ {
|
||||||
index index.html
|
index index.html
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* http{{ 's' if config.https else '' }}://{{ config.site }}/{{ config.path.output }}/(.*)/ {
|
location ~* explore/(.*)/ {
|
||||||
if ($request_uri ~ ^/(.*)\.html) {
|
if ($request_uri ~ ^/(.*)\.html) {
|
||||||
return 302 http{{ 's' if config.https else '' }}://{{ config.site }}/{{ config.path.output }}/$1/;
|
return 302 explore/$1/;
|
||||||
}
|
}
|
||||||
try_files $uri $uri.html $uri/ =404;
|
try_files $uri $uri.html $uri/ =404;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user