Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Self-hosted blog (demo) #155

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div class="container has-text-centered mt-6 is-max-tablet is-relative">
<h1 class="mt-0 is-size-2 has-text-text-on-scheme">{{ page.title }}</h1>
<div class="p404">
<h2 class="p404__title mb-0" data-text="0">4<span class="p404__title-zero">{%- include_relative assets/logos/techlore-logo-edit-by-figma.svg -%}0</span>4</h2>
<h2 class="p404__title mb-0" data-text="0">4<span class="p404__title-zero">{%- include svg/logo.svg -%}0</span>4</h2>
</div>

{% include c_feature-box.html
Expand Down
6 changes: 5 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,18 @@ sass:
style: compressed
sourcemap: development

# -----------------------------------------
# Blog settings
#
permalink: /blog/:title/

# -----------------------------------------
# Collection settings
#
collections:
guides:
output: true
permalink: /guides/:name
collections_dir: videos

# -----------------------------------------
# Archive settings
Expand Down
24 changes: 12 additions & 12 deletions _data/_en/navigation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,23 @@ mainNav:
videos:
title: "Videos"
url: /videos
resources:
title: "Resources"
url: /resources
blog:
title: "Blog"
url: /blog
forum:
title: "Forum"
url: https://discuss.techlore.tech/
external: true
goincognito:
title: "Go incognito"
title: "Go Incognito"
url: /goincognito
coaching:
title: "Coaching"
url: /coaching
forum:
title: "Forum"
url: https://discuss.techlore.tech/
external: true
blog:
title: "Blog"
url: https://blog.techlore.tech/
external: true
resources:
title: "Resources"
url: /resources

support:
title: "Support Us"
url: /support
Expand Down
File renamed without changes.
28 changes: 8 additions & 20 deletions _includes/e_render-svg-icon.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{% comment %}
SVG ICON -----------------------------------------
Default data source: assets/icons/{*}.svg
Data source: /_includes/icons/{*}.svg
Parameters:
- icon: name of the SVG file in the {data source}
- path: custom path (eg. "assets/knowledgebase/icons/")
- class: custom class(es); when placed inside a button use class "icon"
- inline (boolean): when "true" insert the code of the SVG
- dimension: size of the icon (aspect ratio 1:1)
- dimension: size of the icon (aspect ratio 1:1)
default size: 100 (100%)
variant sizes: 25, 50, 75, 150, 200
- path: (deprecated)
- inline: (deprecated)
{% endcomment %}

{% assign icon = include.icon %}
Expand All @@ -21,20 +21,8 @@
{% assign dimension = 100 %}
{% endunless %}

{% assign path = include.path %}
{% unless include.path %}
{% assign path = "/assets/icons/" %}
{% endunless %}

{% assign url = path | append: icon | append: ".svg" %}

{% if include.inline %}
<span class="svg-icon svg-icon--inline {{ dimension | prepend: "is-size-" }} {{ include.class }}">
{% include_relative {{ url }} %}
</span>
{% else %}
<span class="svg-icon {{ dimension | prepend: "is-size-" }} {{ include.class }}">
<img src="{{ path | relative_url | append: icon | append: ".svg" }}" alt="" loading="lazy">
</span>
{% assign url = "icons/" | append: icon | append: ".svg" %}

{% endif %}
<span class="svg-icon svg-icon--inline {{ dimension | prepend: "is-size-" }} {{ include.class }}">
{% include {{ url }} %}
</span>
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion _includes/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div class="navbar-brand">
<a class="navbar-item navbar-item--logo" href="{% link index.html %}" title="Back to home">
{% comment %}Edited logo required for the animation ;){% endcomment %}
{%- include_relative assets/logos/techlore-logo-edit-by-figma.svg -%}
{%- include svg/logo.svg -%}
</a>
</div>

Expand Down
1 change: 1 addition & 0 deletions _includes/svg/logo.svg
File renamed without changes
6 changes: 3 additions & 3 deletions _includes/wave.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="wave{% if include.isFooter %} wave--footer{% endif %}">
{% include_relative assets/images/wave.svg %}
{% include_relative assets/images/wave.svg %}
</div>
{% include svg/wave.svg %}
{% include svg/wave.svg %}
</div>
2 changes: 1 addition & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<br>
{% endif %}
{% if page.date %}
<em>{% if page.author %}By: {{ page.author }} — {% endif %}{{ page.date }}</em>
<em>{% if page.author %}By: {{ page.author }} — {% endif %}{{ page.date | date: "%B %-d, %Y" }}</em>
{% endif %}
{% endcapture %}

Expand Down
Loading