Skip to content

Commit

Permalink
zine v0.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoff-it committed Sep 19, 2024
1 parent 0183d42 commit 0f14891
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
.version = "0.0.0",
.dependencies = .{
.zine = .{
.url = "git+https://github.com/kristoff-it/zine?ref=v0.6.2#d76e4b345d7065314a513698ecd23c610cbb9bf9",
.hash = "122043277680a77a3cbe71738cdd4bac28f721b3369331d000dea7ace2acce90f2a7",
.url = "git+https://github.com/kristoff-it/zine?ref=v0.6.3#9d95313c744c2ca7c466b82725a1fe959d81f6e6",
.hash = "1220415067dc7d10b6a3ccd1f3c5b35b5af6e2a7675232af55cebd50f711a55fc7e7",
},
},
.paths = .{"."},
Expand Down
22 changes: 21 additions & 1 deletion content/docs/superhtml/scripty.smd
Original file line number Diff line number Diff line change
Expand Up @@ -522,14 +522,34 @@ A Ziggy Map that contains data key-value pairs set in SuperMD

## Functions

### []($heading.id("ContentSection.heading")) [`fn`]($link.ref("ContentSection.heading")) heading () -> [String]($link.ref("String"))

If the section starts with a heading element,
this function returns the heading as simple text.

#### Examples

```superhtml
<div html="$loop.it.heading()"></div>
```
### []($heading.id("ContentSection.heading?")) [`fn`]($link.ref("ContentSection.heading?")) heading? () -> ?[String]($link.ref("String"))

If the section starts with a heading element,
this function returns the heading as simple text.

#### Examples

```superhtml
<div html="$loop.it.heading()"></div>
```
### []($heading.id("ContentSection.html")) [`fn`]($link.ref("ContentSection.html")) html () -> [String]($link.ref("String"))

Renders the section.

#### Examples

```superhtml
<div html="$page.c()"></div>
<div html="$loop.it.html()"></div>
```
# [Build]($section.id('Build'))

Expand Down
8 changes: 7 additions & 1 deletion content/log.smd
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,17 @@ You can [subscribe to this page via RSS](https://zine-ssg.io/log/index.xml).

To update Zine to the latest release run:
```sh
zig fetch --save "git+https://github.com/kristoff-it/zine#v0.6.2"
zig fetch --save "git+https://github.com/kristoff-it/zine#v0.6.3"
```

## Changes

[]($section.id('v0.6.3').data('date','2024-09-19'))
- When iterating **content sections** with `$page.contentSections()`, you can now obtain the section's attached heading by calling
[`heading`]($link.page('docs/superhtml/scripty').ref('ContentSection.heading')) or
[`heading?`]($link.page('docs/superhtml/scripty').ref('ContentSection.heading?'))
on it. This was added mainly to support the usecase of giving titles to RSS entries generated from sections.

[]($section.id('v0.6.2').data('date','2024-09-17'))
- `$image.linked()` is now implemented and allows you to quickly create an image that links to itself.

Expand Down

0 comments on commit 0f14891

Please sign in to comment.