Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 02 17:41
    sake92 closed #212
  • Dec 02 17:41
    sake92 closed #214
  • Dec 02 17:41
    sake92 closed #211
  • Dec 02 17:41
    sake92 closed #210
  • Dec 02 17:41
    sake92 closed #209
  • Dec 02 17:41
    sake92 closed #208
  • Dec 02 17:41
    sake92 closed #206
  • Dec 02 17:41
    sake92 closed #202
  • Nov 26 16:12
    scala-steward closed #213
  • Nov 26 16:12
    scala-steward commented #213
  • Nov 26 16:12
    scala-steward opened #214
  • Nov 12 21:42
    scala-steward closed #207
  • Nov 12 21:42
    scala-steward commented #207
  • Nov 12 21:42
    scala-steward opened #213
  • Nov 05 05:52
    scala-steward opened #212
  • Nov 02 07:09
    scala-steward closed #197
  • Nov 02 07:09
    scala-steward opened #211
  • Nov 02 07:09
    scala-steward commented #197
  • Sep 30 09:08
    scala-steward closed #204
  • Sep 30 09:08
    scala-steward commented #204
Peter Pan
@P3trur0
cool
Alex Bush
@alexjbush
Hey, I love this lib btw
Is there a reason why you are using a snapshot scalatags version from ba.sake instead of com.lihaoyi?
Sakib Hadžiavdić
@sake92
@alexjbush thanks, and welcome! :smiley:
there was a bug in scalatags, it merged repeated attributes
I guess we could update it to scalatags 0.7.0 now :)
Alex Bush
@alexjbush
Ah great :D
Sakib Hadžiavdić
@sake92
object MultiPage extends Multi {

  def rends = Seq(PageImpl("1"), PageImpl("2"))
}

case class PageImpl(name: String) extends Renderable {

  override def relPath = Paths.get(s"examples/simple/multi/$name.txt")

  override def render = s"multi$name"
}
Finally got it working! :smile:
Could be that I broke something, please report if you find something
Anyway, new version of sbt-hepek is 0.2.0
it supports MultiRenderable
which enables you to render multiple pages from one template
you can call DB, Wordpress API or something dynamic now!
And got it rendered to static pages! :smiley:
Sakib Hadžiavdić
@sake92

New hepek SSG version is 0.6.0 with ScalaMultiRenderable support
drocsid
@drocsid
I asked on r/scala and someone referred me to this project
Thanks for making it! Trying to bring up a site quickly with it.
Sakib Hadžiavdić
@sake92
@drocsid you're welcome! :smiley:
if you need any help, just ping me here
drocsid
@drocsid
Hi @sake92 . I set the following properties to color the navbar, etc.
h3 {
 color: #d6e5e5;
}

#main-navbar {
  background-color: aliceblue;
}

a.navbar-brand {
  background-color: aliceblue;
}

a[href="about.html"] {
  background-color: aliceblue;
}

.navbar-brand {
  float: none;
}
drocsid
@drocsid

I was going to try to see if I could work on the navbar fonts. Change the color. Maybe try to get something that looks like a logo from text.

If you know the property to change them or have another method let me know. I disabled the float so the favicon that I swapped out sits within the navbar. But then the "logo" text is now centered.

This is all related to the starter template
Another question would be how to swap the author icon for the blogSetting / withAuthor ...
I will read around the docs and look at the chats above to make sure I'm not asking about things that have already been discussed...
Sakib Hadžiavdić
@sake92
Regarding icons, currently it's not possible
You can probably copy-paste the whole "theme" and tweak it as you like.
About CSS stuff, I'm really bad at it, haha. If you can use existing Bootstrap stuff that would be better probably
Just extend FADependencies and then you can type FA.addressBook()
instead of manually stitching HTML
drocsid
@drocsid
Yeah I'm not really a great web page designer, just know some basic css stuff...
Ok, I will keep hacking away at it. Might just remove the whole withAuthor and Date business. I'm not really building a blog but more of an info site ...
Sakib Hadžiavdić
@sake92
yeah, here's source code of my site https://sake.ba
very basic, no blog stuff involved:
There's also this one: https://github.com/alexjbush/alexjbush.github.io/tree/source
but it doesn't use much of Hepek's abstraction, only the rendering part
mostly manually written HTML
drocsid
@drocsid
I used the img("https://....") but it just put the text on my page
Yeah I did actually follow the link to your page earlier. I'm trying to make something a little prettier... But anyhow thanks again. I'm enjoying building the site with your project!
Sakib Hadžiavdić
@sake92
glad you like it.. :tada:
maybe img(src:="...") ?
drocsid
@drocsid
Ahh yeah. ScalaTags... Was thinking I should pop the documentation open for that. Sort of sleep deprived at this point. But driven to get a page built...
Do you know why the operator is := instead of just =?
Sakib Hadžiavdić
@sake92
it would have to be a named parameter then
now it accepts AttrPair*