mirror of
https://github.com/bspeice/speice.io
synced 2024-12-22 16:48:10 -05:00
Beautify html
This commit is contained in:
parent
f01b1877f2
commit
110985aa9a
@ -1,5 +1,4 @@
|
|||||||
{% if site.google_analytics_id %}
|
{% if site.google_analytics_id %}
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new
|
||||||
@ -9,5 +8,4 @@
|
|||||||
ga('create', '{{ site.google_analytics_id }}', 'auto');
|
ga('create', '{{ site.google_analytics_id }}', 'auto');
|
||||||
ga('send', 'pageview');
|
ga('send', 'pageview');
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<script>
|
<script>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
|
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
|
||||||
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables */
|
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables */
|
||||||
|
@ -2,10 +2,8 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
|
||||||
<title>{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}</title>
|
<title>{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}</title>
|
||||||
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
|
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
|
||||||
|
|
||||||
<link href='https://fonts.googleapis.com/css?family=Roboto+Mono|Roboto:300,400,900,400italic' rel='stylesheet' type='text/css'>
|
<link href='https://fonts.googleapis.com/css?family=Roboto+Mono|Roboto:300,400,900,400italic' rel='stylesheet' type='text/css'>
|
||||||
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
|
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
|
||||||
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
|
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
<header class="c-page__header">
|
<header class="c-page__header">
|
||||||
<h1><code>{{ site.title}}</code></h1>
|
<h1><code>{{ site.title}}</code></h1>
|
||||||
|
|
||||||
{% if page.title == 'Home' %}
|
{% if page.title == 'Home' %}
|
||||||
<h1>{{ site.description }}</h1>
|
<h1>{{ site.description }}</h1>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
---
|
---
|
||||||
layout: page
|
layout: page
|
||||||
---
|
---
|
||||||
|
|
||||||
<article class="c-article">
|
<article class="c-article">
|
||||||
<header class="c-article__header">
|
<header class="c-article__header">
|
||||||
<h1 class="c-article__title">{{ page.title }}</h1>
|
<h1 class="c-article__title">{{ page.title }}</h1>
|
||||||
|
@ -6,18 +6,15 @@ layout: page
|
|||||||
<h1 class="c-article__title">{{ page.title }}</h1>
|
<h1 class="c-article__title">{{ page.title }}</h1>
|
||||||
<p class="c-article__time"><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%b %-d, %Y" }}</time></p>
|
<p class="c-article__time"><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%b %-d, %Y" }}</time></p>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<!-- Post Tags -->
|
<!-- Post Tags -->
|
||||||
<ul class="c-tags">
|
<ul class="c-tags">
|
||||||
{% for tag in page.tags %}
|
{% for tag in page.tags %}
|
||||||
<li class="c-tag">{{ tag }}</li>
|
<li class="c-tag">{{ tag }}</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div class="c-article__main">
|
<div class="c-article__main">
|
||||||
{{ content }}
|
{{ content }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Previous / Next Buttons -->
|
<!-- Previous / Next Buttons -->
|
||||||
<div class="pagenav">
|
<div class="pagenav">
|
||||||
{% if page.previous.url %}
|
{% if page.previous.url %}
|
||||||
@ -35,7 +32,6 @@ layout: page
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Disqus comments view -->
|
<!-- Disqus comments view -->
|
||||||
{% if page.comments != false and site.disqus_id %}
|
{% if page.comments != false and site.disqus_id %}
|
||||||
<div class="post-disqus">
|
<div class="post-disqus">
|
||||||
|
@ -2,12 +2,10 @@
|
|||||||
layout: page
|
layout: page
|
||||||
title: Home
|
title: Home
|
||||||
---
|
---
|
||||||
|
|
||||||
<section class="c-archives">
|
<section class="c-archives">
|
||||||
{% for post in site.posts %}
|
{% for post in site.posts %}
|
||||||
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
|
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
|
||||||
{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
|
{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
|
||||||
|
|
||||||
{% if forloop.first %}
|
{% if forloop.first %}
|
||||||
<h2 class="c-archives__year" id="{{ this_year }}-ref">{{this_year}}</h2>
|
<h2 class="c-archives__year" id="{{ this_year }}-ref">{{this_year}}</h2>
|
||||||
<ul class="c-archives__list">
|
<ul class="c-archives__list">
|
||||||
|
Loading…
Reference in New Issue
Block a user