summaryrefslogtreecommitdiff
path: root/_layouts
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2024-02-08 16:36:31 -0600
committerHombreLaser <sebastian-440@live.com>2024-02-08 16:36:31 -0600
commite182245d3205d929881f51da9b48d6c4ed97a682 (patch)
treed390e8754dec70a9c9293afb801321b96f043c15 /_layouts
Commit inicialHEADmaster
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/archive.html23
-rw-r--r--_layouts/default.html18
-rw-r--r--_layouts/page.html18
-rw-r--r--_layouts/post.html142
4 files changed, 201 insertions, 0 deletions
diff --git a/_layouts/archive.html b/_layouts/archive.html
new file mode 100644
index 0000000..6412273
--- /dev/null
+++ b/_layouts/archive.html
@@ -0,0 +1,23 @@
+---
+layout: default
+---
+<div class="wrapper">
+<div class="page">
+
+ <header class="post-header">
+ <h1 class="post-title">Posts in "{{ page.title | capitalize }}"</h1>
+ </header>
+
+ {% include page_divider.html %}
+
+ <article class="post-content">
+ <ul class="posts-list">
+ {% for post in page.posts %}
+ <li><strong><a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></strong><span class="post-date"> - {{ post.date | date: "%B %-d, %Y" }}</span></li>
+ {% endfor %}
+ </ul>
+ </article>
+
+</div>
+</div>
+<br>
diff --git a/_layouts/default.html b/_layouts/default.html
new file mode 100644
index 0000000..cc54f80
--- /dev/null
+++ b/_layouts/default.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+
+ {% include head.html %}
+
+ <body>
+
+ {% include header.html %}
+
+ <div class="page-content">
+ {{ content }}
+ </div>
+
+ {% include footer.html %}
+
+ </body>
+
+</html>
diff --git a/_layouts/page.html b/_layouts/page.html
new file mode 100644
index 0000000..42e894e
--- /dev/null
+++ b/_layouts/page.html
@@ -0,0 +1,18 @@
+---
+layout: default
+---
+<div class="wrapper">
+<div class="page">
+
+ <header class="post-header">
+ <h1 class="post-title">{{ page.title }}</h1>
+ </header>
+
+ {% include page_divider.html %}
+
+ <article class="post-content">
+ {{ content }}
+ </article>
+
+</div>
+</div>
diff --git a/_layouts/post.html b/_layouts/post.html
new file mode 100644
index 0000000..a6861f5
--- /dev/null
+++ b/_layouts/post.html
@@ -0,0 +1,142 @@
+---
+layout: default
+---
+<div class="post">
+
+<div class="post-header-container {% if page.cover %}has-cover{% endif %}" {% if page.cover %}style="background-image: url({{ page.cover | prepend: site.baseurl }});"{% endif %}>
+ <div class="scrim {% if page.cover %}has-cover{% endif %}">
+ <header class="post-header">
+ <h1 class="title">{{ page.title }}</h1>
+ <p class="info">by <strong>{{ page.author }}</strong></p>
+ </header>
+ </div>
+</div>
+
+<div class="wrapper">
+
+{% unless page.cover %} {% include page_divider.html %} {% endunless %}
+
+<section class="post-meta">
+ <div class="post-date">{{ page.date | date: "%B %-d, %Y" }}</div>
+ <div class="post-categories">
+ {% if page.categories.size > 0 %}in {% for cat in page.categories %}
+ {% if site.jekyll-archives %}
+ <a href="{{ site.baseurl }}/category/{{ cat }}">{{ cat | capitalize }}</a>{% if forloop.last == false %}, {% endif %}
+ {% else %}
+ <a href="{{ site.baseurl }}/posts/#{{ cat }}">{{ cat | capitalize }}</a>{% if forloop.last == false %}, {% endif %}
+ {% endif %}
+ {% endfor %}{% endif %}
+ </div>
+</section>
+
+<article class="post-content">
+ {{ content }}
+</article>
+
+{% if site.jekyll-archives %}
+{% if page.tags.size > 0 %}
+<section class="tags">
+ <strong>Tags:</strong> {% for tag in page.tags %}<a href="{{ site.baseurl }}/tag/{{ tag }}">{{ tag }}</a>{% if forloop.last == false %},&nbsp;{% endif %}{% endfor %}
+</section>
+{% endif %}
+{% endif %}
+
+<section class="rss">
+ <p class="rss-subscribe text"><strong>Subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></strong></p>
+</section>
+
+<section class="share">
+ <span>Share: </span>
+ {% for social in site.social %}
+ {% capture full_url %}{{ site.url }}{{ site.baseurl }}{{ page.url }}{% endcapture %}
+ {% if social.name == "Twitter" and social.share == true %}
+ <a href="//twitter.com/share?text={{ page.title | cgi_escape }}&url={{ full_url | cgi_escape}}&via={{social.username}}"
+ onclick="window.open(this.href, '{{ social.icon }}-share', 'width=550,height=255');return false;">
+ <i class="fa fa-{{ social.icon | remove_first: '-square' }}-square fa-lg"></i>
+ </a>
+ {% endif %}
+ {% if social.name == "Facebook" and social.share == true %}
+ <a href="//www.facebook.com/sharer.php?t={{ page.title | cgi_escape }}&u={{ full_url | cgi_escape}}"
+ onclick="window.open(this.href, '{{ social.icon }}-share', 'width=550,height=255');return false;">
+ <i class="fa fa-{{ social.icon | remove_first: '-square' }}-square fa-lg"></i>
+ </a>
+ {% endif %}
+ {% if social.name == "Google+" and social.share == true %}
+ <a href="//plus.google.com/share?title={{ page.title | cgi_escape }}&url={{ full_url | cgi_escape}}"
+ onclick="window.open(this.href, '{{ social.icon }}-share', 'width=550,height=255');return false;">
+ <i class="fa fa-{{ social.icon | remove_first: '-square' }}-square fa-lg"></i>
+ </a>
+ {% endif %}
+ {% if social.name == "LinkedIn" and social.share == true %}
+ <a href="//www.linkedin.com/shareArticle?mini=true&url={{ full_url | cgi_escape}}"
+ onclick="window.open(this.href, '{{ social.icon }}-share', 'width=550,height=255');return false;">
+ <i class="fa fa-{{ social.icon | remove_first: '-square' }}-square fa-lg"></i>
+ </a>
+ {% endif %}
+ {% if social.name == "Pinterest" and social.share == true %}
+ <a href="//www.pinterest.com/pin/create/button/?description={{ page.title | cgi_escape }}&url={{ full_url | cgi_escape}}&media={{ site.url }}{% if page.cover %}{{ page.cover | prepend: site.baseurl }}{% elsif site.cover %}{{ site.cover | prepend: site.baseurl }}{% else %}{{ site.logo | prepend: site.baseurl }}{% endif %}"
+ onclick="window.open(this.href, '{{ social.icon }}-share', 'width=550,height=255');return false;">
+ <i class="fa fa-{{ social.icon | remove_first: '-square' }}-square fa-lg"></i>
+ </a>
+ {% endif %}
+ {% if social.name == "Reddit" and social.share == true %}
+ <a href="//www.reddit.com/submit" onclick="window.location = '//www.reddit.com/submit?url=' + encodeURIComponent('{{ full_url }}') + '&title={{page.title}}'; return false">
+ <i class="fa fa-{{ social.icon | remove_first: '-square' }}-square fa-lg"></i>
+ </a>
+ {% endif %}
+ {% if social.name == "Hacker News" and social.share == true %}
+ <a href="//news.ycombinator.com/submitlink" onclick="window.location = '//news.ycombinator.com/submitlink?u=' + encodeURIComponent('{{ full_url }}') + '&t={{page.title}}'; return false">
+ <i class="fa fa-{{ social.icon | remove_first: '-square' }} fa-lg"></i>
+ </a>
+ {% endif %}
+ {% endfor %}
+</section>
+{% if site.inter_post_navigation == true %}
+ <section class="post-navigation">
+ <span class="prev-post">
+ {% if page.previous.url %}
+ <a href="{{page.previous.url | prepend: site.baseurl}}">
+ <span class="fa-stack fa-lg">
+ <i class="fa fa-square fa-stack-2x"></i>
+ <i class="fa fa-angle-double-left fa-stack-1x fa-inverse"></i>
+ </span>
+ <span class="page-number">{{page.previous.title}}</span>
+ </a>
+ {% endif %}
+ </span>
+ <span class="next-post">
+ {% if page.next.url %}
+ <a href="{{page.next.url | prepend: site.baseurl}}">
+ <span class="page-number">{{page.next.title}}</span>
+ <span class="fa-stack fa-lg">
+ <i class="fa fa-square fa-stack-2x"></i>
+ <i class="fa fa-angle-double-right fa-stack-1x fa-inverse"></i>
+ </span>
+ </a>
+ {% endif %}
+ </span>
+ </section>
+{% endif %}
+
+{% if site.disqus_shortname %}
+{% unless page.disqus_disabled %}
+<section class="disqus">
+ <div id="disqus_thread"></div>
+ <script type="text/javascript">
+ var disqus_shortname = '{{ site.disqus_shortname }}';
+
+ /* * * DON'T EDIT BELOW THIS LINE * * */
+ (function() {
+ var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
+ dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
+ })();
+ </script>
+ <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
+ <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
+</section>
+{% endunless %}
+{% endif %}
+
+</div>
+</div>