jekyll-theme-instagram 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +89 -0
- data/_config.yml +25 -0
- data/_includes/footer.html +34 -0
- data/_includes/head.html +15 -0
- data/_includes/header.html +51 -0
- data/_includes/media.html +5 -0
- data/_layouts/default.html +19 -0
- data/_layouts/home.html +22 -0
- data/_layouts/post.html +59 -0
- data/_sass/jekyll-theme-instagram.scss +339 -0
- data/assets/css/main.scss +4 -0
- metadata +70 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9a982c6a003a07040141cd51005d334dceb20a86943c41c5794a063907d3fb0c
|
4
|
+
data.tar.gz: 15823a90e488887878a6581b5355411a63e441a0a0978852738e5652bbd8cadf
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 37ebe89f76080e799fff34ca96f4fd53c063b90987008284143b63239238a22c57a7d17c2ea60296c6cd408f33566e08b87d79d7b47e5adc22518f48dcf36cad
|
7
|
+
data.tar.gz: 3b6cdab1b13a723b6e93f0f3b6dd575c4684712ba53216037a354e392d3fe7667251bbd8fe732be11554b386b7752689f3496065bcc84bb4a8a3db3caf7a38c0
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2024 Diptanil Saha
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
# jekyll-theme-instagram
|
2
|
+
|
3
|
+
A minimalist Jekyll theme for creating an Instagram-inspired user profile page.
|
4
|
+
|
5
|
+
This Jekyll theme transforms your blog into an Instagram-like archive, perfect for preserving and showcasing your Instagram content. The home page mimics an Instagram profile, featuring:
|
6
|
+
|
7
|
+
- Profile Picture and bio section.
|
8
|
+
- Grid layout of post thumbnails.
|
9
|
+
|
10
|
+
Ideal for influencers, photographers, or anyone looking to maintain an independent archive of their Instagram content in a familiar, visually appealing format.
|
11
|
+
|
12
|
+
## Installation
|
13
|
+
|
14
|
+
Add this line to your Jekyll site's `Gemfile`:
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
gem "jekyll-theme-instagram"
|
18
|
+
```
|
19
|
+
|
20
|
+
And add this line to your Jekyll site's `_config.yml`:
|
21
|
+
|
22
|
+
```yaml
|
23
|
+
theme: jekyll-theme-instagram
|
24
|
+
```
|
25
|
+
|
26
|
+
And then execute:
|
27
|
+
|
28
|
+
$ bundle
|
29
|
+
|
30
|
+
Or install it yourself as:
|
31
|
+
|
32
|
+
$ gem install jekyll-theme-instagram
|
33
|
+
|
34
|
+
|
35
|
+
If you are using Github Pages, add this line to your Jekyll site's `_config.yml`:
|
36
|
+
|
37
|
+
```yaml
|
38
|
+
remote_theme: diptanilsaha/jekyll-theme-instagram
|
39
|
+
```
|
40
|
+
|
41
|
+
## Usage
|
42
|
+
|
43
|
+
### Global Configuration
|
44
|
+
|
45
|
+
| Variable | Type | Default | Specification |
|
46
|
+
| -------- | ---- | ------- | ------------- |
|
47
|
+
| `title` | String | --- | The title of the website.[^1] |
|
48
|
+
| `name` | String | --- | Website author's name. |
|
49
|
+
| `description` | String | --- | Description of the website. |
|
50
|
+
| `header_img` | String | --- | URL of the Header Image. |
|
51
|
+
| `ig_username` | String | --- | Instagram Username |
|
52
|
+
| `ig_category` | String | --- | Category of the Instagram Profile |
|
53
|
+
| `ig_website` | String | --- | Website URL on the Instagram Profile. |
|
54
|
+
| `footer_website` | String | --- | Other External Website. |
|
55
|
+
| `theme_config.archive` | Boolean | `true` | Theme configuration suggesting website is made for Archiving purpose. |
|
56
|
+
| `include` | String | --- | Folders you want to include to build Jekyll Site. |
|
57
|
+
|
58
|
+
|
59
|
+
### Post Configuration
|
60
|
+
|
61
|
+
| Variable | Type | Default | Specification |
|
62
|
+
| -------- | ---- | ------- | ------------- |
|
63
|
+
| `title` | String | --- | Title of the Post. |
|
64
|
+
| `date` | Date | --- | Date of the Post. |
|
65
|
+
| `archive_date` | Date | --- | Archive Date of the Post.[^2] |
|
66
|
+
| `thumbnail` | String | --- | URL of the Thumbnail Image |
|
67
|
+
| `media` | List | --- | Array of Hashes of Media for the Post, where each hash defines type and URL of Media. |
|
68
|
+
|
69
|
+
|
70
|
+
[^1]: Use Instagram username, if using for archiving Instagram Account.
|
71
|
+
|
72
|
+
[^2]: If `theme_config.archive` is set to `true`, it is mandatory to add `archive_date` on post configuration. Otherwise, not necessary.
|
73
|
+
|
74
|
+
## Contributing
|
75
|
+
|
76
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/diptanilsaha/jekyll-theme-instagram. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](https://www.contributor-covenant.org/) code of conduct.
|
77
|
+
|
78
|
+
## Development
|
79
|
+
|
80
|
+
To set up your environment to develop this theme, run `bundle install`.
|
81
|
+
|
82
|
+
Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
|
83
|
+
|
84
|
+
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
85
|
+
To add a custom directory to your theme-gem, please edit the regexp in `jekyll-theme-instagram.gemspec` accordingly.
|
86
|
+
|
87
|
+
## License
|
88
|
+
|
89
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/_config.yml
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
title: jekyll-theme-instagram
|
2
|
+
name: Jekyll Theme Instagram
|
3
|
+
description: 'A minimalist Jekyll theme for creating an Instagram-inspired user profile page.'
|
4
|
+
url: https://diptanil.page
|
5
|
+
baseurl: "/jekyll-theme-instagram"
|
6
|
+
header_img: /media/jekyll-theme-instagram.png
|
7
|
+
|
8
|
+
ig_username:
|
9
|
+
ig_category: Jekyll Theme
|
10
|
+
ig_website: github.com/diptanilsaha/jekyll-theme-instagram/
|
11
|
+
|
12
|
+
footer_website: diptanil.page
|
13
|
+
|
14
|
+
favicon: /media/favicon.ico
|
15
|
+
|
16
|
+
theme: jekyll-theme-instagram # if you are using GitHub Pages, change it to remote_theme: diptanilsaha/jekyll_theme_instagram
|
17
|
+
|
18
|
+
theme_config:
|
19
|
+
archive: true
|
20
|
+
|
21
|
+
include:
|
22
|
+
- media
|
23
|
+
|
24
|
+
sass:
|
25
|
+
style: :compressed
|
@@ -0,0 +1,34 @@
|
|
1
|
+
{%- assign error = false -%}
|
2
|
+
{%- assign message = "" -%}
|
3
|
+
|
4
|
+
{%- if site.posts.size > 0 -%}
|
5
|
+
{%- if site.theme_config.archive -%}
|
6
|
+
{%- if site.posts.first.archive_date == nil -%}
|
7
|
+
{%- assign error = true -%}
|
8
|
+
{%- assign message = "Error: Archive Date is missing in your latest post. " -%}
|
9
|
+
{%- else -%}
|
10
|
+
{%- assign message = site.posts.first.archive_date | date_to_string -%}
|
11
|
+
{%- endif -%}
|
12
|
+
{%- else -%}
|
13
|
+
{%- if site.posts.first.date == nil -%}
|
14
|
+
{%- assign message = "Error: Date is missing in your latest post. " -%}
|
15
|
+
{%- else -%}
|
16
|
+
{%- assign message = site.posts.first.date | date_to_string -%}
|
17
|
+
{%- endif -%}
|
18
|
+
{%- endif -%}
|
19
|
+
{%- endif -%}
|
20
|
+
|
21
|
+
<footer class="footer">
|
22
|
+
<div class="last-updated">
|
23
|
+
last updated:
|
24
|
+
{%- if error -%}
|
25
|
+
<span style="color: red;">{{ message }}</span>
|
26
|
+
{%- else -%}
|
27
|
+
{{ message }}
|
28
|
+
{%- endif -%}
|
29
|
+
</div>
|
30
|
+
<div class="links">
|
31
|
+
<div>{{ site.footer_website }}</div>
|
32
|
+
<div>Follow <a href="https://instagram.com/{{ site.ig_username }}" target="_blank">{{ site.ig_username }}</a> on Instagram</div>
|
33
|
+
</div>
|
34
|
+
</footer>
|
data/_includes/head.html
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
<head>
|
2
|
+
<meta charset="UTF-8">
|
3
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
4
|
+
|
5
|
+
<title>
|
6
|
+
{%- if page.title -%}
|
7
|
+
{{ page.title }} - {{ site.title }}
|
8
|
+
{%- else -%}
|
9
|
+
{{ site.title }}
|
10
|
+
{%- endif -%}
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="shortcut icon" type="image/x-icon" href="{{ site.favicon | relative_url }}" />
|
14
|
+
<link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}">
|
15
|
+
</head>
|
@@ -0,0 +1,51 @@
|
|
1
|
+
{%- if page.layout == "home" -%}
|
2
|
+
<header class="profile">
|
3
|
+
<section class="profile-img">
|
4
|
+
<img src="{{ site.header_img | relative_url }}" alt="{{ site.title }}">
|
5
|
+
</section>
|
6
|
+
<section class="profile-username">
|
7
|
+
<div class="username">{{ site.title }}</div>
|
8
|
+
<a class="btn" href="https://instagram.com/{{ site.ig_username }}" target="_blank">Follow on Instagram</a>
|
9
|
+
</section>
|
10
|
+
<section class="profile-details">
|
11
|
+
{%- if site.name -%}
|
12
|
+
<div class="name">{{ site.name }}</div>
|
13
|
+
{%- endif -%}
|
14
|
+
|
15
|
+
{%- if site.ig_category -%}
|
16
|
+
<div class="category">{{ site.ig_category }}</div>
|
17
|
+
{%- endif -%}
|
18
|
+
|
19
|
+
{%- if site.description -%}
|
20
|
+
<div class="description">{{ site.description | newline_to_br }}</div>
|
21
|
+
{%- endif -%}
|
22
|
+
|
23
|
+
{%- if site.ig_website -%}
|
24
|
+
<div class="website">
|
25
|
+
<div class="icon">
|
26
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor"
|
27
|
+
stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
28
|
+
<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" />
|
29
|
+
<path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" />
|
30
|
+
</svg>
|
31
|
+
</div>
|
32
|
+
<div class="text">
|
33
|
+
<a href="http://{{ site.ig_website }}" target="_blank">{{ site.ig_website }}</a>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
{%- endif -%}
|
37
|
+
</section>
|
38
|
+
</header>
|
39
|
+
{%- else -%}
|
40
|
+
<header>
|
41
|
+
<nav class="navbar">
|
42
|
+
<a href="{{ "/" | relative_url }}" class="back">
|
43
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
44
|
+
<path d="M15 4l-8 8 8 8" stroke="#000000" stroke-width="2" fill="none" stroke-linecap="round"
|
45
|
+
stroke-linejoin="round" />
|
46
|
+
</svg>
|
47
|
+
</a>
|
48
|
+
<div class="text">{{ site.title }}</div>
|
49
|
+
</nav>
|
50
|
+
</header>
|
51
|
+
{%- endif -%}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
|
3
|
+
{%- include head.html -%}
|
4
|
+
|
5
|
+
<body>
|
6
|
+
<div class="container">
|
7
|
+
|
8
|
+
{%- include header.html -%}
|
9
|
+
|
10
|
+
<main class="main">
|
11
|
+
{{ content }}
|
12
|
+
</main>
|
13
|
+
|
14
|
+
{%- include footer.html -%}
|
15
|
+
|
16
|
+
</div>
|
17
|
+
</body>
|
18
|
+
|
19
|
+
</html>
|
data/_layouts/home.html
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
{%- assign posts = site.posts -%}
|
6
|
+
|
7
|
+
{%- if posts.size > 0 -%}
|
8
|
+
<div class="posts">
|
9
|
+
{%- for post in posts -%}
|
10
|
+
<div class="post">
|
11
|
+
<a href="{{ post.url | relative_url }}">
|
12
|
+
<div class="thumbnail">
|
13
|
+
<img src="{{ post.thumbnail | relative_url }}">
|
14
|
+
<div class="overlay">
|
15
|
+
<div class="title">{{ post.title }}</div>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
</a>
|
19
|
+
</div>
|
20
|
+
{%- endfor -%}
|
21
|
+
</div>
|
22
|
+
{%- endif -%}
|
data/_layouts/post.html
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
{% assign error = false %}
|
6
|
+
{% assign error_message = "" %}
|
7
|
+
|
8
|
+
{%- if page.title == nil -%}
|
9
|
+
{%- assign error = true -%}
|
10
|
+
{%- assign error_message = error_message | append: "Error: Title is missing in frontmatter. " -%}
|
11
|
+
{%- endif -%}
|
12
|
+
|
13
|
+
{%- if page.date == nil -%}
|
14
|
+
{%- assign error = true -%}
|
15
|
+
{%- assign error_message = error_message | append: "Error: Date is missing in frontmatter. " -%}
|
16
|
+
{%- endif -%}
|
17
|
+
|
18
|
+
{%- if page.thumbnail == nil -%}
|
19
|
+
{%- assign error = true -%}
|
20
|
+
{%- assign error_message = error_message | append: "Error: Thumbnail is missing in frontmatter. " -%}
|
21
|
+
{%- endif -%}
|
22
|
+
|
23
|
+
{%- if site.theme_config.archive and page.archive_date == nil -%}
|
24
|
+
{%- assign error = true -%}
|
25
|
+
{%- assign error_message = error_message | append: "Error: Archive Date is missing in frontmatter. " -%}
|
26
|
+
{%- endif -%}
|
27
|
+
|
28
|
+
{%- if error -%}
|
29
|
+
<div style="color: red; font-weight: bold;">
|
30
|
+
{{ error_message }}
|
31
|
+
<p>File: {{ page.path }}</p>
|
32
|
+
</div>
|
33
|
+
{%- else -%}
|
34
|
+
|
35
|
+
<div class="post-container">
|
36
|
+
<div class="title">{{ page.title }}</div>
|
37
|
+
<div class="date">Posted on: {{ page.date | date_to_string }}</div>
|
38
|
+
{% if site.theme_config.archive -%}
|
39
|
+
<div class="archive-date">Archived on: {{ page.archive_date | date_to_string }}</div>
|
40
|
+
{%- endif -%}
|
41
|
+
<hr>
|
42
|
+
|
43
|
+
{%- assign media = page.media -%}
|
44
|
+
|
45
|
+
{%- if media.size > 0 -%}
|
46
|
+
<ul class="media-list">
|
47
|
+
{%- for item in media -%}
|
48
|
+
<li>
|
49
|
+
|
50
|
+
{%- include media.html src=item.url type=item.type -%}
|
51
|
+
|
52
|
+
</li>
|
53
|
+
{%- endfor -%}
|
54
|
+
</ul>
|
55
|
+
{%- endif -%}
|
56
|
+
|
57
|
+
{{ content | newline_to_br }}
|
58
|
+
</div>
|
59
|
+
{%- endif -%}
|
@@ -0,0 +1,339 @@
|
|
1
|
+
html, body {
|
2
|
+
height: 100%;
|
3
|
+
margin: 0;
|
4
|
+
}
|
5
|
+
|
6
|
+
body {
|
7
|
+
font-family: Arial, Helvetica, sans-serif;
|
8
|
+
}
|
9
|
+
|
10
|
+
a {
|
11
|
+
color: #007bff;
|
12
|
+
}
|
13
|
+
|
14
|
+
.container {
|
15
|
+
max-width: 900px;
|
16
|
+
margin: 0 auto;
|
17
|
+
padding: 0 15px;
|
18
|
+
display: flex;
|
19
|
+
flex-direction: column;
|
20
|
+
min-height: 100vh;
|
21
|
+
}
|
22
|
+
|
23
|
+
.btn {
|
24
|
+
background-color: #007bff;
|
25
|
+
color: white;
|
26
|
+
padding: 7px 14px;
|
27
|
+
border: none;
|
28
|
+
border-radius: 4px;
|
29
|
+
font-size: 14px;
|
30
|
+
cursor: pointer;
|
31
|
+
text-decoration: none;
|
32
|
+
}
|
33
|
+
|
34
|
+
.profile {
|
35
|
+
display: grid;
|
36
|
+
grid-template-columns: 1fr 2fr;
|
37
|
+
margin: 2rem 0rem;
|
38
|
+
}
|
39
|
+
|
40
|
+
.navbar {
|
41
|
+
display: flex;
|
42
|
+
align-items: center;
|
43
|
+
margin-top: 2rem;
|
44
|
+
|
45
|
+
.back {
|
46
|
+
width: 30px;
|
47
|
+
height: 30px;
|
48
|
+
display: flex;
|
49
|
+
align-items: center;
|
50
|
+
}
|
51
|
+
|
52
|
+
.text {
|
53
|
+
margin: 0 auto;
|
54
|
+
font-size: 1.5rem;
|
55
|
+
font-weight: 400;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
.profile-img {
|
60
|
+
grid-row: 1 / 3;
|
61
|
+
grid-column: 1 / 2;
|
62
|
+
display: flex;
|
63
|
+
align-items: center;
|
64
|
+
justify-content: center;
|
65
|
+
|
66
|
+
img {
|
67
|
+
max-width: 100%;
|
68
|
+
width: 140px;
|
69
|
+
height: auto;
|
70
|
+
border-radius: 50%;
|
71
|
+
border: solid 1px #979797;
|
72
|
+
border-width: thin;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
.profile-username {
|
77
|
+
grid-row: 1 / 2;
|
78
|
+
grid-column: 2 / 3;
|
79
|
+
display: flex;
|
80
|
+
align-items: center;
|
81
|
+
justify-content: space-between;
|
82
|
+
padding-right: 4px;
|
83
|
+
|
84
|
+
.username {
|
85
|
+
font-size: 2rem;
|
86
|
+
font-weight: bold;
|
87
|
+
inline-size: 400px;
|
88
|
+
overflow: hidden;
|
89
|
+
white-space: nowrap;
|
90
|
+
text-overflow: ellipsis;
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
.profile-details {
|
95
|
+
grid-row: 2 / 3;
|
96
|
+
grid-column: 2 / 3;
|
97
|
+
margin-top: 10px;
|
98
|
+
|
99
|
+
.name {
|
100
|
+
font-size: 1rem;
|
101
|
+
font-weight: 600;
|
102
|
+
margin-bottom: 5px;
|
103
|
+
}
|
104
|
+
|
105
|
+
.category {
|
106
|
+
font-size: 1rem;
|
107
|
+
font-weight: 400;
|
108
|
+
color: #707070;
|
109
|
+
margin-bottom: 5px;
|
110
|
+
}
|
111
|
+
|
112
|
+
.description {
|
113
|
+
font-size: 1rem;
|
114
|
+
font-weight: 300;
|
115
|
+
margin-bottom: 5px;
|
116
|
+
}
|
117
|
+
|
118
|
+
.website {
|
119
|
+
display: flex;
|
120
|
+
flex-direction: row;
|
121
|
+
align-items: center;
|
122
|
+
color: #002fff;
|
123
|
+
|
124
|
+
.icon {
|
125
|
+
width: 1rem;
|
126
|
+
height: 1rem;
|
127
|
+
margin-right: 5px;
|
128
|
+
}
|
129
|
+
|
130
|
+
.text {
|
131
|
+
inline-size: 100%;
|
132
|
+
overflow: hidden;
|
133
|
+
white-space: nowrap;
|
134
|
+
text-overflow: ellipsis;
|
135
|
+
}
|
136
|
+
|
137
|
+
a {
|
138
|
+
color: #002fff;
|
139
|
+
text-decoration: none;
|
140
|
+
}
|
141
|
+
|
142
|
+
&:hover a{
|
143
|
+
text-decoration: underline;
|
144
|
+
}
|
145
|
+
}
|
146
|
+
}
|
147
|
+
|
148
|
+
.main {
|
149
|
+
flex: 1 0 auto;
|
150
|
+
}
|
151
|
+
|
152
|
+
.footer {
|
153
|
+
flex-shrink: 0;
|
154
|
+
display: flex;
|
155
|
+
justify-content: space-between;
|
156
|
+
align-items: center;
|
157
|
+
padding: 1rem 0rem;
|
158
|
+
|
159
|
+
.last-updated {
|
160
|
+
color: #707070;
|
161
|
+
}
|
162
|
+
|
163
|
+
.links {
|
164
|
+
text-align: end;
|
165
|
+
}
|
166
|
+
}
|
167
|
+
|
168
|
+
.posts {
|
169
|
+
margin-top: 1rem;
|
170
|
+
margin-bottom: 1rem;
|
171
|
+
display: flex;
|
172
|
+
flex-wrap: wrap;
|
173
|
+
|
174
|
+
.post {
|
175
|
+
width: 33.333%;
|
176
|
+
padding: 0.25rem;
|
177
|
+
box-sizing: border-box;
|
178
|
+
}
|
179
|
+
}
|
180
|
+
|
181
|
+
.thumbnail {
|
182
|
+
position: relative;
|
183
|
+
width: 100%;
|
184
|
+
padding-bottom: 100%;
|
185
|
+
|
186
|
+
img {
|
187
|
+
position: absolute;
|
188
|
+
top: 0;
|
189
|
+
left: 0;
|
190
|
+
width: 100%;
|
191
|
+
height: 100%;
|
192
|
+
object-fit: cover;
|
193
|
+
}
|
194
|
+
|
195
|
+
&:hover .overlay {
|
196
|
+
display: flex;
|
197
|
+
background: rgba(0, 0, 0, 0.5);
|
198
|
+
}
|
199
|
+
}
|
200
|
+
|
201
|
+
.overlay {
|
202
|
+
position: absolute;
|
203
|
+
top: 0;
|
204
|
+
left: 0;
|
205
|
+
width: 100%;
|
206
|
+
height: 100%;
|
207
|
+
display: none;
|
208
|
+
justify-content: center;
|
209
|
+
align-items: center;
|
210
|
+
background: rgba(0, 0, 0, 0);
|
211
|
+
color: white;
|
212
|
+
font-size: 20px;
|
213
|
+
font-weight: bold;
|
214
|
+
transition: background 0.3s ease;
|
215
|
+
text-align: center;
|
216
|
+
|
217
|
+
.title {
|
218
|
+
inline-size: 80%;
|
219
|
+
overflow: hidden;
|
220
|
+
white-space: nowrap;
|
221
|
+
text-overflow: ellipsis;
|
222
|
+
}
|
223
|
+
}
|
224
|
+
|
225
|
+
.post-container {
|
226
|
+
max-width: 80%;
|
227
|
+
margin: 1.5rem auto;
|
228
|
+
|
229
|
+
.title {
|
230
|
+
font-size: 1.856rem;
|
231
|
+
font-weight: 700;
|
232
|
+
margin-bottom: 0.6rem;
|
233
|
+
}
|
234
|
+
|
235
|
+
.date {
|
236
|
+
margin-bottom: 0.4rem;
|
237
|
+
}
|
238
|
+
|
239
|
+
.archive-date {
|
240
|
+
color: #707070;
|
241
|
+
}
|
242
|
+
|
243
|
+
hr {
|
244
|
+
border: none;
|
245
|
+
border-top: 0.5px solid #929292;
|
246
|
+
}
|
247
|
+
|
248
|
+
p {
|
249
|
+
font-size: 1.2rem;
|
250
|
+
}
|
251
|
+
}
|
252
|
+
|
253
|
+
.media-list {
|
254
|
+
list-style-type: none;
|
255
|
+
padding-left: 0%;
|
256
|
+
|
257
|
+
li {
|
258
|
+
margin: 1rem 0rem;
|
259
|
+
}
|
260
|
+
}
|
261
|
+
|
262
|
+
.media {
|
263
|
+
width: 100%;
|
264
|
+
height: auto;
|
265
|
+
object-fit: contain;
|
266
|
+
}
|
267
|
+
|
268
|
+
@media (max-width: 900px) {
|
269
|
+
.container {
|
270
|
+
max-width: 100%;
|
271
|
+
}
|
272
|
+
}
|
273
|
+
|
274
|
+
@media (max-width: 700px) {
|
275
|
+
.profile-img {
|
276
|
+
grid-row-end: 2;
|
277
|
+
|
278
|
+
img {
|
279
|
+
width: 77px;
|
280
|
+
}
|
281
|
+
}
|
282
|
+
|
283
|
+
.profile-details {
|
284
|
+
grid-row: 2 / 3;
|
285
|
+
grid-column: 1 / 3;
|
286
|
+
margin-top: 10px;
|
287
|
+
}
|
288
|
+
|
289
|
+
.profile-username {
|
290
|
+
flex-direction: column;
|
291
|
+
justify-content: center;
|
292
|
+
padding: 0px;
|
293
|
+
|
294
|
+
.username {
|
295
|
+
inline-size: 200px;
|
296
|
+
overflow: hidden;
|
297
|
+
white-space: nowrap;
|
298
|
+
text-overflow: ellipsis;
|
299
|
+
text-align: center;
|
300
|
+
font-size: 1.5rem;
|
301
|
+
margin-bottom: 0.8rem;
|
302
|
+
}
|
303
|
+
}
|
304
|
+
|
305
|
+
.footer {
|
306
|
+
flex-direction: column;
|
307
|
+
justify-content: center;
|
308
|
+
|
309
|
+
.links {
|
310
|
+
margin-top: 10px;
|
311
|
+
text-align: center;
|
312
|
+
}
|
313
|
+
}
|
314
|
+
|
315
|
+
.posts {
|
316
|
+
margin: 0rem -0.5rem 1rem -0.5rem;
|
317
|
+
}
|
318
|
+
|
319
|
+
.navbar {
|
320
|
+
margin: 1.5rem 0rem;
|
321
|
+
|
322
|
+
.text {
|
323
|
+
text-align: center;
|
324
|
+
inline-size: 80%;
|
325
|
+
overflow: hidden;
|
326
|
+
white-space: nowrap;
|
327
|
+
text-overflow: ellipsis;
|
328
|
+
}
|
329
|
+
}
|
330
|
+
|
331
|
+
.post-container {
|
332
|
+
max-width: 100%;
|
333
|
+
margin-top: 0rem;
|
334
|
+
|
335
|
+
p {
|
336
|
+
font-size: 1rem;
|
337
|
+
}
|
338
|
+
}
|
339
|
+
}
|
metadata
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jekyll-theme-instagram
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Diptanil Saha
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2024-07-21 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: jekyll
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '4.3'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '4.3'
|
27
|
+
description:
|
28
|
+
email:
|
29
|
+
- diptanil.dev@gmail.com
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- LICENSE.txt
|
35
|
+
- README.md
|
36
|
+
- _config.yml
|
37
|
+
- _includes/footer.html
|
38
|
+
- _includes/head.html
|
39
|
+
- _includes/header.html
|
40
|
+
- _includes/media.html
|
41
|
+
- _layouts/default.html
|
42
|
+
- _layouts/home.html
|
43
|
+
- _layouts/post.html
|
44
|
+
- _sass/jekyll-theme-instagram.scss
|
45
|
+
- assets/css/main.scss
|
46
|
+
homepage: https://github.com/diptanilsaha/jekyll-theme-instagram/
|
47
|
+
licenses:
|
48
|
+
- MIT
|
49
|
+
metadata: {}
|
50
|
+
post_install_message:
|
51
|
+
rdoc_options: []
|
52
|
+
require_paths:
|
53
|
+
- lib
|
54
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: '0'
|
59
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0'
|
64
|
+
requirements: []
|
65
|
+
rubygems_version: 3.5.3
|
66
|
+
signing_key:
|
67
|
+
specification_version: 4
|
68
|
+
summary: A minimalist Jekyll theme for creating an Instagram-inspired user profile
|
69
|
+
page.
|
70
|
+
test_files: []
|