Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining?
Autumn, 21 Nov 2026 - @27.69
Forum Activity: Three Stars Random | Recent Posts | Guild Recents
News: :skull: Websites are like whispers in the night  :skull: Guild Events: November 200 words RPG jam
+  MelonLand Forum
|-+  Da Web Revival
| |-+  ✁ ∙ Web Crafting
| | |-+  ☔︎ ∙ I need Help!
| | | |-+  eleventy: deviantart-style statuses


« previous next »
Pages: [1] Print Embed
Author Topic: eleventy: deviantart-style statuses  (Read 117 times)
fairyrune
Sr. Member ⚓︎
****
View Profile WWWArt


we live to make the impossible possible!
⛺︎ My Room
Matrix: Chat!
RSS: RSS
OS: Linux Mint (Cinnamon)

Guild Memberships:
Artifacts:
Joined 2025!Visited on Melon's 10th Anniversary!Common RavenDino Fossil
« on: Autumn, 19 Nov 2026 @666 » Toggle Font Embed

 :dog: i started using eleventy for my blog, and i love it so far! however, i have a question that i can't seem to find answers for. i've managed to finagle it into slotting nicely into my blog's format, for the most part, but i'm having trouble trying to convert my "status" bar.

as you can see on one of my posts, i have a bit at the bottom that says what i'm reading, listening to etc. like a deviantart journal. i don't want to copy and paste this html every time, as that would defeat the purpose of having a SSG! if anyone knows how i could convert this into something i can set with layouts + something in the front matter, i'd be grateful! :seal:

Logged

☾ "you want to run - i'll run with you" ☼
https://files.catbox.moe/ivdca8.gifhttps://i.postimg.cc/YSTBDnM2/chao-blinkie.gifhttps://files.catbox.moe/ji1nvt.gifhttps://files.catbox.moe/9ypmrn.gifhttps://files.catbox.moe/3im96c.gif
https://64.media.tumblr.com/fac3df0288cde16e520cca2ed725faab/0e5301293eb46033-64/s400x600/feee08e5076e1c4257468660c1b172c56c9b3fc9.pnj

Artifact Swap: Prairie dog
schlime9k
Full Member ⚓︎
***
View Profile WWW


Forever personalising my profile
⛺︎ My Room
StatusCafe: schlime9k
iMood: schlime9k
RSS: RSS

Guild Memberships:
Artifacts:
Visited on Melon's 10th Anniversary!Joined 2025!
« Reply #1 on: Autumn, 19 Nov 2026 @706 » Toggle Font Embed

So I don't actually use 11ty, but I had a quick look at some of it's documentation to see if you can do something like that, and I think I have an answer for you!

There's these things called "_includes" found here and what you do is make a new document in that _includes directory that contains all that status bar html junk that you don't wanna ctrl+c & ctrl+v all the time.

Then whenever you make a new post, you link that in your post layout and then add the relevant status info in your post.

Please let me know if this works at all or I'm just spewing complete nonsense, because again I know next to nothing about Eleventy...

Logged

https://schlime.online/images/buttons/wsw.gif

Artifact Swap: Forum-Posting Extraordinaire!Physical media FOREVA!I met Dan Q on Melonland!GrapesAce Honey
fairyrune
Sr. Member ⚓︎
****
View Profile WWWArt


we live to make the impossible possible!
⛺︎ My Room
Matrix: Chat!
RSS: RSS
OS: Linux Mint (Cinnamon)

Guild Memberships:
Artifacts:
Joined 2025!Visited on Melon's 10th Anniversary!Common RavenDino Fossil
« Reply #2 on: Autumn, 20 Nov 2026 @648 » Toggle Font Embed

So I don't actually use 11ty, but I had a quick look at some of it's documentation to see if you can do something like that, and I think I have an answer for you!

There's these things called "_includes" found here and what you do is make a new document in that _includes directory that contains all that status bar html junk that you don't wanna ctrl+c & ctrl+v all the time.

Then whenever you make a new post, you link that in your post layout and then add the relevant status info in your post.

Please let me know if this works at all or I'm just spewing complete nonsense, because again I know next to nothing about Eleventy...

yes! the layout is what wraps around the content, in my case i use markdown files. my problem is that what's presented in the video i referenced for my blog is that the layout defines what comes before and after all of the page content. but what i want to do is have my page content, bookended by boilerplate, and then be able to set what appears within that boilerplate that isn't already predefined (like for example, the {{ title }} parameter!) i unfortunately can't see any ways to create a custom variable.

however... i believe i did figure it out. you can use anything; "title" and "date" already exist in 11ty's docs, but i just tried with something random and you can set a custom data variable that way. when i tried this a few days ago, it didn't work; i suspect that might be to do with 11ty's --serve bug which sometimes doesn't export all the files correctly and the console needs to be restarted for it to work.

so i was already doing what i needed to do - 11ty just decided to crap out on me and i thought i messed up  :drat:

Logged

☾ "you want to run - i'll run with you" ☼
https://files.catbox.moe/ivdca8.gifhttps://i.postimg.cc/YSTBDnM2/chao-blinkie.gifhttps://files.catbox.moe/ji1nvt.gifhttps://files.catbox.moe/9ypmrn.gifhttps://files.catbox.moe/3im96c.gif
https://64.media.tumblr.com/fac3df0288cde16e520cca2ed725faab/0e5301293eb46033-64/s400x600/feee08e5076e1c4257468660c1b172c56c9b3fc9.pnj

Artifact Swap: Prairie dog
Pages: [1] Print Embed 
« previous next »
 

Melonking.Net © Always and ever was! SMF © 2021 | Privacy Notice | Send Feedback | Supporters ♥ Guide | Rules | Whos a Mod? | RSS | WAP | Mobile


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery! Pixel Sea TamaNOTchi
@000 Melon
Land
Forum Art Hub Chat Webring Explore Random Recent Tenement Arcade Want to Login or Join ? Web Craft Guide Graphic Catalogue Wiki Help I'm Lost! Link Land Newsletters Image Stream Minecraft: Online
Zap!
Passport Sites tamaNOTchi Asatte Add your site?
Aero Archive Onio Cafe 32 Bit Cafe Status Cafe