-
Notifications
You must be signed in to change notification settings - Fork 906
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #419 from sylhare/compress
Compress HTML
- Loading branch information
Showing
5 changed files
with
113 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{% assign color = include.color %} | ||
{% assign img = include.img %} | ||
{% capture _post_footer %} | ||
<!-- To change color of links in the page --> | ||
<style> | ||
header#main { | ||
background-size: cover; | ||
background-repeat: no-repeat; | ||
background-position: center; | ||
} | ||
{% if color != nil %} | ||
.post-content a { color: {{ color }} !important; } | ||
.share-buttons a { color: {{ color }} !important; } | ||
.tag-list a:not(:hover) { color: {{ color }} !important; } | ||
div#post-nav a { color: {{ color }} !important; } | ||
footer a { color: {{ color }} !important; } | ||
.site-header nav a:hover { color: {{ color }} !important; } | ||
a.button:hover { | ||
background: {{ color }} !important; | ||
border: 1px solid {{ color }} !important; | ||
color: white; | ||
text-decoration: none; | ||
filter: none; | ||
} | ||
header#main { | ||
background-color: {{ color }} !important; | ||
background-image: url('{{ site.color_image | relative_url }}'); | ||
} | ||
{% endif %} | ||
{% if img != nil %} | ||
header#main { background-image: url('{{ img | relative_url }}'); } | ||
{% endif %} | ||
</style> | ||
|
||
<!-- Post navigation --> | ||
{% if site.post_navigation or site.theme_settings.post_navigation %} | ||
{% include blog/post_nav.liquid %} | ||
{% endif %} | ||
|
||
<!--Utterances--> | ||
{% if site.comments.utterances.repo and site.comments.utterances.issue-term %} | ||
{% include social/utterances.liquid %} | ||
{% endif %} | ||
|
||
<!-- Cusdis --> | ||
{% if site.comments.cusdis_app_id or site.cusdis_app_id %} | ||
{% include social/cusdis.liquid %} | ||
{% endif %} | ||
|
||
<!-- Disqus --> | ||
{% if site.comments.disqus_shortname or site.theme_settings.disqus_shortname or site.disqus_shortname %} | ||
{% include social/disqus.liquid %} | ||
{% endif %} | ||
{% endcapture %} | ||
{{ _post_footer | split: " " | join: " " }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,30 @@ | ||
--- | ||
layout: default | ||
--- | ||
|
||
<article {% if page.feature-img %}class="feature-image"{% endif %}> | ||
|
||
<header id="main" style="background-image: url('{{ page.feature-img | relative_url }}')"> | ||
<div class="title-padder"> | ||
{% if page.hide_title %} | ||
<div class="feature-image-padding"></div> | ||
{% else %} | ||
<h1 id="{{ page.title | default: "" | cgi_escape }}" class="title"> {{ page.title }}</h1> | ||
{% if page.subtitle %} | ||
<h2 class="subtitle">{{ page.subtitle }}</h2> | ||
<header id="main" style="background-image: url('{{ page.feature-img | relative_url }}')"> | ||
<div class="title-padder"> | ||
{% if page.hide_title %} | ||
<div class="feature-image-padding"></div> | ||
{% else %} | ||
<h1 id="{{ page.title | default: "" | cgi_escape }}" class="title"> {{ page.title }}</h1> | ||
{% if page.subtitle %} | ||
<h2 class="subtitle">{{ page.subtitle }}</h2> | ||
{% endif %} | ||
{% endif %} | ||
</div> | ||
</header> | ||
<section class="post-content"> | ||
{% if page.bootstrap %} | ||
<div class="bootstrap-iso"> | ||
{% endif %} | ||
{{ content }} | ||
{% if page.bootstrap %} | ||
</div> | ||
{% endif %} | ||
{% endif %} | ||
</div> | ||
</header> | ||
|
||
<section class="post-content"> | ||
{% if page.bootstrap %} | ||
<div class="bootstrap-iso"> | ||
{% endif %} | ||
{{ content }} | ||
{% if page.bootstrap %} | ||
</div> | ||
{% endif %} | ||
</section> | ||
|
||
|
||
<!-- Tag list for portfolio --> | ||
{% capture tag_list %}{{ page.tags | join: "|"}}{% endcapture %} | ||
{% include default/tags_list.liquid tags=tag_list %} | ||
|
||
</section> | ||
<!-- Tag list for portfolio --> | ||
{% capture tag_list %}{{ page.tags | join: "|" }}{% endcapture %} | ||
{% capture _tags %}{% include default/tags_list.liquid tags=tag_list %}{% endcapture %} | ||
{{ _tags | split: " " | join: " " }} | ||
</article> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters