Skip to content

Commit

Permalink
Format all HTML files
Browse files Browse the repository at this point in the history
  • Loading branch information
Garanas committed Dec 22, 2024
1 parent 72efb61 commit 4d1414e
Show file tree
Hide file tree
Showing 21 changed files with 244 additions and 232 deletions.
15 changes: 5 additions & 10 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
{
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[shellscript]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
},
"[scss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"files.associations": {
"*.html": "liquid",
"*.scss": "liquid-css",
"*.css": "liquid-scss",
"*.js": "liquid-javascript"
},
"[liquid]": {
"editor.defaultFormatter": "sissel.shopify-liquid"
"editor.defaultFormatter": "Shopify.theme-check-vscode",
"editor.formatOnSave": true
}
}
1 change: 0 additions & 1 deletion src/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
permalink: /404.html
layout: default
---

<style type="text/css" media="screen">
.container {
margin: 10px auto;
Expand Down
49 changes: 24 additions & 25 deletions src/_config.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ description: >- # this means to ignore newlines until "baseurl:"
Google search results) and in your feed.xml site description.
baseurl: "" # the subpath of your site, e.g. /blog
url: "localhost:4000" # the base hostname & protocol for your site, e.g. http://example.com
github_username: Garanas
github_username: Garanas

permalink: /:year/:month/:day/:title:output_ext

Expand Down Expand Up @@ -66,7 +66,6 @@ minima:
# solarized-dark Dark variant of solarized color scheme.
# solarized Adaptive skin for solarized color scheme skins.
skin: classic

# Exclude from processing.
# The following items will not be processed, by default.
# Any item listed under the `exclude:` key here will be automatically added to
Expand All @@ -87,27 +86,27 @@ minima:
# - vendor/gems/
# - vendor/ruby/

# Minima date format.
# The default value is "%b %d, %Y" (e.g. Nov 14, 2023)
# Refer to https://shopify.github.io/liquid/filters/date/ if you want to customize this.
#date_format: "%b-%d-%Y"
# Minima date format.
# The default value is "%b %d, %Y" (e.g. Nov 14, 2023)
# Refer to https://shopify.github.io/liquid/filters/date/ if you want to customize this.
#date_format: "%b-%d-%Y"

# Generate social links in footer.
#social_links:
# - { platform: devto, user_url: "https://dev.to/jekyll" }
# - { platform: dribbble, user_url: "https://dribbble.com/jekyll" }
# - { platform: facebook, user_url: "https://www.facebook.com/jekyll" }
# - { platform: flickr, user_url: "https://www.flickr.com/photos/jekyll" }
# - { platform: github, user_url: "https://github.com/jekyll/minima" }
# - { platform: gitlab, user_url: "https://gitlab.com/jekyll" }
# - { platform: google_scholar, user_url: "https://scholar.google.com/citations?user=qc6CJjYAAAAJ" }
# - { platform: instagram, user_url: "https://www.instagram.com/jekyll" }
# - { platform: keybase, user_url: "https://keybase.io/jekyll" }
# - { platform: linkedin, user_url: "https://www.linkedin.com/in/jekyll" }
# - { platform: microdotblog, user_url: "https://micro.blog/jekyll" }
# - { platform: pinterest, user_url: "https://www.pinterest.com/jekyll" }
# - { platform: stackoverflow, user_url: "https://stackoverflow.com/users/1234567/jekyll" }
# - { platform: telegram, user_url: "https://t.me/jekyll" }
# - { platform: twitter, user_url: "https://twitter.com/jekyllrb" }
# - { platform: x, user_url: "https://x.com/jekyllrb" }
# - { platform: youtube, user_url: "https://www.youtube.com/jekyll" }
# Generate social links in footer.
#social_links:
# - { platform: devto, user_url: "https://dev.to/jekyll" }
# - { platform: dribbble, user_url: "https://dribbble.com/jekyll" }
# - { platform: facebook, user_url: "https://www.facebook.com/jekyll" }
# - { platform: flickr, user_url: "https://www.flickr.com/photos/jekyll" }
# - { platform: github, user_url: "https://github.com/jekyll/minima" }
# - { platform: gitlab, user_url: "https://gitlab.com/jekyll" }
# - { platform: google_scholar, user_url: "https://scholar.google.com/citations?user=qc6CJjYAAAAJ" }
# - { platform: instagram, user_url: "https://www.instagram.com/jekyll" }
# - { platform: keybase, user_url: "https://keybase.io/jekyll" }
# - { platform: linkedin, user_url: "https://www.linkedin.com/in/jekyll" }
# - { platform: microdotblog, user_url: "https://micro.blog/jekyll" }
# - { platform: pinterest, user_url: "https://www.pinterest.com/jekyll" }
# - { platform: stackoverflow, user_url: "https://stackoverflow.com/users/1234567/jekyll" }
# - { platform: telegram, user_url: "https://t.me/jekyll" }
# - { platform: twitter, user_url: "https://twitter.com/jekyllrb" }
# - { platform: x, user_url: "https://x.com/jekyllrb" }
# - { platform: youtube, user_url: "https://www.youtube.com/jekyll" }
49 changes: 24 additions & 25 deletions src/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ description: >- # this means to ignore newlines until "baseurl:"
Google search results) and in your feed.xml site description.
baseurl: "/Newshub" # the subpath of your site, e.g. /blog
url: "https://garanas.github.io" # the base hostname & protocol for your site, e.g. http://example.com
github_username: Garanas
github_username: Garanas

permalink: /:year/:month/:day/:title:output_ext

Expand Down Expand Up @@ -66,7 +66,6 @@ minima:
# solarized-dark Dark variant of solarized color scheme.
# solarized Adaptive skin for solarized color scheme skins.
skin: classic

# Exclude from processing.
# The following items will not be processed, by default.
# Any item listed under the `exclude:` key here will be automatically added to
Expand All @@ -87,27 +86,27 @@ minima:
# - vendor/gems/
# - vendor/ruby/

# Minima date format.
# The default value is "%b %d, %Y" (e.g. Nov 14, 2023)
# Refer to https://shopify.github.io/liquid/filters/date/ if you want to customize this.
#date_format: "%b-%d-%Y"
# Minima date format.
# The default value is "%b %d, %Y" (e.g. Nov 14, 2023)
# Refer to https://shopify.github.io/liquid/filters/date/ if you want to customize this.
#date_format: "%b-%d-%Y"

# Generate social links in footer.
#social_links:
# - { platform: devto, user_url: "https://dev.to/jekyll" }
# - { platform: dribbble, user_url: "https://dribbble.com/jekyll" }
# - { platform: facebook, user_url: "https://www.facebook.com/jekyll" }
# - { platform: flickr, user_url: "https://www.flickr.com/photos/jekyll" }
# - { platform: github, user_url: "https://github.com/jekyll/minima" }
# - { platform: gitlab, user_url: "https://gitlab.com/jekyll" }
# - { platform: google_scholar, user_url: "https://scholar.google.com/citations?user=qc6CJjYAAAAJ" }
# - { platform: instagram, user_url: "https://www.instagram.com/jekyll" }
# - { platform: keybase, user_url: "https://keybase.io/jekyll" }
# - { platform: linkedin, user_url: "https://www.linkedin.com/in/jekyll" }
# - { platform: microdotblog, user_url: "https://micro.blog/jekyll" }
# - { platform: pinterest, user_url: "https://www.pinterest.com/jekyll" }
# - { platform: stackoverflow, user_url: "https://stackoverflow.com/users/1234567/jekyll" }
# - { platform: telegram, user_url: "https://t.me/jekyll" }
# - { platform: twitter, user_url: "https://twitter.com/jekyllrb" }
# - { platform: x, user_url: "https://x.com/jekyllrb" }
# - { platform: youtube, user_url: "https://www.youtube.com/jekyll" }
# Generate social links in footer.
#social_links:
# - { platform: devto, user_url: "https://dev.to/jekyll" }
# - { platform: dribbble, user_url: "https://dribbble.com/jekyll" }
# - { platform: facebook, user_url: "https://www.facebook.com/jekyll" }
# - { platform: flickr, user_url: "https://www.flickr.com/photos/jekyll" }
# - { platform: github, user_url: "https://github.com/jekyll/minima" }
# - { platform: gitlab, user_url: "https://gitlab.com/jekyll" }
# - { platform: google_scholar, user_url: "https://scholar.google.com/citations?user=qc6CJjYAAAAJ" }
# - { platform: instagram, user_url: "https://www.instagram.com/jekyll" }
# - { platform: keybase, user_url: "https://keybase.io/jekyll" }
# - { platform: linkedin, user_url: "https://www.linkedin.com/in/jekyll" }
# - { platform: microdotblog, user_url: "https://micro.blog/jekyll" }
# - { platform: pinterest, user_url: "https://www.pinterest.com/jekyll" }
# - { platform: stackoverflow, user_url: "https://stackoverflow.com/users/1234567/jekyll" }
# - { platform: telegram, user_url: "https://t.me/jekyll" }
# - { platform: twitter, user_url: "https://twitter.com/jekyllrb" }
# - { platform: x, user_url: "https://x.com/jekyllrb" }
# - { platform: youtube, user_url: "https://www.youtube.com/jekyll" }
13 changes: 8 additions & 5 deletions src/_includes/disqus_comments.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
{%- if page.comments != false and jekyll.environment == "production" -%}

{%- if page.comments != false and jekyll.environment == 'production' -%}
<div id="disqus_thread"></div>
<script>
var disqus_config = function () {
this.page.url = '{{ absolute_url }}';
this.page.identifier = '{{ page.url | absolute_url }}';
};

(function() {
var d = document, s = d.createElement('script');
(function () {
var d = document,
s = d.createElement('script');

s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';

s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
<noscript
>Please enable JavaScript to view the
<a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript
>
{%- endif -%}
125 changes: 69 additions & 56 deletions src/_includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,28 @@
<data class="u-url" href="{{ "/" | relative_url }}"></data>

<div class="wrapper">

<div class="footer-col-wrapper">
<div class="footer-col">
<p class="feed-subscribe">
<a href="{{ site.feed.path | default: 'feed.xml' | absolute_url }}">
<svg class="svg-icon orange">
<use xlink:href="{{ 'assets/minima-social-icons.svg#rss' | relative_url }}"></use>
</svg><span>Subscribe</span>
</svg>
<span>Subscribe</span>
</a>
</p>
{%- if site.author %}
<ul class="contact-list">
{% if site.author.name -%}
<li class="p-name">{{ site.author.name | escape }}</li>
{% endif -%}
{% if site.author.email -%}
<li><a class="u-email" href="mailto:{{ site.author.email }}">{{ site.author.email }}</a></li>
{%- endif %}
</ul>
{%- endif %}
{%- if site.author %}
<ul class="contact-list">
{% if site.author.name -%}
<li class="p-name">{{ site.author.name | escape }}</li>
{% endif -%}
{% if site.author.email -%}
<li>
<a class="u-email" href="mailto:{{ site.author.email }}">{{ site.author.email }}</a>
</li>
{%- endif %}
</ul>
{%- endif %}
</div>
<div class="footer-col">
<p>{{ site.description | escape }}</p>
Expand All @@ -34,53 +36,64 @@

<div class="footer-navigation">
<div>
<h3>News hub archive</h3>
<ul>
{% for category in site.categories %}
{% assign slugified = category | first | slugify %}
{% assign path = '/category/' %}
<li>
<a href="{{ '/category/' | append:slugified | append: /index.html | relative_url}}">
{{- category | first -}}
</a>
</li>
{% endfor %}
</ul>
</div>

<div>
<h3>Community</h3>
<ul>
{% for category in site.categories %}
{% assign slugified = category | first | slugify %}
{% assign path = '/category/' %}
<li>
<a href="{{ '/category/' | append:slugified | append: /index.html | relative_url}}">
{{- category | first -}}
</a>
</li>
{% endfor %}
</ul>
</div>

<h3> News hub archive</h3>
<ul>
{% for category in site.categories %}
{% assign slugified = category | first | slugify %}
{% assign path = '/category/' %}
<li><a href="{{ '/category/' | append:slugified | append: /index.html | relative_url}}">{{ category | first }}</a></li>
{% endfor %}
</ul>
</div>

<div>
<h3> Community</h3>
<ul>
{% for category in site.categories %}
{% assign slugified = category | first | slugify %}
{% assign path = '/category/' %}
<li><a href="{{ '/category/' | append:slugified | append: /index.html | relative_url}}">{{ category | first }}</a></li>
{% endfor %}
</ul>
</div>

<div>
<h3> Contributing</h3>
<ul>
{% for category in site.categories %}
{% assign slugified = category | first | slugify %}
{% assign path = '/category/' %}
<li><a href="{{ '/category/' | append:slugified | append: /index.html | relative_url}}">{{ category | first }}</a></li>
{% endfor %}
</ul>
</div>
<div>
<h3>Contributing</h3>
<ul>
{% for category in site.categories %}
{% assign slugified = category | first | slugify %}
{% assign path = '/category/' %}
<li>
<a href="{{ '/category/' | append:slugified | append: /index.html | relative_url}}">
{{- category | first -}}
</a>
</li>
{% endfor %}
</ul>
</div>

<div>
<h3> Socials</h3>
<ul>
{% for category in site.categories %}
{% assign slugified = category | first | slugify %}
{% assign path = '/category/' %}
<li><a href="{{ '/category/' | append:slugified | append: /index.html | relative_url}}">{{ category | first }}</a></li>
{% endfor %}
</ul>
</div>
<div>
<h3>Socials</h3>
<ul>
{% for category in site.categories %}
{% assign slugified = category | first | slugify %}
{% assign path = '/category/' %}
<li>
<a href="{{ '/category/' | append:slugified | append: /index.html | relative_url}}">
{{- category | first -}}
</a>
</li>
{% endfor %}
</ul>
</div>
</div>


</div>

</footer>
10 changes: 8 additions & 2 deletions src/_includes/google-analytics.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
<script>
window['ga-disable-{{ site.google_analytics }}'] = window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1";
window['ga-disable-{{ site.google_analytics }}'] =
window.doNotTrack === '1' ||
navigator.doNotTrack === '1' ||
navigator.doNotTrack === 'yes' ||
navigator.msDoNotTrack === '1';
window.dataLayer = window.dataLayer || [];
function gtag(){window.dataLayer.push(arguments);}
function gtag() {
window.dataLayer.push(arguments);
}
gtag('js', new Date());

gtag('config', '{{ site.google_analytics }}');
Expand Down
Loading

0 comments on commit 4d1414e

Please sign in to comment.