Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
MoatazMahmoud404 committed Sep 22, 2024
1 parent 8837098 commit 2b005e5
Show file tree
Hide file tree
Showing 4 changed files with 157 additions and 54 deletions.
26 changes: 13 additions & 13 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@
source "https://rubygems.org"

gem "jekyll-theme-chirpy", "~> 7.1"

gem "html-proofer", "~> 5.0", group: :test

platforms :mingw, :x64_mingw, :mswin, :jruby do
gem "tzinfo", ">= 1", "< 3"
gem "tzinfo-data"
end

gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
gem "wdm", "~> 0.1.1", platforms: [:mingw, :x64_mingw, :mswin]

group :jekyll_plugins do
# gem "jekyll-admin"
# Add any other plugins you need here, e.g.:
# gem "jekyll-gist"
end

# plugins:
# - jekyll-compress-html
# - jekyll-assets
# - jekyll-google-analytics
# - jekyll-seo-tag
# - jekyll-sitemap
# - jekyll-feed
# - jekyll-admin
# - jekyll-responsive-image
# - jekyll-picture-tag
# - jekyll-backup
# Add the desired plugins
# gem "jekyll", "~> 4.3"
gem "jekyll-sitemap"
# gem "jekyll-feed"
# gem "rack"
# gem "puma"
# gem 'webrick'
10 changes: 9 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,11 @@ collections:
output: true
sort_by: order

# collections:
# posts:
# output: true
# sidebar_label: News

defaults:
- scope:
path: "" # An empty string here means all files in the project
Expand Down Expand Up @@ -228,4 +233,7 @@ jekyll-archives:
permalinks:
tag: /tags/:name/
category: /categories/:name/
# Google Analytics Tracking ID

# plugins
plugins:
- jekyll-sitemap
165 changes: 134 additions & 31 deletions _layouts/post.html
Original file line number Diff line number Diff line change
@@ -1,39 +1,142 @@
---
layout: default
refactor: true
panel_includes:
- toc
tail_includes:
- related-posts
- post-nav
- comments
---

<style>
.pageviews {
display: flex;
align-items: center;
margin-top: 10px; /* Adjust spacing as needed */
}

.pageviews img {
margin-left: 5px; /* Space between the icon and counter */
}
</style>

<article class="post">
<header class="post-header">
<h1>{{ page.title }}</h1>
<p class="post-meta">
Posted {{ page.date | date: "%B %d, %Y" }} Updated {{
page.last_modified_at | date: "%B %d, %Y" }} {{ page.reading_time }} min
read
</p>
<!-- Page Views Counter -->
<div class="pageviews">
<em id="pv" class="pageviews">
<i class="fa-duotone"></i>
</em>
<img
style="width: inherit"
src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fmoatazmahmoud404.github.io%2F{{ page.url }}&count_bg=%2379C83D&title_bg=%23555555&icon=postwoman.svg&icon_color=%23E7E7E7&title=Hits&edge_flat=false"
alt="Hits"
/>
{% include lang.html %}

<article class="px-1">
<header>
<h1 data-toc-skip>{{ page.title }}</h1>
{% if page.description %}
<p class="post-desc fw-light mb-4">{{ page.description }}</p>
{% endif %}

<div class="post-meta text-muted">
<!-- published date -->
<span>
{{ site.data.locales[lang].post.posted }} {% include datetime.html
date=page.date tooltip=true lang=lang %}
</span>

<!-- lastmod date -->
{% if page.last_modified_at and page.last_modified_at != page.date %}
<span>
{{ site.data.locales[lang].post.updated }} {% include datetime.html
date=page.last_modified_at tooltip=true lang=lang %}
</span>
{% endif %} {% if page.image %} {% capture src %}src="{{ page.image.path |
default: page.image }}"{% endcapture %} {% capture class
%}class="preview-img{% if page.image.no_bg %}{{ ' no-bg' }}{% endif %}"{%
endcapture %} {% capture alt %}alt="{{ page.image.alt | xml_escape |
default: "Preview Image" }}"{% endcapture %} {% if page.image.lqip %} {%-
capture lqip -%}lqip="{{ page.image.lqip }}"{%- endcapture -%} {% endif %}

<div class="mt-3 mb-3">
<img {{ src }} {{ class }} {{ alt }} w="1200" h="630" {{ lqip }} />
{%- if page.image.alt -%}
<figcaption class="text-center pt-2 pb-2">
{{ page.image.alt }}
</figcaption>
{%- endif -%}
</div>
{% endif %}

<div class="d-flex justify-content-between">
<!-- author(s) -->
<span>
{% if page.author %} {% assign authors = page.author %} {% elsif
page.authors %} {% assign authors = page.authors %} {% endif %} {{
site.data.locales[lang].post.written_by }}

<em>
{% if authors %} {% for author in authors %} {% if
site.data.authors[author].url -%}
<a href="{{ site.data.authors[author].url }}"
>{{ site.data.authors[author].name }}</a
>
{%- else -%} {{ site.data.authors[author].name }} {%- endif %} {%
unless forloop.last %}{{ '</em
>,
<em
>' }}{% endunless %} {% endfor %} {% else %}
<a href="{{ site.social.links[0] }}">{{ site.social.name }}</a>
{% endif %}
</em>
</span>

<div>
<!-- read time -->
{% include read-time.html content=content prompt=true lang=lang %}
<!-- pageviews counter -->
<div class="pageviews">
<em id="pv">
<i class="fa-duotone"></i>
</em>
<img
style="width: inherit"
src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fmoatazmahmoud404.github.io%2F{{ page.url | url_encode }}&count_bg=%2379C83D&title_bg=%23555555&icon=postwoman.svg&icon_color=%23E7E7E7&title=Hits&edge_flat=false"
alt="Hits"
/>
</div>
</div>
</div>
</div>
</header>

<div class="post-content">{{ content }}</div>
<div class="content">{{ content }}</div>

<div class="post-tail-wrapper text-muted">
<!-- categories -->
{% if page.categories.size > 0 %}
<div class="post-meta mb-3">
<i class="far fa-folder-open fa-fw me-1"></i>
{% for category in page.categories %}
<a
href="{{ site.baseurl }}/categories/{{ category | slugify | url_encode }}/"
>{{ category }}</a
>
{%- unless forloop.last -%},{%- endunless -%} {% endfor %}
</div>
{% endif %}

<!-- tags -->
{% if page.tags.size > 0 %}
<div class="post-tags">
<i class="fa fa-tags fa-fw me-1"></i>
{% for tag in page.tags %}
<a
href="{{ site.baseurl }}/tags/{{ tag | slugify | url_encode }}/"
class="post-tag no-text-decoration"
>
{{- tag -}}
</a>
{% endfor %}
</div>
{% endif %}

<div
class="post-tail-bottom d-flex justify-content-between align-items-center mt-5 pb-2"
>
<div class="license-wrapper">
{% if site.data.locales[lang].copyright.license.template %} {% capture
_replacement %}
<a href="{{ site.data.locales[lang].copyright.license.link }}">
{{ site.data.locales[lang].copyright.license.name }}
</a>
{% endcapture %} {{ site.data.locales[lang].copyright.license.template |
replace: ':LICENSE_NAME', _replacement }} {% endif %}
</div>

{% include post-sharing.html lang=lang %}
</div>
<!-- .post-tail-bottom -->
</div>
<!-- div.post-tail-wrapper -->
</article>
10 changes: 1 addition & 9 deletions _posts/2024-09-22-owasp-tob-10-mob.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,8 @@ seo:
description: "A brief description of the content."
keywords: "jekyll, chirpy, blog, tutorial"
published: true
# pagination:
# enabled: true
# per_page: 1
# sidebar:
# custom: true
# items:
# - label: "About"
# url: "/about"

---

# Top 10 Mobile Risks - Final List 2016

- [M1: Improper Platform Usage](https://owasp.org/www-project-mobile-top-10/2016-risks/m1-improper-platform-usage)
Expand Down

0 comments on commit 2b005e5

Please sign in to comment.