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: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="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">
|
||||
{% for style in config.assets.css %}
|
||||
<link rel="stylesheet" href="http{{ 's' if config.https else '' }}://{{ config.site }}/{{ style }}"/>
|
||||
{% endfor %}
|
||||
|
||||
<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"
|
||||
/>
|
||||
{% for script in config.assets.js %}
|
||||
<script type="text/javascript" src="http{{ 's' if config.https else '' }}://{{ config.site }}/{{ script }}"></script>
|
||||
{% endfor %}
|
||||
|
||||
<script type="text/javascript" src="../js/custom.js"></script>
|
||||
|
||||
<noscript><style>.nojs { display: none; }</style></noscript>
|
||||
</head>
|
||||
|
||||
@ -58,16 +57,16 @@
|
||||
<div id="toggle-description" class="nojs"><i class="fas fa-paragraph"></i></div>
|
||||
|
||||
<div id="content">
|
||||
<div id="header"><h1>{{ config.title }}</h1></div>
|
||||
<div id="header"><h1>Explore All Around Here</h1></div>
|
||||
|
||||
<ul>
|
||||
{% for post in config.posts %}
|
||||
<li class="article">
|
||||
<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>
|
||||
<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 }}
|
||||
</p>
|
||||
</a>
|
||||
|
@ -1,16 +1,16 @@
|
||||
location = http{{ 's' if config.https else '' }}://{{ config.site }}/robots.txt {
|
||||
location = robots.txt {
|
||||
allow all;
|
||||
log_not_found off;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
location = http{{ 's' if config.https else '' }}://{{ config.site }}/{{ config.path.output }}/ {
|
||||
location = explore/ {
|
||||
index index.html
|
||||
}
|
||||
|
||||
location ~* http{{ 's' if config.https else '' }}://{{ config.site }}/{{ config.path.output }}/(.*)/ {
|
||||
location ~* explore/(.*)/ {
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user