You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The <img> tag must be on a single line, and the "src" value must end with
157
-
one of the following extensions: png, PNG, jpeg, JPG, jpg, gif, GIF, svg,
158
-
SVG.
159
-
160
-
3. SHORTCODES: Hugo shortcodes for embedding (like for embedding a Youtube video)
161
-
are turned into Liquid tags that dev.to knows about.
162
-
4. ANCHOR IDS: Hugo and Devto have different anchor ID syntaxes.
163
-
164
-
OPTIONS
165
-
-apikey string
166
-
The API key for Dev.to. You can also set DEVTO_APIKEY instead.
167
-
-debug
168
-
Print debug information such as the HTTP requests that are being made in curl format.
169
-
-root string
170
-
Root directory of the Hugo project.
171
120
```
172
121
173
122
## Use it
@@ -181,8 +130,9 @@ export DEVTO_APIKEY=$(lpass show dev.to -p)
181
130
182
131
### List your dev.to articles
183
132
184
-
This is useful because I have dev.to configured with the RSS feed of my
185
-
blog so that dev.to automatically creates a draft of each of my new posts.
133
+
This is useful because I have dev.to configured with the RSS feed of my blog so
134
+
that dev.to automatically creates a draft of each of my new posts. Note that you
135
+
don't need to set up RSS mirroring in order to use `hudevto`.
186
136
187
137
```sh
188
138
% hudevto devto list
@@ -195,12 +145,24 @@ blog so that dev.to automatically creates a draft of each of my new posts.
195
145
317339: published at https://dev.to/maelvls/learning-kubernetes-controllers-496j (Learning Kubernetes Controllers)
196
146
```
197
147
198
-
### Preview the Markdown content that will be pushed to dev.to
148
+
### Transformations
199
149
200
-
I use the `hudevto preview`command because I do some transformations and I need a way to preview the changes to make sure the Markdown and front matter make sense. The transformations are:
150
+
The Markdown for Hugo posts and dev.to articles have slight differences. Before
151
+
pushing to dev.to, `hudevto` does some transformations to the Markdown file. To
152
+
see the transformations before pushing the Hugo post to dev.to, you can use:
201
153
202
-
- Generate a new front matter which is used by dev.to for setting the dev.to post title and canonical URL;
203
-
- Change the Hugo "tags" into Liquid tags, such as:
0 commit comments