Skip to content

Commit

Permalink
format files
Browse files Browse the repository at this point in the history
  • Loading branch information
le4ker committed May 4, 2024
1 parent 3f5c6bc commit 3d0c26a
Show file tree
Hide file tree
Showing 9 changed files with 352 additions and 334 deletions.
11 changes: 4 additions & 7 deletions _includes/comments.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
<!-- Disqus Comments Start -->

{% if site.disqus-shortname %}
<div id="disqus_thread"></div>
<noscript
>Please enable JavaScript to view the
<a href="https://disqus.com/?ref_noscript" rel="nofollow"
>comments powered by Disqus.</a
></noscript
>
<div id="disqus_thread"></div>
<noscript>Please enable JavaScript to view the
<a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
</noscript>
{% endif %}

<!-- Disqus Comments End -->
47 changes: 27 additions & 20 deletions _includes/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,34 @@
>
<div class="row">
<div class="col-md-10 col-md-offset-1">
{{ page.content | markdownify }} {% if site.email %} {% if site.email
contains '@' %} {% assign newemail = site.email | split: '@' %}
<p>
<script>
function join_at_email(user, domain) {
return user && domain ? user + "@" + domain : "";
}
document.write(
'<a href="mailto:' +
join_at_email("{{ newemail[0] }}", "{{ newemail[1] }}") +
'">' +
join_at_email("{{ newemail[0] }}", "{{ newemail[1] }}") +
"</a>",
);
</script>
</p>
{{ page.content | markdownify }}

{% if site.email %}
{% if site.email contains '@' %} {% assign newemail = site.email | split: '@' %}
<p>
<script>
function join_at_email(user, domain) {
return user && domain ? user + "@" + domain : "";
}
document.write(
'<a href="mailto:' +
join_at_email("{{ newemail[0] }}", "{{ newemail[1] }}") +
'">' +
join_at_email("{{ newemail[0] }}", "{{ newemail[1] }}") +
"</a>",
);
</script>
</p>
{% else %}
<p><a href="mailto:{{ site.email }}">{{ site.email }}</a></p>
{% endif %} {% endif %} {% if site.pgp %}
<a href="{{ site.pgp }}" target="_blank">PGP Key</a>
<p />
<p><a href="mailto:{{ site.email }}">{{ site.email }}</a></p>
{% endif %}

{% endif %}

{% if site.pgp %}
<p>
<a href="{{ site.pgp }}" target="_blank">PGP Key</a>
<p/>
{% endif %}
</div>
</div>
Expand Down
76 changes: 38 additions & 38 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,45 +46,45 @@

{% if site.google-tracking-id %}

<!-- Cookie Consent by TermsFeed https://www.TermsFeed.com -->
<script
type="text/javascript"
src="https://www.termsfeed.com/public/cookie-consent/4.1.0/cookie-consent.js"
charset="UTF-8"
></script>

<script type="text/javascript" charset="UTF-8">
document.addEventListener("DOMContentLoaded", function () {
cookieconsent.run({
notice_banner_type: "simple",
consent_type: "express",
palette: "light",
language: "en",
page_load_consent_levels: ["strictly-necessary"],
notice_banner_reject_button_hide: false,
preferences_center_close_button_hide: false,
page_refresh_confirmation_buttons: false,
website_name: "{{ site.url }}",
<!-- Cookie Consent by TermsFeed https://www.TermsFeed.com -->
<script
type="text/javascript"
src="https://www.termsfeed.com/public/cookie-consent/4.1.0/cookie-consent.js"
charset="UTF-8"
></script>

<script type="text/javascript" charset="UTF-8">
document.addEventListener("DOMContentLoaded", function () {
cookieconsent.run({
notice_banner_type: "simple",
consent_type: "express",
palette: "light",
language: "en",
page_load_consent_levels: ["strictly-necessary"],
notice_banner_reject_button_hide: false,
preferences_center_close_button_hide: false,
page_refresh_confirmation_buttons: false,
website_name: "{{ site.url }}",
});
});
});
</script>

<!-- Google Analytics -->

<script
type="text/plain"
data-cookie-consent="tracking"
async
src="https://www.googletagmanager.com/gtag/js?id={{site.google-tracking-id}}"
></script>
<script type="text/plain" data-cookie-consent="tracking">
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{site.google-tracking-id}}');
</script>

<!-- Google Analytics -->
</script>

<!-- Google Analytics -->

<script
type="text/plain"
data-cookie-consent="tracking"
async
src="https://www.googletagmanager.com/gtag/js?id={{site.google-tracking-id}}"
></script>
<script type="text/plain" data-cookie-consent="tracking">
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{site.google-tracking-id}}');
</script>

<!-- Google Analytics -->

{% endif %}
</head>
Expand Down
12 changes: 6 additions & 6 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ <h1 class="brand-heading">&nbsp;</h1>
<h5>&nbsp;</h5>
<a href="#{{ site.pages_list['About'] }}" class="page-scroll">
{% if site.me-img contains "https://" %}
<img class="img-me" src="{{ site.me-img }}" alt="" />
<img class="img-me" src="{{ site.me-img }}" alt="" />
{% else %}
<img
class="img-me"
src="{{site.url}}{{ site.me-img }}"
alt=""
/>
<img
class="img-me"
src="{{site.url}}{{ site.me-img }}"
alt=""
/>
{% endif %}
</a>
</div>
Expand Down
17 changes: 7 additions & 10 deletions _includes/pagination.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,13 @@
<div class="pagination">
<h4>
{% if paginator.previous_page %}
<a
href="{{site.url}}{{paginator.previous_page_path}}"
class="previous"
>Newer Posts</a
>
{% endif %} {% if paginator.previous_page and paginator.next_page %} | {%
endif %} {% if paginator.next_page %}
<a href="{{site.url}}{{paginator.next_page_path}}" class="next"
>Older Posts</a
>
<a href="{{site.url}}{{paginator.previous_page_path}}" class="previous">Newer Posts</a>
{% endif %}

{% if paginator.previous_page and paginator.next_page %} | {%endif %}

{% if paginator.next_page %}
<a href="{{site.url}}{{paginator.next_page_path}}" class="next">Older Posts</a>
{% endif %}
</h4>
</div>
Expand Down
23 changes: 9 additions & 14 deletions _includes/post-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,21 @@

<h4 align="left">
<strong>{{ post.date | date_to_string }}</strong>
<small
>.
<a
class="category"
href="{{site.url}}/categories/{{ post.category | downcase }}.html"
>
<small>
.
<a class="category" href="{{site.url}}/categories/{{ post.category | downcase }}.html">
{{ post.category }}
</a>
.</small
>
.
</small>
<br class="visible-xs-block" />
<a href="{{site.url}}{{post.url}}">
<strong>{{ post.title }}</strong>
</a>
<br class="visible-xs-block" />
<small
><a href="{{site.url}}{{post.url}}#disqus_thread"
>Comments</a
></small
>
<br class="visible-xs-block"/>
<small>
<a href="{{site.url}}{{post.url}}#disqus_thread">Comments</a>
</small>
</h4>

<!-- Post List End -->
Loading

0 comments on commit 3d0c26a

Please sign in to comment.